run-px: more summary, exit code.

This commit is contained in:
Micah Cowan 2008-06-12 15:21:32 -07:00
parent 3f1360357a
commit cd1a8c2861
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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);