X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FTEST;h=abfa65af31eecd8bc06f7824fdc6524c4039f822;hb=6e21c824d91ef0b4ae60b95b347e344e5bb4d38a;hp=11fae071d3294932be177655a310d4973d3a73c3;hpb=7e1cf235bd6c3a4fbf1093f84db8002929b8b6c6;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/TEST b/t/TEST index 11fae07..abfa65a 100644 --- a/t/TEST +++ b/t/TEST @@ -1,6 +1,6 @@ #!./perl -# $Header: TEST,v 3.0.1.3 91/01/11 18:28:17 lwall Locked $ +# $RCSfile: TEST,v $$Revision: 4.0.1.1 $$Date: 91/06/07 11:59:30 $ # This is written in a peculiar style, since we're trying to avoid # most of the constructs we'll be testing for. @@ -15,7 +15,8 @@ if ($ARGV[0] eq '-v') { chdir 't' if -f 't/TEST'; if ($ARGV[0] eq '') { - @ARGV = split(/[ \n]/,`echo base.* comp.* cmd.* io.* op.* lib.*`); + @ARGV = split(/[ \n]/, + `echo base/*.t comp/*.t cmd/*.t io/*.t; echo op/*.t lib/*.t`); } open(CONFIG,"../config.sh"); @@ -27,16 +28,12 @@ while () { } $bad = 0; while ($test = shift) { - if ($test =~ /\.orig$/) { + if ($test =~ /^$/) { next; } - if ($test =~ /\.rej$/) { - next; - } - if ($test =~ /~$/) { - next; - } - print "$test" . '.' x (16 - length($test)); + $te = $test; + chop($te); + print "$te" . '.' x (15 - length($te)); if ($sharpbang) { open(results,"./$test|") || (print "can't run.\n"); } else { @@ -59,6 +56,8 @@ while ($test = shift) { unless (/^#/) { if (/^1\.\.([0-9]+)/) { $max = $1; + $totmax += $max; + $files += 1; $next = 1; $ok = 1; } else { @@ -99,4 +98,5 @@ if ($bad == 0) { } } ($user,$sys,$cuser,$csys) = times; -print sprintf("u=%g s=%g cu=%g cs=%g\n",$user,$sys,$cuser,$csys); +print sprintf("u=%g s=%g cu=%g cs=%g files=%d tests=%d\n", + $user,$sys,$cuser,$csys,$files,$totmax);