aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-29 12:23:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-29 12:23:02 +0000
commit85dd4bfb8d513d7053a327031d6e41038037cad2 (patch)
treea8e92a14e95b61128aa60af4b009cb42bb1722a4 /tests/runtests.pl
parent5ae34aa8e1e6633f3a7516805adf100028a20999 (diff)
make it possible for a test case to depend on the feature 'libz'
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 9febc92f5..ba13d2413 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -97,6 +97,7 @@ my $ssl_version; # set if libcurl is built with SSL support
my $large_file; # set if libcurl is built with large file support
my $has_idn; # set if libcurl is built with IDN support
my $has_ipv6; # set if libcurl is built with IPv6 support
+my $has_libz; # set if libcurl is built with libz support
my $has_getrlimit; # set if system has getrlimit()
my $skipped=0; # number of tests skipped; reported in main loop
@@ -764,6 +765,9 @@ sub checkcurl {
if($feat =~ /IPv6/i) {
$has_ipv6 = 1;
}
+ if($feat =~ /libz/i) {
+ $has_libz = 1;
+ }
}
}
if(!$curl) {
@@ -885,6 +889,11 @@ sub singletest {
next;
}
}
+ elsif($f eq "libz") {
+ if($has_libz) {
+ next;
+ }
+ }
elsif($f eq "getrlimit") {
if($has_getrlimit) {
next;