diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT index 92c7416b5263cb0df8d4254c44ffbb7669d4e7cd..07be4e087ce57c8004ff5ce547a1a71e28957b8b 100644 --- a/tests/FILEFORMAT +++ b/tests/FILEFORMAT @@ -84,14 +84,17 @@ case number. -A list of features that must be present in the client/library for this test -to be able to run. Features testable here are: +A list of features that MUST be present in the client/library for this test to +be able to run (if these features are not present, the test will be +SKIPPED). Features testable here are: + SSL netrc_debug large_file idn getrlimit ipv6 +libz diff --git a/tests/runtests.pl b/tests/runtests.pl index 9febc92f527186f1189d0ec53e50d1d140955780..ba13d24138a72af7907c91c8d28a36bfca77ace2 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;