aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2021-12-07 15:05:33 -0500
committerAndrew Dunstan <andrew@dunslane.net>2021-12-07 15:07:04 -0500
commit8de159c1fb1bcad47012e1c6ba4e9a50412d7a6c (patch)
tree1c4eb79f61e9af89b17df236336898d71556f3ec /src
parenta9e572c6d5761e8f9b726ba2b9d63a01186994f1 (diff)
downloadpostgresql-8de159c1fb1bcad47012e1c6ba4e9a50412d7a6c.tar.gz
postgresql-8de159c1fb1bcad47012e1c6ba4e9a50412d7a6c.zip
Enable settings used in TAP tests for MSVC builds
Certain settings from configuration or the Makefile infrastructure are used by the TAP tests, but were not being set up by vcregress.pl. This remedies those omissions. This should increase test coverage, especially on the buildfarm. Reviewed by Noah Misch Discussion: https://postgr.es/m/17093da5-e40d-8335-d53a-2bd803fc38b0@dunslane.net Backpatch to all live branches.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/vcregress.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/msvc/vcregress.pl b/src/tools/msvc/vcregress.pl
index dac60f6264c..53ac44d54b9 100644
--- a/src/tools/msvc/vcregress.pl
+++ b/src/tools/msvc/vcregress.pl
@@ -55,6 +55,21 @@ copy("$Config/autoinc/autoinc.dll", "src/test/regress");
copy("$Config/regress/regress.dll", "src/test/regress");
copy("$Config/dummy_seclabel/dummy_seclabel.dll", "src/test/regress");
+# Configuration settings used by TAP tests
+$ENV{with_openssl} = $config->{openssl} ? 'yes' : 'no';
+$ENV{with_ldap} = $config->{ldap} ? 'yes' : 'no';
+$ENV{with_icu} = $config->{icu} ? 'yes' : 'no';
+$ENV{with_gssapi} = $config->{gss} ? 'yes' : 'no';
+$ENV{with_krb_srvnam} = $config->{krb_srvnam} || 'postgres';
+$ENV{with_readline} = 'no';
+
+# These values are defaults that can be overridden by the calling environment
+# (see buildenv.pl processing above).
+# c.f. src/Makefile.global.in and configure.ac
+$ENV{TAR} ||= 'tar';
+$ENV{LZ4} ||= 'lz4';
+$ENV{GZIP_PROGRAM} ||= 'gzip';
+
$ENV{PATH} = "$topdir/$Config/libpq;$ENV{PATH}";
if ($ENV{PERL5LIB})