blob: 36c84d15ca3606cd4305ed4fb9d55b8013d02fa0 (
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
|
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;
$brace="\#\#\#\#\#";
@tests = ("basic_types", "tc", "growth");
@argslist = ("-n 256 -l 10", "", "-l 64 -h 256 -s 4 -n 100");
$test = "";
$args = "";
$| = 1;
print STDERR "\n";
sub run_test
{
#my $test = shift (@tests);
my $args = shift (@argslist);
print STDERR "\n$brace $test $args test BEGUN\n";
$TST = Process::Create ($EXEPREFIX."$test".$EXE_EXT,
"$args");
print STDERR "\t$test RUNNING\n";
$retval = $TST->TimedWait (60);
if ($retval == -1) {
print STDERR "ERROR $brace $test $args TIMEOUT\n";
$TST->Kill (); $TST->TimedWait (5);
} elsif ($retval != 0) {
print STDERR "ERROR $brace $test $args, exit value $retval\n";
}
print STDERR "$brace $test ENDED successfully\n";
}
foreach $test (@tests)
{
run_test ($test, $args);
}
|