[mirror] PostGIS spatial database extension to PostgreSQL https://postgis.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Paul Ramsey ba12b47569 Normalize ST_RemoveRepeatedPoints() test to work around different platform qsort behaviour. 2 days ago
..
core Normalize ST_RemoveRepeatedPoints() test to work around different platform qsort behaviour. 2 days ago
dumper Run all regress tests in the same database 8 months ago
hooks added before-uninstall hook to make this condition true: COUNT(preinstall_objects) == COUNT(postinstall_objects) 1 month ago
loader moved test table to public schema; added negative test 1 month ago
Makefile.in Allow running core regress tests without sfcgal 7 months ago
README Fix mistakes and some rewording 4 years ago
run_test.pl Move hard-coded upgrade data from run_test.pl to hook scripts 1 month ago
runtest.mk Move hard-coded upgrade data from run_test.pl to hook scripts 1 month ago
test_index_concurrency Separated 'export' from assignment, for Solaris support - reported by Michael Fuhr 16 years ago

README

Requirements for run_test.pl
----------------------------

run_test.pl requires the following Perl modules to be installed

Text::Diff;
File::Which;
File::Basename;
File::Temp 'tempdir';
File::Copy;
File::Path 'make_path';
File::Path 'remove_tree';
Cwd 'abs_path';
Getopt::Long;

Most distributions of Perl will have everything except Text::Diff and File::Which.
To install them from the command-line, as root run

cpan Text::Diff
cpan File::Which


How to add a regression test
----------------------------

1. Write a /regress/<testname>.sql file with data and sql queries for testing
2. Write a /regress/<testname>_expected or <testname>_expected.in file with
expected results per query
The expected results provided in the <testname>_expected file must be
formatted using the following psql options:
-a -- unaligned columns
-f | -- use | (pipe) as the field separator between columns
-t -- output rows only, ie. no table header

cat file.sql | psql -F\| -t -A > file_expected

3.