1 #!/usr/bin/perl -w -I .. -I ../..
3 # Wrapper for running the test harnesses
10 use NPTest
qw(DetermineTestHarnessDirectory TestsFrom);
16 if ( ! GetOptions
( "testdir:s" => \
@tstdir ) )
18 print "Usage: ${0} [--testdir=<directory>] [<test_harness.t> ...]\n";
24 if ( scalar( @ARGV ) )
30 my @directory = DetermineTestHarnessDirectory
( @tstdir );
32 if ( @directory == 0 )
34 print STDERR
"$0: Unable to determine the test harness directory - ABORTING\n";
38 for my $d ( @directory )
40 push (@tests, TestsFrom
( $d, 1 ));
44 if ( ! scalar( @tests ) )
46 print STDERR
"$0: Unable to determine the test harnesses to run - ABORTING\n";