3 # We suppose that perl _mostly_ works at this moment, so may use
4 # sophisticated testing.
9 $ENV{PERL5LIB} = '../lib'; # so children will see it too
15 $Test::Harness::switches = ""; # Too much noise otherwise
16 $Test::Harness::verbose = shift if @ARGV && $ARGV[0] eq '-v';
19 @tests = <base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t lib/*.t> unless @tests;
21 Test::Harness::runtests @tests;
23 %infinite = ('comp/require.t', 1, 'op/bop.t', 1, 'lib/hostname.t', 1 );
25 @tests = grep (!$infinite{$_}, @tests);
27 if (-e "../testcompile")
29 print "The tests ", join(' ', keys(%infinite)),
30 " generate infinite loops! Skipping!\n";
32 $ENV{'COMPILE_TEST'} = 1; Test::Harness::runtests @tests;