diff --git a/testenv/Makefile.am b/testenv/Makefile.am index 9fa73d3..82b66a4 100644 --- a/testenv/Makefile.am +++ b/testenv/Makefile.am @@ -38,9 +38,7 @@ AM_TESTS_ENVIRONMENT = export WGETRC=/dev/null; MAKE_CHECK=True; export MAKE_CHE export PYTHONPATH=$$PYTHONPATH:$(srcdir); export VALGRIND_TESTS="@VALGRIND_TESTS@"; if WITH_SSL - SSL_TESTS = Test--https.py Test--https-crl.py Test-hsts.py -else - SSL_TESTS = + AM_TESTS_ENVIRONMENT += SSL_TESTS=1; endif if HAVE_PYTHON3 @@ -63,6 +61,7 @@ if HAVE_PYTHON3 Test-Head.py \ Test--https.py \ Test--https-crl.py \ + Test-hsts.py \ Test-O.py \ Test-Post.py \ Test-504.py \ @@ -71,7 +70,6 @@ if HAVE_PYTHON3 Test-redirect-crash.py \ Test-reserved-chars.py \ Test-condget.py \ - $(SSL_TESTS) \ $(METALINK_TESTS) endif diff --git a/testenv/Test--https-crl.py b/testenv/Test--https-crl.py index 9330a1e..e3724cd 100755 --- a/testenv/Test--https-crl.py +++ b/testenv/Test--https-crl.py @@ -9,6 +9,9 @@ import os This test ensures that Wget can download files from HTTPS Servers """ TEST_NAME = "HTTPS CRL" +if os.getenv('SSL_TESTS') != '1': + exit (77) + ############# File Definitions ############################################### File1 = "Would you like some Tea?" File2 = "With lemon or cream?" diff --git a/testenv/Test--https.py b/testenv/Test--https.py index b8d4faf..5e29e4f 100755 --- a/testenv/Test--https.py +++ b/testenv/Test--https.py @@ -9,6 +9,9 @@ import os This test ensures that Wget can download files from HTTPS Servers """ TEST_NAME = "HTTPS Downloads" +if os.getenv('SSL_TESTS') != '1': + exit (77) + ############# File Definitions ############################################### File1 = "Would you like some Tea?" File2 = "With lemon or cream?" diff --git a/testenv/Test-hsts.py b/testenv/Test-hsts.py index 4290929..0559754 100755 --- a/testenv/Test-hsts.py +++ b/testenv/Test-hsts.py @@ -26,6 +26,8 @@ def create_hsts_database(path, host, port): f.close() TEST_NAME = "HSTS basic test" +if os.getenv('SSL_TESTS') != '1': + exit (77) File_Name = "hw" File_Content = "Hello, world!"