mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04: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
|
WgetTest.pm.in: Use whatever ports are available, rather than
|
||||||
hard-coded ones.
|
hard-coded ones.
|
||||||
|
|
||||||
|
* run-px: More summary info, explicit exit code.
|
||||||
|
|
||||||
* Makefile.am: Reinstate "run-px-tests" as a dependency for the
|
* Makefile.am: Reinstate "run-px-tests" as a dependency for the
|
||||||
"check" target.
|
"check" target.
|
||||||
|
|
||||||
|
@ -61,3 +61,10 @@ for (my $i=0; $i != @tests; ++$i) {
|
|||||||
}
|
}
|
||||||
print "$tests[$i]\n";
|
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