diff --git a/configure b/configure index 4f3aa44756..0a5f4c8912 100755 --- a/configure +++ b/configure @@ -764,6 +764,7 @@ LDFLAGS CFLAGS CC enable_injection_points +PG_TEST_EXTRA enable_tap_tests enable_dtrace DTRACEFLAGS @@ -880,6 +881,7 @@ enable_largefile ac_precious_vars='build_alias host_alias target_alias +PG_TEST_EXTRA CC CFLAGS LDFLAGS @@ -1587,6 +1589,8 @@ Optional Packages: --with-openssl obsolete spelling of --with-ssl=openssl Some influential environment variables: + PG_TEST_EXTRA + enable selected extra tests CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a @@ -3629,6 +3633,7 @@ fi + # # Injection points # diff --git a/configure.ac b/configure.ac index 049bc01491..0c76ad0ebf 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,7 @@ AC_SUBST(enable_dtrace) PGAC_ARG_BOOL(enable, tap-tests, no, [enable TAP tests (requires Perl and IPC::Run)]) AC_SUBST(enable_tap_tests) +AC_ARG_VAR(PG_TEST_EXTRA, [enable selected extra tests]) # # Injection points diff --git a/src/Makefile.global.in b/src/Makefile.global.in index 42f50b4976..ee5a59f2a1 100644 --- a/src/Makefile.global.in +++ b/src/Makefile.global.in @@ -642,6 +642,11 @@ submake-libpgfeutils: | submake-generated-headers # # Testing support +# Store any configure-time setting for PG_TEST_EXTRA, but let environment +# variables override it to maintain the historical behavior of the tests. +# (Standard `=` assignment would require devs to use a commandline option.) +PG_TEST_EXTRA ?= @PG_TEST_EXTRA@ + ifneq ($(USE_MODULE_DB),) PL_TESTDB = pl_regression_$(NAME) ifneq ($(MODULE_big),)