Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Collocation_Oneway_Tests / run_test.pl
blobeff87951473b6075a36d65cda0fa6a92d5ab7c08
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";
12 $iorbase = "test.ior";
13 my $server_iorfile = $server->LocalFile ($iorbase);
14 $server->DeleteFile($iorbase);
15 $status = 0;
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());
23 if ($sv != 0) {
24 print STDERR "ERROR in Collocation_Oneway_Test\n";
25 $status = 1;
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());
33 if ($sv != 0) {
34 print STDERR "ERROR in Collocation_Oneway_Test\n";
35 $status = 1;
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());
43 if ($sv != 0) {
44 print STDERR "ERROR in Collocation_Oneway_Test\n";
45 $status = 1;
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());
53 if ($sv != 0) {
54 print STDERR "ERROR in Collocation_Oneway_Test\n";
55 $status = 1;
57 $server->DeleteFile($iorbase);
58 $server->GetStderrLog();
60 exit $status;