From c866771cd25400c8a5a39d4ba252b01cd8bcad1c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 13 Sep 2006 10:16:36 +0000 Subject: Added a generic way to disable test cases when "all" is run, and added the FTP 3rd party transfers to that file for now until I have them sorted out. --- tests/runtests.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index 55438e9b8..121a4d844 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -2123,6 +2123,18 @@ if ( $TESTCASES eq "all") { my @cmds = grep { /^test([0-9]+)$/ && -f "$TESTDIR/$_" } readdir(DIR); closedir DIR; + my %dis; + open(D, "$TESTDIR/DISABLED"); + while() { + if(/^ *\#/) { + # allow comments + next; + } + if($_ =~ /(\d+)/) { + $dis{$1}=$1; # disable this test number + } + } + $TESTCASES=""; # start with no test cases # cut off everything but the digits @@ -2131,6 +2143,11 @@ if ( $TESTCASES eq "all") { } # the the numbers from low to high for(sort { $a <=> $b } @cmds) { + if($dis{$_}) { + # skip disabled test cases + print STDERR "runtests.pl: disabling test $_\n"; + next; + } $TESTCASES .= " $_"; } } -- cgit v1.2.3