postgis/regress
2024-10-21 11:48:27 -07:00
..
core ST_TileEnvelope with margin is not clipped fully to WM extent, references #5799 2024-10-21 11:48:27 -07:00
dumper Drop redundant variable topsrcdir, use top_srcdir 2022-06-21 10:30:10 +02:00
hooks SET escape_string_warning to on when setting conforming strings off 2024-02-28 12:03:39 +01:00
loader Fix typos 2024-08-23 01:26:24 -07:00
utils Fix typos 2024-08-23 01:26:24 -07:00
Makefile.in Show 20 lines of garden test logs 2024-05-20 21:25:41 +02:00
README Update regress/README 2023-10-17 15:12:59 +02:00
run_test.pl Fix typos 2024-08-23 01:26:24 -07:00
runtest.mk Stop printing the whole list of tests being run on 'make check' 2023-09-07 17:06:08 +02:00
test_index_concurrency Stop using createlang plpgsql, not needed since PostgreSQL 9.0 2023-05-17 13:14:25 +02:00

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

run_test.pl requires the following Perl modules to be installed

 File::Basename
 Time::HiRes
 File::Temp
 File::Copy
 File::Path
 Cwd
 Getopt::Long

Most distributions of Perl will have everything


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

1. Write a ${test}.sql file with test sql queries

2. Generate and tweak ${test}_expected file:
   regress/run_test.pl --expect ${test} && vi ${test}_expected

3. Add ${test} to $(dirname ${test})/tests.mk*

Optional:
   If your test has unusual setup or teardown requirements, you may create
   any of the following optional files (they will run in this order):
        ${test}-pre.sh
        ${test}-pre.sql   (run via psql)
                 (The test itself is run here.)
        ${test}-post.sql  (run via psql)
        ${test}-post.sh

Notes about running individual regression tests
-----------------------------------------------

The script run_test.pl can be called directly to run individual
regression tests. Run it without parameters for info about its usage.

Note that tests run in a staged install which is created by running
make staged-install. This step is a part of the complete make check.