Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / POA / On_Demand_Act_Direct_Coll / run_test.pl
blob9f61cdac08968c7df189c940a54e641fd0e231ef
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 my $server = PerlACE::TestTarget::create_target(1) || die "Create target 1 failed\n";
12 $iorbase = "test.ior";
13 my $server_iorfile = $server->LocalFile ($iorbase);
14 $server->DeleteFile($iorbase);
16 $status = 0;
18 $SV = $server->CreateProcess ("On_Demand_Act_D_Coll");
20 print STDERR "======== Running with ORBCollocationg = global, -ORBCollocationStrategy = thru_poa)\n";
21 $SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -t -ORBCollocation global -ORBCollocationStrategy thru_poa");
22 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
24 if ($sv != 0) {
25 print STDERR "ERROR in On_Demand_Act_D_Coll test: Servant Activator and Collocation test\n";
26 $status = 1;
28 $server->DeleteFile($iorbase);
31 print STDERR "======== Running with -ORBCollocation global -ORBCollocationStrategy direct \n";
32 $SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -d -ORBCollocation global -ORBCollocationStrategy direct");
33 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
35 if ($sv != 0) {
36 print STDERR "ERROR in On_Demand_Act_D_Coll test: Servant Activator and Collocation test\n";
37 $status = 1;
40 $server->DeleteFile($iorbase);
41 $server->GetStderrLog();
43 exit $status;