summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1993-10-07 23:00:00 +0000
committerLarry Wall <lwall@netlabs.com>1993-10-07 23:00:00 +0000
commit79072805bf63abe5b5978b5928ab00d360ea3e7f (patch)
tree96688fcd69f9c8d2110e93c350b4d0025eaf240d /t/TEST
parente334a159a5616cab575044bafaf68f75b7bb3a16 (diff)
downloadperl-79072805bf63abe5b5978b5928ab00d360ea3e7f.tar.gz
perl 5.0 alpha 2perl-5a2
[editor's note: from history.perl.org. The sparc executables originally included in the distribution are not in this commit.]
Diffstat (limited to 't/TEST')
-rwxr-xr-x[-rw-r--r--]t/TEST10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/TEST b/t/TEST
index abfa65af31..c4ada484c3 100644..100755
--- a/t/TEST
+++ b/t/TEST
@@ -1,6 +1,6 @@
#!./perl
-# $RCSfile: TEST,v $$Revision: 4.0.1.1 $$Date: 91/06/07 11:59:30 $
+# $RCSfile: TEST,v $$Revision: 4.1 $$Date: 92/08/07 18:27:00 $
# This is written in a peculiar style, since we're trying to avoid
# most of the constructs we'll be testing for.
@@ -27,6 +27,8 @@ while (<CONFIG>) {
}
}
$bad = 0;
+$good = 0;
+$total = @ARGV;
while ($test = shift) {
if ($test =~ /^$/) {
next;
@@ -73,6 +75,7 @@ while ($test = shift) {
$next = $next - 1;
if ($ok && $next == $max) {
print "ok\n";
+ $good = $good + 1;
} else {
$next += 1;
print "FAILED on test $next\n";
@@ -91,10 +94,11 @@ if ($bad == 0) {
die "FAILED--no tests were run for some reason.\n";
}
} else {
+ $pct = sprintf("%.2f", $good / $total * 100);
if ($bad == 1) {
- die "Failed 1 test.\n";
+ warn "Failed 1 test, $pct% okay.\n";
} else {
- die "Failed $bad tests.\n";
+ die "Failed $bad/$total tests, $pct% okay.\n";
}
}
($user,$sys,$cuser,$csys) = times;