]> sjero.net Git - wget/blobdiff - tests/Test-proxied-https-auth.px
Don't run Test-proxied-https-auth.px if HTTPS support wasn't built.
[wget] / tests / Test-proxied-https-auth.px
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;