diff options
Diffstat (limited to 'TAO/DevGuideExamples/NotifyService/Filtering/run_test.pl')
-rw-r--r-- | TAO/DevGuideExamples/NotifyService/Filtering/run_test.pl | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/TAO/DevGuideExamples/NotifyService/Filtering/run_test.pl b/TAO/DevGuideExamples/NotifyService/Filtering/run_test.pl deleted file mode 100644 index 7a52de8ba1d..00000000000 --- a/TAO/DevGuideExamples/NotifyService/Filtering/run_test.pl +++ /dev/null @@ -1,77 +0,0 @@ -# $Id$ - -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' - & eval 'exec perl -S $0 $argv:q' - if 0; - -use Env (ACE_ROOT); -use lib "$ACE_ROOT/bin"; -use PerlACE::Run_Test; - -$nsiorfile = PerlACE::LocalFile("ns.ior"); -$messiorfile = PerlACE::LocalFile("Messenger.ior"); -$notify_ior = PerlACE::LocalFile("notify.ior"); -$arg_ns_ref = "-ORBInitRef NameService=file://$nsiorfile"; -unlink $nsiorfile; -unlink $messiorfile; -unlink $notify_ior; - -# start Naming Service -$NameService = "$ENV{TAO_ROOT}/orbsvcs/Naming_Service/Naming_Service"; -$NS = new PerlACE::Process($NameService, "-o $nsiorfile"); -$NS->Spawn(); -if (PerlACE::waitforfile_timed ($nsiorfile, 10) == -1) { - print STDERR "ERROR: cannot find file $nsiorfile\n"; - $NS->Kill(); - exit 1; -} - -# start Notification Service - -$NotifyService = "$ENV{TAO_ROOT}/orbsvcs/Notify_Service/Notify_Service"; -$NFS = new PerlACE::Process($NotifyService, "$arg_ns_ref -IORoutput $notify_ior"); -$NFS->Spawn(); -# the ior file is only used to wait for the service to start -if (PerlACE::waitforfile_timed ($notify_ior, 10) == -1) { - print STDERR "ERROR: Timed out waiting for $notify_ior\n"; - $NS->Kill (); - $NFS->Kill (); - exit 1; -} - -# start MessengerServer -$S = new PerlACE::Process("MessengerServer", "$arg_ns_ref -o $messiorfile"); -$S->Spawn(); - -# Wait for the MessengerServer -if (PerlACE::waitforfile_timed ($messiorfile, 10) == -1) { - print STDERR "ERROR: Timed out waiting for $messiorfile\n"; - $S->Kill(); - $NS->Kill (); - $NFS->Kill (); - exit 1; -} -# start MessengerConsumer -$MC = new PerlACE::Process("MessengerConsumer", $arg_ns_ref); -$MC->Spawn(); - -# start MessengerClient -$C = new PerlACE::Process("MessengerClient", $arg_ns_ref); -if ($C->SpawnWaitKill(10) != 0) { - $MC->Kill(); - $S->Kill(); - $NFS->Kill(); - $NS->Kill(); - exit (1); -} - -$MC->Kill(); -$S->Kill(); -$NFS->Kill(); -$NS->Kill(); - -unlink $nsiorfile; -unlink $messiorfile; -unlink $notify_ior; - -exit 0; |