mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
Allow individual TAP tests to be run via PROVE_TESTS
Add a new optional Makefile variable PROVE_TESTS that, if passed as a space-separated list of paths relative to the Makefile invoking $(prove_check) or $(prove_installcheck), runs just those tests instead of t/*.pl . From: Craig Ringer <craig@2ndquadrant.com> Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
@@ -6,6 +6,12 @@ across the source tree, particularly tests in src/bin and src/test. It's used
|
||||
to drive tests for backup and restore, replication, etc - anything that can't
|
||||
really be expressed using pg_regress or the isolation test framework.
|
||||
|
||||
The tests are invoked via perl's 'prove' command, wrapped in PostgreSQL
|
||||
makefiles to handle instance setup etc. See the $(prove_check) and
|
||||
$(prove_installcheck) targets in Makefile.global. By default every test in the
|
||||
t/ subdirectory is run. Individual test(s) can be run instead by passing
|
||||
something like PROVE_TESTS="t/001_testname.pl t/002_othertestname.pl" to make.
|
||||
|
||||
You should prefer to write tests using pg_regress in src/test/regress, or
|
||||
isolation tester specs in src/test/isolation, if possible. If not, check to
|
||||
see if your new tests make sense under an existing tree in src/test, like
|
||||
|
||||
Reference in New Issue
Block a user