mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 21:00:31 +08:00
run-px: more summary, exit code.
This commit is contained in:
parent
3f1360357a
commit
cd1a8c2861
@ -25,6 +25,8 @@
|
||||
WgetTest.pm.in: Use whatever ports are available, rather than
|
||||
hard-coded ones.
|
||||
|
||||
* run-px: More summary info, explicit exit code.
|
||||
|
||||
* Makefile.am: Reinstate "run-px-tests" as a dependency for the
|
||||
"check" target.
|
||||
|
||||
|
@ -61,3 +61,10 @@ for (my $i=0; $i != @tests; ++$i) {
|
||||
}
|
||||
print "$tests[$i]\n";
|
||||
}
|
||||
|
||||
print "\n";
|
||||
print scalar(@results) . " tests were run\n";
|
||||
print scalar(grep $_ == 0, @results) . " PASS\n";
|
||||
print scalar(grep $_ != 0, @results) . " FAIL\n";
|
||||
|
||||
exit scalar (grep $_ != 0, @results);
|
||||
|
Loading…
Reference in New Issue
Block a user