aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-03-09 23:39:42 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-03-09 23:39:42 +0000
commite12d46ac50ddce4330d1a2e1d4a7e5e2accd280e (patch)
tree84a47e6be6aca090148a431312572afd1deaae68 /tests/runtests.pl
parent1e55ed5c7d04c47fc931719fea05314f126aa974 (diff)
Updated the test harness to add a new "crypto" feature check and updated the
appropriate test case to use it. For now, this is treated the same as the "SSL" feature because curl doesn't list it separately.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 5fb45b171..53e4cd4e5 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -144,6 +144,7 @@ my $has_ntlm; # set if libcurl is built with NTLM support
my $has_openssl; # set if libcurl is built with OpenSSL
my $has_gnutls; # set if libcurl is built with GnuTLS
my $has_nss; # set if libcurl is built with NSS
+my $has_crypto; # set if libcurl is built with cryptographic support
my $has_textaware; # set if running on a system that has a text mode concept
# on files. Windows for example
my @protocols; # array of supported protocols
@@ -1044,6 +1045,9 @@ sub checksystem {
if($feat =~ /SSL/i) {
# ssl enabled
$ssl_version=1;
+ # curl doesn't list cryptographic support separately, so treat
+ # it the same as SSL for the time being
+ $has_crypto=1;
}
if($feat =~ /Largefile/i) {
# large file support
@@ -1292,6 +1296,11 @@ sub singletest {
next;
}
}
+ elsif($f eq "crypto") {
+ if($has_crypto) {
+ next;
+ }
+ }
# See if this "feature" is in the list of supported protocols
elsif (grep /^$f$/, @protocols) {
next;