diff options
author | smcqueen <smcqueen@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-11-25 13:05:34 +0000 |
---|---|---|
committer | smcqueen <smcqueen@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-11-25 13:05:34 +0000 |
commit | 1bd640c79b5db4c980ca2f3066736930689a465d (patch) | |
tree | d60c850689b5dabbfc675b8e683648a2f4be2f1f /TAO/orbsvcs/tests/ImplRepo/run_test.pl | |
parent | c26f36d4cbe4761a17714ab1a56d39053169ae97 (diff) | |
download | ATCD-1bd640c79b5db4c980ca2f3066736930689a465d.tar.gz |
ChangeLogTag: Fri Nov 25 13:01:23 2005 Simon McQueen <sm@prismtech.com>
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/run_test.pl')
-rwxr-xr-x | TAO/orbsvcs/tests/ImplRepo/run_test.pl | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/run_test.pl b/TAO/orbsvcs/tests/ImplRepo/run_test.pl index c11ca93dfef..0a63cb815bf 100755 --- a/TAO/orbsvcs/tests/ImplRepo/run_test.pl +++ b/TAO/orbsvcs/tests/ImplRepo/run_test.pl @@ -151,7 +151,7 @@ sub nt_service_test my $result = 0; # Just to show that it's possible, this test uses corbaloc instead of ior file. - my $imr_initref = "-orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService"; + my $imr_initref = "-orbinitref ImplRepoService=corbaloc::localhost:8888/ImplRepoService"; # To avoid having to ensure that they LocalSystem account has the correct path # we simply copy the imr executables to the same directory as the DLL's. @@ -286,7 +286,7 @@ sub airplane_ir_test # No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator # Can use update to add servers. - $TAO_IMR->Arguments ("$imr_initref update airplane_server -c \"" + $TAO_IMR->Arguments ("$imr_initref update airplane_server -c \"" . $A_SVR->Executable () . " -o $airplane_ior \""); @@ -442,15 +442,15 @@ sub nestea_ir_test $status = 1; } - # This should destroy the POA, causing another to be created the next time - # the server is spawned. + # This should destroy the POA, causing another to be created the next time + # the server is spawned. $TAO_IMR->Arguments ("$imr_initref remove nestea_server"); $result = $TAO_IMR->SpawnWaitKill (10); if ($result != 0) { print STDERR "ERROR: tao_imr 1 returned $result\n"; $status = 1; } - + # No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator $TAO_IMR->Arguments ("$imr_initref add nestea_server -c \"" . $N_SVR->Executable () @@ -463,7 +463,7 @@ sub nestea_ir_test $IMR_LOCATOR->Kill (); return 1; } - + # This should cause the activator to spawn another server. $result = $N_CLI->SpawnWaitKill (20); if ($result != 0) { @@ -534,9 +534,9 @@ sub perclient $IMR_LOCATOR->Kill (); return 1; } - + $N_CLI->Arguments("-k corbaloc::localhost:8888/nestea_server"); - + # Running the client should start a server instance $result = $N_CLI->SpawnWaitKill (10); if ($result != 0) { @@ -551,7 +551,7 @@ sub perclient } unlink $nestea_ior; - + $N_CLI->Arguments("-s -k corbaloc::localhost:8888/nestea_server"); # Running the client again should start another server instance @@ -570,7 +570,7 @@ sub perclient # Note : We have to wait long enough for the first server to self-destruct # or it will print out an exception when it can't notify the imr of its shutdown. sleep 10; - + my $implrepo = $IMR_ACTIVATOR->TerminateWaitKill (5); if ($implrepo != 0) { print STDERR "ERROR: IMR_Activator returned $implrepo\n"; @@ -596,7 +596,7 @@ sub shutdown_repo my $imr_initref = "-orbobjrefstyle URL -ORBInitRef ImplRepoService=file://$imr_locator_ior"; unlink "test.repo"; - + # Specify an endpoint so that we can restart on the same port. # Specify persistence so that we can test that shutdown-repo -a works after reconnect $IMR_LOCATOR->Arguments ("-p test.repo -d 1 -orbendpoint iiop://:8888 -o $imr_locator_ior"); @@ -641,7 +641,7 @@ sub shutdown_repo $IMR_LOCATOR->Kill (); return 1; } - + $TAO_IMR->Arguments ("$imr_initref shutdown-repo -a"); $result = $TAO_IMR->SpawnWaitKill (5); if ($result != 0) { @@ -664,7 +664,7 @@ sub shutdown_repo } unlink "test.repo"; - + return $status; } @@ -701,10 +701,10 @@ sub persistent_ir_test # Copy the server to a path with spaces to ensure that these # work corrrectly. copy ($A_SVR->Executable(), $P_SVR->Executable()); - chmod(0755, $P_SVR->Executable()); + chmod(0755, $P_SVR->Executable()); # No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator - $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \"" + $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \"" . '\"' . $P_SVR->Executable() . '\"' . "\" " . $refstyle); $result = $TAO_IMR->SpawnWaitKill (10); @@ -718,7 +718,7 @@ sub persistent_ir_test ## This will write out the imr-ified IOR. Note : If you don't use -orbendpoint ## when starting the ImR, then this IOR will no longer be valid when the ImR ## restarts below. You can fix this by creating a new valid IOR, or starting - ## the ImR on a consistent endpoint. + ## the ImR on a consistent endpoint. $A_SVR->Arguments ("-o $airplane_ior -ORBUseIMR 1 $refstyle $imr_initref"); $A_SVR->Spawn (); if (PerlACE::waitforfile_timed ($airplane_ior, 10) == -1) { @@ -827,7 +827,7 @@ sub persistent_ir_test unlink $imr_activator_ior; unlink $airplane_ior; - return 0; + return 0; } ############################################################################### @@ -860,7 +860,7 @@ sub both_ir_test ## Note : It's crucial NOT to write out an IOR file when the activator ## starts the server, or at least to write out a different file name ## than the IOR files we're using for the clients. Otherwise a client - ## may attempt to use a partially written file. + ## may attempt to use a partially written file. # No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator $TAO_IMR->Arguments ("$imr_initref add nestea_server -c \"" . $N_SVR->Executable () @@ -868,7 +868,7 @@ sub both_ir_test $TAO_IMR->SpawnWaitKill (10); # No need to specify imr_initref or -orbuseimr 1 for servers spawned by activator - $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \"" + $TAO_IMR->Arguments ("$imr_initref add airplane_server -c \"" . $A_SVR->Executable () . " $refstyle\""); $TAO_IMR->SpawnWaitKill (10); @@ -883,7 +883,7 @@ sub both_ir_test $N_SVR->Kill (); return 1; } - + $A_SVR->Arguments (" -o $airplane_ior -ORBUseIMR 1 $imr_initref $refstyle"); $A_SVR->Spawn (); if (PerlACE::waitforfile_timed ($airplane_ior, 10) == -1) { @@ -912,8 +912,8 @@ sub both_ir_test $TAO_IMR->Arguments ("$imr_initref shutdown airplane_server"); $TAO_IMR->SpawnWaitKill (15); - $A_SVR->WaitKill(); - $N_SVR->WaitKill(); + $A_SVR->WaitKill(1); + $N_SVR->WaitKill(1); print "\n\n\n\n## Spawning multiple simultaneous clients with no servers running.\n"; |