diff options
Diffstat (limited to 'TAO/examples/POA/On_Demand_Loading/run_test.pl')
-rwxr-xr-x | TAO/examples/POA/On_Demand_Loading/run_test.pl | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/TAO/examples/POA/On_Demand_Loading/run_test.pl b/TAO/examples/POA/On_Demand_Loading/run_test.pl deleted file mode 100755 index b21ee5ad8af..00000000000 --- a/TAO/examples/POA/On_Demand_Loading/run_test.pl +++ /dev/null @@ -1,107 +0,0 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -# $Id$ -# -*- perl -*- - -unshift @INC, '../../../../bin'; -require ACEutils; - -$iorfile = "ior"; - -$oneway = ""; -$iterations = 100; - -$extra_args = ""; - -# Parse the arguments -for ($i = 0; $i <= $#ARGV; $i++) -{ - SWITCH: - { - if ($ARGV[$i] eq "-h" || $ARGV[$i] eq "-?") - { - print "run_test [-h] [-i iterations] [-o] [-f ior file]\n"; - print "\n"; - print "-h -- prints this information\n"; - print "-f -- ior file\n"; - print "-i iterations -- specifies iterations\n"; - print "-o -- call issued are oneways\n"; - exit; - } - if ($ARGV[$i] eq "-o") - { - $oneway = "-o"; - last SWITCH; - } - if ($ARGV[$i] eq "-i") - { - $iterations = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - if ($ARGV[$i] eq "-f") - { - $iorfile = $ARGV[$i + 1]; - $i++; - last SWITCH; - } - $extra_args .= " " . $ARGV[$i]; - } -} - -$iorfile_1 = $iorfile."_1"; -$iorfile_2 = $iorfile."_2"; - -unlink $iorfile_1; -unlink $iorfile_2; - -$SV = Process::Create ($EXEPREFIX."server$EXE_EXT", "-f $iorfile $extra_args"); - -if (ACE::waitforfile_timed ($iorfile_1, 15) == -1) { - print STDERR "ERROR: cannot find file <$iorfile_1>\n"; - $SV->Kill (); $SV->TimedWait (1); - exit 1; -} - -if (ACE::waitforfile_timed ($iorfile_2, 15) == -1) { - print STDERR "ERROR: cannot find file <$iorfile_2>\n"; - $SV->Kill (); $SV->TimedWait (1); - exit 1; -} - - - -$CL_1 = Process::Create ("../Generic_Servant/client$EXE_EXT ", - " $extra_args $oneway -i $iterations -f $iorfile_1"); - -$client_1 = $CL_1->TimedWait (60); -if ($client_1 == -1) { - print STDERR "ERROR: client 1 timedout\n"; - $CL_1->Kill (); $CL_1->TimedWait (1); -} - -$CL_2 = Process::Create ("../Generic_Servant/client$EXE_EXT ", - " $extra_args $oneway -i $iterations -f $iorfile_2 -x"); - -$client_2 = $CL_2->TimedWait (60); -if ($client_2 == -1) { - print STDERR "ERROR: client 2 timedout\n"; - $CL_2->Kill (); $CL_2->TimedWait (1); -} - -$server = $SV->TimedWait (5); -if ($server == -1) { - print STDERR "ERROR: server timedout\n"; - $SV->Kill (); $SV->TimedWait (1); -} - -unlink $iorfile_1; -unlink $iorfile_2; - -if ($server != 0 || $client_1 != 0 || $client_2 != 0) { - exit 1; -} - -exit 0; |