aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-03-19 23:28:28 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-03-19 23:28:28 +0100
commit2fc31dcf74bd0b1a5999a144664f957b7f8745e7 (patch)
treeb6e7a92b841997effe941f9bda102a2c8148f278 /tests/runtests.pl
parent715125e790ee87fd3983d950217eb1e605fdfc77 (diff)
runtests.pl: verify specified test cases
To better allow arguments like "1 to 9999" without flooding the terminal with error messages, the given test cases range is now checked and only test numbers with existing files are actually run.
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index cbd40e7d9..e9f5b9ab4 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -4901,6 +4901,19 @@ if ( $TESTCASES eq "all") {
$TESTCASES .= " $n";
}
}
+else {
+ my $verified="";
+ map {
+ if (-e "$TESTDIR/test$_") {
+ $verified.="$_ ";
+ }
+ } split(" ", $TESTCASES);
+ if($verified eq "") {
+ print "No existing test cases were specified\n";
+ exit;
+ }
+ $TESTCASES = $verified;
+}
#######################################################################
# Start the command line log