1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Don't run Test-proxied-https-auth.px if HTTPS support wasn't built.

This commit is contained in:
Micah Cowan 2008-06-22 17:52:57 -07:00
parent c98aeb0cc3
commit a0a9da4698
2 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,8 @@
* Test-proxied-https-auth.px: Shift exit code so it falls in the * Test-proxied-https-auth.px: Shift exit code so it falls in the
lower bits, and actually fails when it should. Use dynamic port, 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 * certs/server-cert.pem, certs/server-key.pem: Apparently failed
to add these from 1.11.x repo. Fixed. to add these from 1.11.x repo. Fixed.

View File

@ -3,6 +3,16 @@ use warnings;
use strict; use strict;
use WgetTest; # For $WGETPATH. 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::Daemon;
use HTTP::Request; use HTTP::Request;
use IO::Socket::SSL; use IO::Socket::SSL;