5 use Test
::Harness
qw(&runtests $verbose);
6 $verbose = (defined $ENV{'VERBOSE'} ? $ENV{'VERBOSE'} : 0);
7 my $tests = (defined $ENV{'RUNTESTS'} ? $ENV{'RUNTESTS'} : '');
9 my $srcdir = (defined $ENV{'srcdir'} ? $ENV{'srcdir'} : '.');
13 while ($f = readdir(DIR)) {
14 if ($f =~ /^(.*)\.t$/) {
15 next if ($tests ne '' and $tests !~ /(^|\s+)$1(\s+|$)/);
16 push @fs, $srcdir.'/'.$f;