1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
7 use lib
"$ENV{ACE_ROOT}/bin";
8 use PerlACE
::TestTarget
;
12 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
13 my $iorbase = "test.ior";
14 my $iorfile = $server->LocalFile ($iorbase);
16 $server->DeleteFile($iorbase);
18 $SV = $server->CreateProcess ("Collocated_Test");
20 print STDERR
"======== Running in Default Mode \n";
21 $SV->Arguments ("-o $iorfile -k file://$iorfile");
22 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
25 print STDERR
"ERROR in DII Collocated Oneway test\n";
29 $server->DeleteFile($iorbase);
31 print STDERR
"======== Running with per-orb \n";
32 $SV->Arguments ("-o $iorfile -k file://$iorfile -ORBCollocation per-orb");
33 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
36 print STDERR
"ERROR in DII Collocated Oneway test\n";
40 $server->DeleteFile($iorbase);
42 print STDERR
"======== Running with no collocation \n";
43 $SV->Arguments ("-o $iorfile -k file://$iorfile -ORBCollocation no");
44 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
47 print STDERR
"ERROR in DII Collocated Oneway test\n";
51 $server->DeleteFile($iorbase);
53 print STDERR
"======== Running in default mode and two ORBS \n";
54 $SV->Arguments ("-o $iorfile -k file://$iorfile -n ");
55 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
58 print STDERR
"ERROR in DII Collocated Oneway test\n";
62 $server->DeleteFile($iorbase);
64 print STDERR
"======== Running in per-orb mode and two ORBS \n";
65 $SV->Arguments ("-o $iorfile -k file://$iorfile -n -ORBCollocation per-orb");
66 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
69 print STDERR
"ERROR in DII Collocated Oneway test\n";
73 $server->DeleteFile($iorbase);
75 print STDERR
"======== Running in no collocation mode and two ORBS \n";
76 $SV->Arguments ("-o $iorfile -k file://$iorfile -n -ORBCollocation no");
77 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
80 print STDERR
"ERROR in DII Collocated Oneway test\n";
84 $server->DeleteFile($iorbase);