Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DII_Collocation_Tests / twoway / run_test.pl
blobef7886557d0d8b2b865ac9a92589582110458abd
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";
11 my $iorbase = "test.ior";
12 my $iorfile = $server->LocalFile ($iorbase);
14 $status = 0;
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());
24 if ($sv != 0) {
25 print STDERR "ERROR in DII Collocated twoway test\n";
26 $status = 1;
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());
34 if ($sv != 0) {
35 print STDERR "ERROR in DII Collocated twoway test\n";
36 $status = 1;
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());
44 if ($sv != 0) {
45 print STDERR "ERROR in DII Collocated twoway test\n";
46 $status = 1;
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());
54 if ($sv != 0) {
55 print STDERR "ERROR in DII Collocated twoway test\n";
56 $status = 1;
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());
64 if ($sv != 0) {
65 print STDERR "ERROR in DII Collocated twoway test\n";
66 $status = 1;
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());
74 if ($sv != 0) {
75 print STDERR "ERROR in DII Collocated twoway test\n";
76 $status = 1;
78 $server->DeleteFile($iorbase);
80 exit $status;