1 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
2 & eval 'exec perl -S $0 $argv:q'
7 use lib
"$ENV{ACE_ROOT}/bin";
8 use PerlACE
::TestTarget
;
10 $target = PerlACE
::TestTarget
::create_target
(1) || die "Create target failed\n";
15 $management_port = 12346;
16 $conf_file = "lf_flush.conf";
17 $flush_strategy = "LF";
23 elsif ($i eq '-blocking') {
24 $conf_file = "block_flush.conf";
25 $flush_strategy = "BLOCKING";
27 elsif ($i eq '-reactive') {
28 $conf_file = "reactive_flush.conf";
29 $flush_strategy = "REACTIVE";
32 print STDERR
"ERROR: Unknown option: $i\n";
37 $client_conf = $target->LocalFile ($conf_file);
39 if ($target->PutFile ($conf_file) == -1) {
40 print STDERR
"ERROR: cannot set file <$client_conf>\n";
44 my $test_opts = "-s \'-ORBEndpoint iiop://localhost:$test_port -ORBEndpoint " .
45 "iiop://localhost:$management_port -ORBDebuglevel $debug_level -ORBCollocation " .
46 "no -ORBGestalt LOCAL\' -c \'-k corbaloc::localhost:$test_port/Test -b " .
47 "corbaloc::localhost:$management_port/Management -ORBDebuglevel $debug_level " .
48 "-ORBCollocation no -1 -ORBSvcConf $client_conf -f $flush_strategy " .
49 "-ORBGestalt LOCAL\'";
51 $TV = $target->CreateProcess ("oneway_test", "$test_opts");
53 $test = $TV->Spawn ();
56 print STDERR
"ERROR: test returned $test\n";
60 $test = $TV->WaitKill ($target->ProcessStartWaitInterval() +
61 $target->ProcessStopWaitInterval());
64 print STDERR
"ERROR 2: test returned $test\n";