From cd1a8c28618d6796b096b4603a14532a8a0a711f Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 12 Jun 2008 15:21:32 -0700 Subject: [PATCH] run-px: more summary, exit code. --- tests/ChangeLog | 2 ++ tests/run-px | 7 +++++++ 2 files changed, 9 insertions(+) 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); -- 2.39.2