Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / performance-tests / Sequence_Latency / Sequence_Operations_Time / run_test.pl
blob20c6b3d08a52f299735f3e79469ea09ab3aa70ab
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 print STDERR "================ Sequence Operations Time Test\n";
21 for ($i = 0; $i <= $#ARGV; $i++) {
22 if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") {
23 print "Run_Test Perl script for Performance Test\n\n";
24 print "run_test \n";
25 print "\n";
26 exit 0;
30 my $client = PerlACE::TestTarget::create_target (1) || die "Create target 1 failed\n";
32 $CL = $client->CreateProcess ("test", "-ORBdebuglevel $debug_level");
34 $client_status = $CL->SpawnWaitKill ($client->ProcessStartWaitInterval() + 405);
36 if ($test_status != 0) {
37 print STDERR "ERROR: test returned $client_status\n";
38 $status = 1;
41 exit $status;