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
;
10 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
11 my $iorbase = "test.ior";
12 my $iorfile = $server->LocalFile ($iorbase);
16 $SV = $server->CreateProcess ("Collocated_Test");
18 $server->DeleteFile($iorbase);
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 twoway test\n";
28 $server->DeleteFile($iorbase);
30 print STDERR
"======== Running with per-orb \n";
31 $SV->Arguments ("-o $iorfile -k file://$iorfile -ORBCollocation per-orb");
32 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
35 print STDERR
"ERROR in DII Collocated twoway test\n";
38 $server->DeleteFile($iorbase);
40 print STDERR
"======== Running with no collocation \n";
41 $SV->Arguments ("-o $iorfile -k file://$iorfile -ORBCollocation no");
42 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
45 print STDERR
"ERROR in DII Collocated twoway test\n";
48 $server->DeleteFile($iorbase);
50 print STDERR
"======== Running in default mode and two ORBS \n";
51 $SV->Arguments ("-o $iorfile -k file://$iorfile -n ");
52 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
55 print STDERR
"ERROR in DII Collocated twoway test\n";
58 $server->DeleteFile($iorbase);
60 print STDERR
"======== Running in per-orb mode and two ORBS \n";
61 $SV->Arguments ("-o $iorfile -k file://$iorfile -n -ORBCollocation per-orb");
62 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
65 print STDERR
"ERROR in DII Collocated twoway test\n";
68 $server->DeleteFile($iorbase);
70 print STDERR
"======== Running in no collocation mode and two ORBS \n";
71 $SV->Arguments ("-o $iorfile -k file://$iorfile -n -ORBCollocation no");
72 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
75 print STDERR
"ERROR in DII Collocated twoway test\n";
78 $server->DeleteFile($iorbase);