From: Micah Cowan Date: Thu, 12 Jun 2008 22:21:32 +0000 (-0700) Subject: run-px: more summary, exit code. X-Git-Tag: v1.13~421^2~12^2~1 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=cd1a8c28618d6796b096b4603a14532a8a0a711f run-px: more summary, exit code. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 888bd8c1..3efa37bf 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -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. diff --git a/tests/run-px b/tests/run-px index febb0de4..37f14324 100755 --- a/tests/run-px +++ b/tests/run-px @@ -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);