summaryrefslogtreecommitdiff
path: root/TAO/tests/CDR/run_test.pl
blob: 95600c86b4e91d032d38f3a1389c6978524f3da1 (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
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->Wait ()) / 256;
    if ($retval != 0)
    {
        print STDERR "$brace $test $args FAILED; exited with value $retval\n";
    }
    print STDERR "$brace $test ENDED successfully\n";
}

foreach $test (@tests)
{
    run_test ($test, $args);
}