From a0a9da4698657e66353dd4e5d2023a8980c711d8 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Sun, 22 Jun 2008 17:52:57 -0700 Subject: [PATCH] Don't run Test-proxied-https-auth.px if HTTPS support wasn't built. --- tests/ChangeLog | 3 ++- tests/Test-proxied-https-auth.px | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/ChangeLog b/tests/ChangeLog index 4b79696c..36bc35dc 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -2,7 +2,8 @@ * Test-proxied-https-auth.px: Shift exit code so it falls in the lower bits, and actually fails when it should. Use dynamic port, - instead of static port. + instead of static port. Only run the test if our Wget was built + with HTTPS support. * certs/server-cert.pem, certs/server-key.pem: Apparently failed to add these from 1.11.x repo. Fixed. diff --git a/tests/Test-proxied-https-auth.px b/tests/Test-proxied-https-auth.px index 182c9dbf..a2efe5eb 100755 --- a/tests/Test-proxied-https-auth.px +++ b/tests/Test-proxied-https-auth.px @@ -3,6 +3,16 @@ use warnings; use strict; use WgetTest; # For $WGETPATH. + +# Have we even built an HTTPS-supporting Wget? +{ + my @version_lines = `${WgetTest::WGETPATH} --version`; + unless (grep /\+(openssl|gnutls)/, @version_lines) { + print "Not running test: Wget under test doesn't support HTTPS.\n"; + exit 0; + } +} + use HTTP::Daemon; use HTTP::Request; use IO::Socket::SSL; -- 2.39.2