Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Collocated_ThruP_Sp / run_test.pl
blobe9fa3c42a0027f3f7ab1b001f9b1a1c46fcb33fb
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);
16 $status = 0;
17 $debug_level = '0';
19 foreach $i (@ARGV) {
20 if ($i eq '-debug') {
21 $debug_level = '10';
25 $SV = $server->CreateProcess ("Collocated_ThruP_Sp");
27 print STDERR "======== Running in Default Mode \n";
28 $SV->Arguments ("-ORBdebuglevel $debug_level -o $server_iorfile -k file://$server_iorfile");
29 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
31 if ($sv != 0) {
32 print STDERR "ERROR in Collocated_Test\n";
33 $status = 1;
35 $server->DeleteFile($iorbase);
37 print STDERR "======== Running with global ORBCollocationStrategy\n";
38 $SV->Arguments ("-ORBdebuglevel $debug_level -o $server_iorfile -k file://$server_iorfile -ORBCollocation global");
39 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
41 if ($sv != 0) {
42 print STDERR "ERROR in Collocated_Test\n";
43 $status = 1;
45 $server->DeleteFile($iorbase);
47 print STDERR "======== Running with global ORBCollocationStrategy thru_poa\n";
48 $SV->Arguments ("-ORBdebuglevel $debug_level -o $server_iorfile -k file://$server_iorfile -ORBCollocation global -ORBCollocationStrategy thru_poa");
49 $sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
51 if ($sv != 0) {
52 print STDERR "ERROR in Collocated_Test\n";
53 $status = 1;
56 $server->DeleteFile($iorbase);
57 $server->GetStderrLog();
59 exit $status;