postgresql/src/test/modules
Michael Paquier 52377bb81a Revert "Add TAP test to automate the equivalent of check_guc"
This reverts commit b0a55f4, to remove for now the TAP test that did the
equivalent of check_guc.  The test has been using pg_config --sharedir
to find the location of postgresql.conf.sample.  While the buildfarm and
normal build environments rather liked that, this proves to be an issue
for Debian where pg_config is patched to not be relocatable, causing the
test to fail.

Rather than relying on pg_config, we'd better find the sample file based
on its location from the source directory.  However, this is also an
issue as a TAP test only offers the build directory as of TESTDIR in the
environment context, so this would fail with VPATH builds.  Perhaps the
source path could be provided additionally when running the TAP tests.
Or perhaps we may be able to get away by just switching to a SQL
approach, by using PG_ABS_SRCDIR but this is going to require some extra
loops to get the sample file from the correct path in src/backend/.  In
any case, this needs more thoughts, so just revert the test case until
something better is done about this relocation problem.

Reported-by: Christopher Berg
Discussion: https://postgr.es/m/YgYw25OXV5men8Fj@msg.df7cb.de
2022-02-12 12:53:59 +09:00
..
brin Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
commit_ts Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
delay_execution Update copyright for 2022 2022-01-07 19:04:57 -05:00
dummy_index_am Update copyright for 2022 2022-01-07 19:04:57 -05:00
dummy_seclabel Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq_pipeline Update copyright for 2022 2022-01-07 19:04:57 -05:00
plsample Update copyright for 2022 2022-01-07 19:04:57 -05:00
snapshot_too_old Improve display of query results in isolation tests. 2021-06-23 11:13:00 -04:00
spgist_name_ops pg_upgrade: Preserve relfilenodes and tablespace OIDs. 2022-01-17 13:40:27 -05:00
ssl_passphrase_callback Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_bloomfilter Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_ddl_deparse Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_extensions Fix use-after-free bug with event triggers in an extension script 2020-09-15 21:03:14 -03:00
test_ginpostinglist Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_integerset Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_misc Revert "Add TAP test to automate the equivalent of check_guc" 2022-02-12 12:53:59 +09:00
test_parser Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_pg_dump Replace Test::More plans with done_testing 2022-02-11 20:54:44 +01:00
test_predtest Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_rbtree Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_regex Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_rls_hooks Update copyright for 2022 2022-01-07 19:04:57 -05:00
test_shm_mq Update copyright for 2022 2022-01-07 19:04:57 -05:00
unsafe_tests Fix various typos, grammar and code style in comments and docs 2022-01-25 09:40:04 +09:00
worker_spi Update copyright for 2022 2022-01-07 19:04:57 -05:00
Makefile Fix confusion in SP-GiST between attribute type and leaf storage type. 2021-04-04 14:28:57 -04:00
README Add an enforcement mechanism for global object names in regression tests. 2019-06-29 11:34:00 -04:00

Test extensions and libraries
=============================

src/test/modules contains PostgreSQL extensions that are primarily or entirely
intended for testing PostgreSQL and/or to serve as example code. The extensions
here aren't intended to be installed in a production server and aren't suitable
for "real work".

Furthermore, while you can do "make install" and "make installcheck" in
this directory or its children, it is NOT ADVISABLE to do so with a server
containing valuable data.  Some of these tests may have undesirable
side-effects on roles or other global objects within the tested server.
"make installcheck-world" at the top level does not recurse into this
directory.

Most extensions have their own pg_regress tests or isolationtester specs. Some
are also used by tests elsewhere in the tree.

If you're adding new hooks or other functionality exposed as C-level API this
is where to add the tests for it.