X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=tests%2FTest-proxied-https-auth.px;h=4e3fb206dcdf8645a1815beead355aa3ce565c32;hb=1777835073cad695bce04848aa6f33e9686e7fc1;hp=182c9dbfa60f95e9fcaaecbdcd19bbe3db0e6915;hpb=c98aeb0cc3f98a5cb7f3b4986a175d355e6c239c;p=wget diff --git a/tests/Test-proxied-https-auth.px b/tests/Test-proxied-https-auth.px index 182c9dbf..4e3fb206 100755 --- a/tests/Test-proxied-https-auth.px +++ b/tests/Test-proxied-https-auth.px @@ -1,8 +1,19 @@ #!/usr/bin/perl -use warnings; + use strict; +use warnings; 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;