CFLAGS
CC
enable_injection_points
+PG_TEST_EXTRA
enable_tap_tests
enable_dtrace
DTRACEFLAGS
ac_precious_vars='build_alias
host_alias
target_alias
+PG_TEST_EXTRA
CC
CFLAGS
LDFLAGS
--with-openssl obsolete spelling of --with-ssl=openssl
Some influential environment variables:
+ PG_TEST_EXTRA
+ enable selected extra tests (overridden at runtime by
+ PG_TEST_EXTRA environment variable)
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+
#
# Injection points
#
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 (overridden at runtime by PG_TEST_EXTRA environment variable)])
#
# Injection points
#
# 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.)
+# This is skipped in PGXS mode to keep the setting from escaping into other
+# projects' builds.
+ifndef PGXS
+PG_TEST_EXTRA ?= @PG_TEST_EXTRA@
+export PG_TEST_EXTRA
+endif
+
ifneq ($(USE_MODULE_DB),)
PL_TESTDB = pl_regression_$(NAME)
ifneq ($(MODULE_big),)
SUBDIRS += ssl
endif
-# Test suites that are not safe by default but can be run if selected
-# by the user via the whitespace-separated list in variable PG_TEST_EXTRA.
-# Export PG_TEST_EXTRA to check it in individual tap tests.
-export PG_TEST_EXTRA
-
# We don't build or execute these by default, but we do want "make
# clean" etc to recurse into them. (We must filter out those that we
# have conditionally included into SUBDIRS above, else there will be