Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tests / CDR / run_test.pl
blob565687fb5a009f25fc7837db655fc6d62e6525a8
1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
3 if 0;
5 # -*- perl -*-
7 use lib "$ENV{ACE_ROOT}/bin";
8 use PerlACE::TestTarget;
10 my $target = PerlACE::TestTarget::create_target (1);
12 $brace="\#\#\#\#\#";
13 %tests = ("basic_types" => "-n 256 -l 10",
14 "tc" => "",
15 "growth" => "-l 64 -h 256 -s 4 -n 10 -q",
16 "alignment" => "",
17 "allocator" => "-q");
18 $test = "";
19 $args = "";
20 $status = 0;
21 print STDERR "\n";
23 while (($test,$args) = each %tests) {
24 print STDERR "\n$brace $test $args test BEGUN\n";
25 $TST = $target->CreateProcess ($test, $args);
26 print STDERR "\tRUNNING $test\n";
28 $retval = $TST->SpawnWaitKill ($target->ProcessStartWaitInterval() + 60);
30 if ($retval != 0) {
31 print STDERR "ERROR $brace $test $args, exit value $retval\n";
32 $status = 1;
34 print STDERR "$brace $test FINISHED successfully\n";
37 $target->GetStderrLog();
39 exit $status;