1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
7 use lib
"$ENV{ACE_ROOT}/bin";
14 sub run_test_from_current_directory
{
16 $test = Process
::Create
($EXEPREFIX."run_test.pl","");
17 wait_for_test_to_finish
();
23 print STDOUT
"__________________________________________________________ \n";
24 print STDOUT
"**running test in $dir : \n";
27 sub wait_for_test_to_finish
{
28 if ($test->TimedWait (60) == -1) {
29 print STDERR
"ERROR: run_test.pl timedout\n";
31 $test->Kill (); $test->TimedWait (1);
38 # change to each example's directory, and run their test
39 chdir "ch_3" or die "can't cd to ch_3 $!\n";
40 run_test_from_current_directory
();
42 chdir "../ch_8_and_10" or die "can't cd to ch_8_and_10 $!\n";
43 run_test_from_current_directory
();
45 chdir "../ch_12" or die "can't cd to ch_12 $!\n";
46 run_test_from_current_directory
();
48 chdir "../ch_18" or die "can't cd to ch_18 $!\n";
49 run_test_from_current_directory
();
51 #chdir "../ch_19" or die "can't cd to ch_19 $!\n";
52 #run_test_from_current_directory();
54 #chdir "../ch_21" or die "can't cd to ch_21 $!\n";
55 #run_test_from_current_directory();