File tree Expand file tree Collapse file tree 6 files changed +25
-10
lines changed Expand file tree Collapse file tree 6 files changed +25
-10
lines changed Original file line number Diff line number Diff line change @@ -17,25 +17,20 @@ SUBDIRS = perl regress isolation modules authentication recovery subscription
1717ifeq ($(with_icu ) ,yes)
1818SUBDIRS += icu
1919endif
20-
21- # Test suites that are not safe by default but can be run if selected
22- # by the user via the whitespace-separated list in variable
23- # PG_TEST_EXTRA:
2420ifeq ($(with_gssapi ) ,yes)
25- ifneq (,$(filter kerberos,$(PG_TEST_EXTRA ) ) )
2621SUBDIRS += kerberos
2722endif
28- endif
2923ifeq ($(with_ldap ) ,yes)
30- ifneq (,$(filter ldap,$(PG_TEST_EXTRA ) ) )
3124SUBDIRS += ldap
3225endif
33- endif
3426ifeq ($(with_ssl ) ,openssl)
35- ifneq (,$(filter ssl,$(PG_TEST_EXTRA ) ) )
3627SUBDIRS += ssl
3728endif
38- endif
29+
30+ # Test suites that are not safe by default but can be run if selected
31+ # by the user via the whitespace-separated list in variable PG_TEST_EXTRA.
32+ # Export PG_TEST_EXTRA to check it in individual tap tests.
33+ export PG_TEST_EXTRA
3934
4035# We don't build or execute these by default, but we do want "make
4136# clean" etc to recurse into them. (We must filter out those that we
Original file line number Diff line number Diff line change 2525{
2626 plan skip_all => ' GSSAPI/Kerberos not supported by this build' ;
2727}
28+ elsif ($ENV {PG_TEST_EXTRA } !~ / kerberos/ )
29+ {
30+ plan skip_all => ' Potentially unsafe test GSSAPI/Kerberos not enabled in PG_TEST_EXTRA' ;
31+ }
2832
2933my ($krb5_bin_dir , $krb5_sbin_dir );
3034
Original file line number Diff line number Diff line change 1616{
1717 plan skip_all => ' LDAP not supported by this build' ;
1818}
19+ elsif ($ENV {PG_TEST_EXTRA } !~ / ldap/ )
20+ {
21+ plan skip_all => ' Potentially unsafe test LDAP not enabled in PG_TEST_EXTRA' ;
22+ }
1923elsif ($^O eq ' darwin' && -d ' /usr/local/opt/openldap' )
2024{
2125 # typical paths for Homebrew
Original file line number Diff line number Diff line change 1717{
1818 plan skip_all => ' OpenSSL not supported by this build' ;
1919}
20+ elsif ($ENV {PG_TEST_EXTRA } !~ / ssl/ )
21+ {
22+ plan skip_all => ' Potentially unsafe test SSL not enabled in PG_TEST_EXTRA' ;
23+ }
2024
2125my $ssl_server = SSL::Server-> new();
2226
Original file line number Diff line number Diff line change 2020{
2121 plan skip_all => ' OpenSSL not supported by this build' ;
2222}
23+ elsif ($ENV {PG_TEST_EXTRA } !~ / ssl/ )
24+ {
25+ plan skip_all => ' Potentially unsafe test SSL not enabled in PG_TEST_EXTRA' ;
26+ }
2327
2428my $ssl_server = SSL::Server-> new();
2529
Original file line number Diff line number Diff line change 1818{
1919 plan skip_all => ' OpenSSL not supported by this build' ;
2020}
21+ elsif ($ENV {PG_TEST_EXTRA } !~ / ssl/ )
22+ {
23+ plan skip_all => ' Potentially unsafe test SSL not enabled in PG_TEST_EXTRA' ;
24+ }
2125
2226# ### Some configuration
2327my $ssl_server = SSL::Server-> new();
You can’t perform that action at this time.
0 commit comments