mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
include the failed test case numbers in the end summary
This commit is contained in:
parent
e97fc2aab5
commit
070968abbc
@ -679,6 +679,7 @@ open(CMDLOG, ">$CURLLOG") ||
|
|||||||
# The main test-loop
|
# The main test-loop
|
||||||
#
|
#
|
||||||
|
|
||||||
|
my $failed;
|
||||||
my $testnum;
|
my $testnum;
|
||||||
my $ok=0;
|
my $ok=0;
|
||||||
my $total=0;
|
my $total=0;
|
||||||
@ -689,11 +690,14 @@ foreach $testnum (split(" ", $TESTCASES)) {
|
|||||||
# valid test case number
|
# valid test case number
|
||||||
$total++;
|
$total++;
|
||||||
}
|
}
|
||||||
if(($error>0) && !$anyway) {
|
if($error>0) {
|
||||||
|
if(!$anyway) {
|
||||||
# a test failed, abort
|
# a test failed, abort
|
||||||
print "\n - abort tests\n";
|
print "\n - abort tests\n";
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
|
$failed.= "$testnum ";
|
||||||
|
}
|
||||||
elsif(!$error) {
|
elsif(!$error) {
|
||||||
$ok++;
|
$ok++;
|
||||||
}
|
}
|
||||||
@ -715,6 +719,10 @@ stopserver($PIDFILE);
|
|||||||
|
|
||||||
if($total) {
|
if($total) {
|
||||||
print "$ok tests out of $total reported OK\n";
|
print "$ok tests out of $total reported OK\n";
|
||||||
|
|
||||||
|
if($ok != $total) {
|
||||||
|
print "These test cases failed: $failed\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
print "No tests were performed!\n";
|
print "No tests were performed!\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user