aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-03-12 13:46:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-03-12 13:46:23 +0000
commit070968abbc722b99343fd3eda8b057be9621f94b (patch)
tree67be1970a25fca5df7cd7bf20d18ffe6ed6f4c30
parente97fc2aab5030d2b9d6280477ab71cc93dcc4afe (diff)
include the failed test case numbers in the end summary
-rwxr-xr-xtests/runtests.pl16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index fa56d19d3..9c51c83ff 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -679,6 +679,7 @@ open(CMDLOG, ">$CURLLOG") ||
# The main test-loop
#
+my $failed;
my $testnum;
my $ok=0;
my $total=0;
@@ -689,10 +690,13 @@ foreach $testnum (split(" ", $TESTCASES)) {
# valid test case number
$total++;
}
- if(($error>0) && !$anyway) {
- # a test failed, abort
- print "\n - abort tests\n";
- last;
+ if($error>0) {
+ if(!$anyway) {
+ # a test failed, abort
+ print "\n - abort tests\n";
+ last;
+ }
+ $failed.= "$testnum ";
}
elsif(!$error) {
$ok++;
@@ -715,6 +719,10 @@ stopserver($PIDFILE);
if($total) {
print "$ok tests out of $total reported OK\n";
+
+ if($ok != $total) {
+ print "These test cases failed: $failed\n";
+ }
}
else {
print "No tests were performed!\n";