if ($ARGV[0] eq '') {
@ARGV = split(/[ \n]/,
- `echo base/*.t comp/*.t cmd/*.t pragma/*.t io/*.t; echo op/*.t lib/*.t`);
+ `echo base/*.t comp/*.t cmd/*.t io/*.t; echo op/*.t pragma/*.t lib/*.t`);
}
if ($^O eq 'os2' || $^O eq 'qnx') {
} else {
warn "Failed $bad test scripts out of $total, $pct% okay.\n";
}
- warn <<'SHRDLU';
- ### Since not all tests were successful, you may want to run
- ### some tests individually to see the diagnostic messages,
- ### if any. See the INSTALL document's section on "make test".
+ warn <<'SHRDLU';
+ ### Since not all tests were successful, you may want to run some
+ ### of them individually and examine any diagnostic messages they
+ ### produce. See the INSTALL document's section on "make test".
+SHRDLU
+ warn <<'SHRDLU' if $good / $total > 0.8;
+ ###
+ ### Since most tests were successful, you have a good chance to
+ ### get information with better granularity by running
+ ### ./perl harness
+ ### in directory ./t.
SHRDLU
}
($user,$sys,$cuser,$csys) = times;
print sprintf("u=%g s=%g cu=%g cs=%g scripts=%d tests=%d\n",
$user,$sys,$cuser,$csys,$files,$totmax);
-exit($bad != 0);
+exit $bad != 0;