diff options
-rw-r--r-- | src/test/ldap/Makefile | 2 | ||||
-rw-r--r-- | src/test/ldap/t/001_auth.pl | 11 | ||||
-rw-r--r-- | src/test/ssl/Makefile | 2 | ||||
-rw-r--r-- | src/test/ssl/t/001_ssltests.pl | 11 | ||||
-rw-r--r-- | src/test/ssl/t/002_scram.pl | 11 |
5 files changed, 34 insertions, 3 deletions
diff --git a/src/test/ldap/Makefile b/src/test/ldap/Makefile index fef5742b82c..74fef48650b 100644 --- a/src/test/ldap/Makefile +++ b/src/test/ldap/Makefile @@ -13,6 +13,8 @@ subdir = src/test/ldap top_builddir = ../../.. include $(top_builddir)/src/Makefile.global +export with_ldap + check: $(prove_check) diff --git a/src/test/ldap/t/001_auth.pl b/src/test/ldap/t/001_auth.pl index a83d96ae919..3a71e053538 100644 --- a/src/test/ldap/t/001_auth.pl +++ b/src/test/ldap/t/001_auth.pl @@ -2,7 +2,16 @@ use strict; use warnings; use TestLib; use PostgresNode; -use Test::More tests => 19; +use Test::More; + +if ($ENV{with_ldap} eq 'yes') +{ + plan tests => 19; +} +else +{ + plan skip_all => 'LDAP not supported by this build'; +} my ($slapd, $ldap_bin_dir, $ldap_schema_dir); diff --git a/src/test/ssl/Makefile b/src/test/ssl/Makefile index 4e9095529af..5cd2c5a404e 100644 --- a/src/test/ssl/Makefile +++ b/src/test/ssl/Makefile @@ -13,6 +13,8 @@ subdir = src/test/ssl top_builddir = ../../.. include $(top_builddir)/src/Makefile.global +export with_openssl + CERTIFICATES := server_ca server-cn-and-alt-names \ server-cn-only server-single-alt-name server-multiple-alt-names \ server-no-names server-revoked server-ss \ diff --git a/src/test/ssl/t/001_ssltests.pl b/src/test/ssl/t/001_ssltests.pl index 4b097a69bf2..34df5e9dbb7 100644 --- a/src/test/ssl/t/001_ssltests.pl +++ b/src/test/ssl/t/001_ssltests.pl @@ -2,10 +2,19 @@ use strict; use warnings; use PostgresNode; use TestLib; -use Test::More tests => 62; +use Test::More; use ServerSetup; use File::Copy; +if ($ENV{with_openssl} eq 'yes') +{ + plan tests => 62; +} +else +{ + plan skip_all => 'SSL not supported by this build'; +} + #### Some configuration # This is the hostname used to connect to the server. This cannot be a diff --git a/src/test/ssl/t/002_scram.pl b/src/test/ssl/t/002_scram.pl index 9460763a65a..7c6be7a219b 100644 --- a/src/test/ssl/t/002_scram.pl +++ b/src/test/ssl/t/002_scram.pl @@ -4,10 +4,19 @@ use strict; use warnings; use PostgresNode; use TestLib; -use Test::More tests => 6; +use Test::More; use ServerSetup; use File::Copy; +if ($ENV{with_openssl} eq 'yes') +{ + plan tests => 6; +} +else +{ + plan skip_all => 'SSL not supported by this build'; +} + # This is the hostname used to connect to the server. my $SERVERHOSTADDR = '127.0.0.1'; |