1
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2
& eval 'exec perl -S $0 $argv:q'
5
# run_test.pl,v 1.7 2003/06/24 22:40:49 pradeep Exp
8
use lib "../../../../../bin";
11
$experiment_timeout = 60;
12
$startup_timeout = 60;
13
$notifyior = PerlACE::LocalFile ("notify.ior");
14
$namingior = PerlACE::LocalFile ("naming.ior");
20
name => "AdminProperties",
21
args => "-ORBSvcConf adminproperties.conf",
24
name => "ConnectDisconnect",
32
name => "IdAssignment",
61
@default_test_configs =
64
"notify.reactive.conf",
70
@test_configs = @default_test_configs;
74
@test_configs = @ARGV;
77
$Naming = new PerlACE::Process ("../../../Naming_Service/Naming_Service",
83
if (PerlACE::waitforfile_timed ($namingior, $startup_timeout) == -1) {
84
print STDERR "ERROR: waiting for the naming service to start\n";
89
for $config (@test_configs)
91
print STDERR "\nTesting Notification Service with config file = $config ....\n\n";
93
$Notification = new PerlACE::Process ("../../../Notify_Service/Notify_Service",
94
"-ORBInitRef NameService=file://$namingior " .
95
"-IORoutput $notifyior " .
96
"-ORBSvcConf $config");
98
$Notification->Spawn ();
100
if (PerlACE::waitforfile_timed ($notifyior, $startup_timeout) == -1) {
101
print STDERR "ERROR: waiting for the notify service to start\n";
102
$Notification->Kill ();
109
## The MaxQueueLength and MaxEventsPerConsumer are not supported in the Reactive
110
## configuration, so we skip this test for now.
111
## The Notification should actually throw an exception for the property not supported.
112
if ($name->{name} eq "AdminProperties"
113
&& ($config eq "notify.reactive.conf" || $config eq "notify.rt.conf"))
118
print STDERR "\nTesting $name->{name}....\n\n";
119
$test = new PerlACE::Process ("./$name->{name}",
120
"-ORBInitRef NameService=file://$namingior " .
124
$status = $test->WaitKill ($experiment_timeout);
128
print STDERR "ERROR: $name returned $status\n";
133
$Notification->Kill ();