Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DII_Collocation_Tests / oneway / run_test.pl
blob73c3d74b8c7a71b098a9587efa9a4bed3435c783
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 $status = 0;
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());
24 if ($sv != 0) {
25 print STDERR "ERROR in DII Collocated Oneway test\n";
26 $status = 1;
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());
35 if ($sv != 0) {
36 print STDERR "ERROR in DII Collocated Oneway test\n";
37 $status = 1;
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());
46 if ($sv != 0) {
47 print STDERR "ERROR in DII Collocated Oneway test\n";
48 $status = 1;
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());
57 if ($sv != 0) {
58 print STDERR "ERROR in DII Collocated Oneway test\n";
59 $status = 1;
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());
68 if ($sv != 0) {
69 print STDERR "ERROR in DII Collocated Oneway test\n";
70 $status = 1;
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());
79 if ($sv != 0) {
80 print STDERR "ERROR in DII Collocated Oneway test\n";
81 $status = 1;
84 $server->DeleteFile($iorbase);
86 exit $status;