diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-01-24 11:37:20 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-01-24 12:39:47 +0100 |
commit | aeb8ea361a0a321a0e1cbc79a4cd3ec0b1191bf2 (patch) | |
tree | 64d994d2c2bdae615ac2fbc1fc382758be25964f /src | |
parent | 02ed3c2bdcefab453b548bc9c7e0e8874a502790 (diff) |
Convert sepgsql tests to TAP
Add a TAP test for sepgsql. This automates the previously required
manual setup before the test. The actual tests are still run by
pg_regress, as before, but now called from within the TAP Perl script.
The previous manual test script (test_sepgsql) is left in place, since
its purpose is (also) to test whether a running instance was properly
initialized for sepgsql. But it has been changed to call pg_regress
directly and no longer require make.
Reviewed-by: Andreas Karlsson <andreas@proxel.se>
Discussion: https://www.postgresql.org/message-id/flat/651a5baf-5c45-4a5a-a202-0c8453a4ebf8@eisentraut.org
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.global.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 1278b7744f4..bbe11e75bf0 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -454,6 +454,7 @@ cd $(srcdir) && \ PATH="$(bindir):$(CURDIR):$$PATH" \ PGPORT='6$(DEF_PGPORT)' top_builddir='$(CURDIR)/$(top_builddir)' \ PG_REGRESS='$(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \ + share_contrib_dir='$(DESTDIR)$(datadir)/$(datamoduledir)' \ $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl) endef else # PGXS case @@ -481,6 +482,7 @@ cd $(srcdir) && \ $(with_temp_install) \ PGPORT='6$(DEF_PGPORT)' top_builddir='$(CURDIR)/$(top_builddir)' \ PG_REGRESS='$(CURDIR)/$(top_builddir)/src/test/regress/pg_regress' \ + share_contrib_dir='$(abs_top_builddir)/tmp_install$(datadir)/$(datamoduledir)' \ $(PROVE) $(PG_PROVE_FLAGS) $(PROVE_FLAGS) $(if $(PROVE_TESTS),$(PROVE_TESTS),t/*.pl) endef |