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
;
20 my $test = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
23 my $port = $test->RandomPort();
24 my $loadtest_xml = "loadtest.xml";
25 my $abc_xml = "abc.xml";
28 $T = $test->CreateProcess ("main", "-ORBdebuglevel $debug_level -orbobjrefstyle url ".
29 "-ORBEndpoint iiop://:$port -pass $pass");
32 $test->DeleteFile($loadtest_xml);
33 $test->DeleteFile($abc_xml);
35 for ($i = 0; $i < 10; ++$i) {
36 $test->DeleteFile($prefix.".00".$i);
38 for ($i = 10; $i < 20; ++$i) {
39 $test->DeleteFile($prefix.".0".$i);
45 $test_status = $T->SpawnWaitKill ($test->ProcessStartWaitInterval());
47 if ($test_status != 0) {
48 print STDERR
"ERROR: test returned $test_status\n";
52 $different = compare
($loadtest_xml, $abc_xml);
54 print "ERROR : $loadtest_xml != $abc_xml\n";
58 print "Success : $loadtest_xml == $abc_xml\n";