3 # $Header: TEST,v 1.0 87/12/18 13:11:34 root Exp $
5 # This is written in a peculiar style, since we're trying to avoid
6 # most of the constructs we'll be testing for.
8 if ($ARGV[0] eq '-v') {
14 @ARGV = split(/[ \n]/,`echo base.* comp.* cmd.* io.* op.*`);
18 while ($test = shift) {
20 open(results,"$test|") || (print "can't run.\n");
27 if (/^1\.\.([0-9]+)/) {
32 if (/^ok (.*)/ && $1 == $next) {
41 if ($ok && $next == $max) {
45 print "FAILED on test $next\n";
49 die "Failed a basic test--cannot continue.";
56 print "All tests successful.\n";
58 die "FAILED--no tests were run for some reason.";
64 die "Failed $bad tests.";
67 ($user,$sys,$cuser,$csys) = times;
68 print sprintf("u=%g s=%g cu=%g cs=%g\n",$user,$sys,$cuser,$csys);