blob: 99836c0885243a90e25b7349de8fc2c1a1f074be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# $Id$
# -*- perl -*-
use lib "$ENV{ACE_ROOT}/bin";
use PerlACE::TestTarget;
my $server = PerlACE::TestTarget::create_target(1) || die "Create target 1 failed\n";
$iorbase = "test.ior";
my $server_iorfile = $server->LocalFile ($iorbase);
$server->DeleteFile($iorbase);
$status = 0;
$SV = $server->CreateProcess ("Collocated_Best_ThruP");
$server->DeleteFile($iorbase);
print STDERR "======== Running with ORBCollocationg = global, (default ORBCollocationStrategy = thru_poa)\n";
$SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -ORBCollocation global");
$sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
if ($sv != 0) {
print STDERR "ERROR in Collocated_Test\n";
$status = 1;
}
$server->DeleteFile($iorbase);
print STDERR "======== Running with -ORBCollocation global -ORBCollocationStrategy best \n";
$SV->Arguments ("-o $server_iorfile -k file://$server_iorfile -ORBCollocation global -ORBCollocationStrategy best");
$sv = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
if ($sv != 0) {
print STDERR "ERROR in Collocated_Test\n";
$status = 1;
}
$server->DeleteFile($iorbase);
$server->GetStderrLog();
exit $status;
|