$!
$! Version 1.1 4-Dec-1995
$! Charles Bailey bailey@newman.upenn.edu
-$
+$!
$! A little basic setup
$ On Error Then Goto wrapup
$ olddef = F$Environment("Default")
$ EndIf
$ EndIf
$ Set Message /NoFacility/NoSeverity/NoIdentification/NoText
-$
+$!
$ exe = ".Exe"
$ If p1.nes."" Then exe = p1
$ If F$Extract(0,1,exe) .nes. "."
$ Link/NoMap/NoTrace/Exe=Echo.Exe Echo.Obj;
$ Delete/Log/NoConfirm Echo.Obj;*
$ echo == "$" + F$Parse("Echo.Exe")
-$
+$!
$! And do it
$ Show Process/Accounting
$ testdir = "Directory/NoHead/NoTrail/Column=1"
$bad = 0;
$good = 0;
+$extra_skip = 0;
$total = @ARGV;
while ($test = shift) {
if ($test =~ /^$/) {
} else {
print "${te}skipping test on this platform\n";
$files -= 1;
+ $extra_skip = $extra_skip + 1;
}
} else {
$next += 1;
die "FAILED--no tests were run for some reason.\n";
}
} else {
- $pct = sprintf("%.2f", $good / $total * 100);
+ # $pct = sprintf("%.2f", $good / $total * 100);
+ $gtotal = $total - $extra_skip;
+ if ($gtotal <= 0) { $gtotal = $total; }
+ $pct = sprintf("%.2f", $good / $gtotal * 100);
if ($bad == 1) {
warn "Failed 1 test, $pct% okay.\n";
- } else {
- warn "Failed $bad/$total tests, $pct% okay.\n";
+ } else {
+ if ($extra_skip > 0) {
+ warn "Total tests: $total, Passed $good, Skipped $extra_skip.\n";
+ warn "Failed $bad/$gtotal tests, $pct% okay.\n";
+ }
+ else {
+ warn "Total tests: $total, Passed $good.\n";
+ warn "Failed $bad/$gtotal tests, $pct% okay.\n";
+ }
}
}
($user,$sys,$cuser,$csys) = times;