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