]> sjero.net Git - wget/commitdiff
Don't run Test-proxied-https-auth.px if HTTPS support wasn't built.
authorMicah Cowan <micah@cowan.name>
Mon, 23 Jun 2008 00:52:57 +0000 (17:52 -0700)
committerMicah Cowan <micah@cowan.name>
Mon, 23 Jun 2008 00:52:57 +0000 (17:52 -0700)
tests/ChangeLog
tests/Test-proxied-https-auth.px

index 4b79696cda575c8ff69fa43d687502dc207cc36f..36bc35dc9afb0c782024f787c6a8f54a552e5c9b 100644 (file)
@@ -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.
index 182c9dbfa60f95e9fcaaecbdcd19bbe3db0e6915..a2efe5ebcb5b90a82d1733c00965c4bf177127ff 100755 (executable)
@@ -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;