3 if exist perl.exe goto perlhere
4 echo Cannot run without perl.exe in current directory!! Did you build it?
8 if exist perlglob.exe goto perlglobhere
9 echo Cannot run without perlglob.exe in current directory!! Did you build it?
13 perl %0.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
17 #Portions (C) 1995 Microsoft Corporation. All rights reserved.
18 # Developed by hip communications inc., http://info.hip.com/info/
21 # This is written in a peculiar style, since we're trying to avoid
22 # most of the constructs we'll be testing for.
26 if ($ARGV[0] eq '-v') {
33 chdir 't' if -f 't/TESTNT';
37 # @ARGV = split(/[ \n]/,
38 # `echo base/*.t comp/*.t cmd/*.t io/*.t; echo op/*.t lib/*.t`);
39 # `ls base/*.t comp/*.t cmd/*.t io/*.t op/*.t lib/*.t`);
41 # WYT 1995-05-02 wildcard expansion,
42 # `perl -e "print( join( ' ', \@ARGV ) )" base/*.t comp/*.t cmd/*.t io/*.t op/*.t lib/*.t nt/*.t`);
44 # WYT 1995-06-01 removed all dependency on perlglob
45 # WYT 1995-11-28 hacked up to cope with braindead Win95 console.
46 push( @ARGV, `dir/s/b base` );
47 push( @ARGV, `dir/s/b comp` );
48 push( @ARGV, `dir/s/b cmd` );
49 push( @ARGV, `dir/s/b io` );
50 push( @ARGV, `dir/s/b op` );
51 push( @ARGV, `dir/s/b lib` );
52 push( @ARGV, `dir/s/b nt` );
55 @ARGV = grep( /\.t$/, @ARGV );
56 grep( s/.*t\\//, @ARGV );
64 while ($test = shift) {
69 # chop off 't' extension
71 print "$te" . '.' x (15 - length($te));
73 open(results,"./$test |") || (print "can't run.\n");
76 # open(results,"./perl$switch $test |") || (print "can't run.\n");
77 open(results,"perl$switch $test |") || (print "can't run.\n");
86 if (/^1\.\.([0-9]+)/) {
93 $next = $1, $ok = 0, last if /^not ok ([0-9]*)/;
94 if (/^ok (.*)/ && $1 == $next) {
103 if ($ok && $next == $max) {
108 print "FAILED on test $next\n";
112 die "Failed a basic test--cannot continue.\n";
119 print "All tests successful.\n";
121 die "FAILED--no tests were run for some reason.\n";
124 $pct = sprintf("%.2f", $good / $total * 100);
126 warn "Failed 1 test, $pct% okay.\n";
128 die "Failed $bad/$total tests, $pct% okay.\n";
133 # WYT 1995-05-03 times not implemented.
134 #($user,$sys,$cuser,$csys) = times;
135 #print sprintf("u=%g s=%g cu=%g cs=%g files=%d tests=%d\n",
136 # $user,$sys,$cuser,$csys,$files,$totmax);
138 #`del /f Cmd_while.tmp Comp.try null 2>NULL`;
140 unlink 'Cmd_while.tmp', 'Comp.try', 'null';