blob: cab8085049f7c019b7ef09c84a1d29b9d88bc619 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
use lib "../../../bin";
require ACEutils;
require Process;
$status = 0;
sub run_test_from_current_directory{
announce_test();
$test = Process::Create($EXEPREFIX."run_test.pl","");
wait_for_test_to_finish();
}
sub announce_test{
use Cwd;
$dir = cwd();
print STDOUT "__________________________________________________________ \n";
print STDOUT "**running test in $dir : \n";
}
sub wait_for_test_to_finish {
if ($test->TimedWait (60) == -1) {
print STDERR "ERROR: run_test.pl timedout\n";
$status = 1;
$test->Kill (); $test->TimedWait (1);
}
}
# change to each example's directory, and run their test
chdir "ch_3" or die "can't cd to ch_3 $!\n";
run_test_from_current_directory();
chdir "../ch_8_and_10" or die "can't cd to ch_8_and_10 $!\n";
run_test_from_current_directory();
chdir "../ch_12" or die "can't cd to ch_12 $!\n";
run_test_from_current_directory();
chdir "../ch_18" or die "can't cd to ch_18 $!\n";
run_test_from_current_directory();
#chdir "../ch_19" or die "can't cd to ch_19 $!\n";
#run_test_from_current_directory();
#chdir "../ch_21" or die "can't cd to ch_21 $!\n";
#run_test_from_current_directory();
exit $status;
|