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";
12 $iorbase = "test.ior";
13 my $server_iorfile = $server->LocalFile ($iorbase);
14 $server->DeleteFile($iorbase);
17 $SV = $server->CreateProcess ("Collocated_Test");
19 print STDERR
"======== Running in Default Mode \n";
20 $SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -m none ");
21 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
24 print STDERR
"ERROR in Collocation_Oneway_Test\n";
27 $server->DeleteFile($iorbase);
29 print STDERR
"======== Running in Default Mode \n";
30 $SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -m transport");
31 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
34 print STDERR
"ERROR in Collocation_Oneway_Test\n";
37 $server->DeleteFile($iorbase);
39 print STDERR
"======== Running in Default Mode \n";
40 $SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -m server");
41 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
44 print STDERR
"ERROR in Collocation_Oneway_Test\n";
47 $server->DeleteFile($iorbase);
49 print STDERR
"======== Running in Default Mode \n";
50 $SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -m target");
51 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
54 print STDERR
"ERROR in Collocation_Oneway_Test\n";
57 $server->DeleteFile($iorbase);
58 $server->GetStderrLog();