aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 0acef67b4..aba8c7649 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -95,6 +95,7 @@ my $gdb = checkcmd("gdb");
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_getrlimit; # set if system has getrlimit()
my $skipped=0; # number of tests skipped; reported in main loop
@@ -758,6 +759,9 @@ sub checkcurl {
# IDN support
$has_idn=1;
}
+ if($feat =~ /IPv6/i) {
+ $has_ipv6 = 1;
+ }
}
}
if(!$curl) {
@@ -784,6 +788,7 @@ sub checkcurl {
print "********* System characteristics ******** \n",
"* $curl\n",
"* $libcurl\n",
+ "* Features: $feat\n"
"* Host: $hostname",
"* System: $hosttype";
@@ -873,6 +878,11 @@ sub singletest {
next;
}
}
+ elsif($f eq "ipv6") {
+ if($has_ipv6) {
+ next;
+ }
+ }
elsif($f eq "getrlimit") {
if($has_getrlimit) {
next;
@@ -1259,6 +1269,16 @@ sub singletest {
@protstrip= striparray( $_, \@protstrip);
}
+ # what parts to cut off from the protocol
+ my @strippart = getpart("verify", "strippart");
+ my $strip;
+ for $strip (@strippart) {
+ chomp $strip;
+ for(@out) {
+ eval $strip;
+ }
+ }
+
$res = compare("protocol", \@out, \@protstrip);
if($res) {
return 1;