3 # We suppose that perl _mostly_ works at this moment, so may use
4 # sophisticated testing.
8 unshift @INC, '../lib';
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';
35 foreach (keys %datahandle) {
40 @tests = <base/*.t comp/*.t cmd/*.t io/*.t op/*.t pragma/*.t lib/*.t> unless @tests;
42 Test::Harness::runtests @tests;
43 exit(0) unless -e "../testcompile";
52 my $dhwrapper = <<'EOT';
53 open DATA,"<".__FILE__;
54 until (($_=<DATA>) =~ /^__END__/) {};
57 @tests = grep (!$infinite{$_}, @tests);
60 if ($datahandle{$_} && !( -f "$new.t") ) {
63 open(F,"<$_") or die "Can't open $_: $!";
64 open(T,">$new") or die "Can't open $new: $!";
65 print T $dhwrapper, <F>;
72 print "The tests ", join(' ', keys(%infinite)),
73 " generate infinite loops! Skipping!\n";
75 $ENV{'HARNESS_COMPILE_TEST'} = 1;
76 $ENV{'PERLCC_TIMEOUT'} = 120 unless $ENV{'PERLCC_TIMEOUT'};
78 Test::Harness::runtests @tests;
79 foreach (keys %datahandle) {