Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / performance-tests / Latency / Collocation / run_test.pl
blobba54e568b732f1a188233b1b0977ccfbbf6bbfae
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 $status = 0;
11 $debug_level = '0';
13 foreach $i (@ARGV) {
14 if ($i eq '-debug') {
15 $debug_level = '10';
19 my $test = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
20 $T = $test->CreateProcess ("Collocated_Test", "-ORBdebuglevel $debug_level");
21 $test_status = $T->SpawnWaitKill ($test->ProcessStartWaitInterval() + 45);
23 if ($test_status != 0) {
24 print STDERR "ERROR: Collocated_Test returned $test_status\n";
25 exit 1;
28 exit $status;