3 eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
4 & eval 'exec perl -S $0 $argv:q'
9 use lib
"$ENV{ACE_ROOT}/bin";
10 use PerlACE
::TestTarget
;
13 my $tao_idl = "$ENV{ACE_ROOT}/bin/tao_idl";
14 if (exists $ENV{HOST_ROOT
}) {
15 $tao_idl = "$ENV{HOST_ROOT}/bin/tao_idl";
18 my $server = PerlACE
::TestTarget
::create_target
(1) || die "Create target 1 failed\n";
20 # Generated code file names
21 $TestCaseC_i = "TestCaseC.i";
23 $server_TestCaseC_i = $server->LocalFile($TestCaseC_i);
24 $server->DeleteFile($TestCaseC_i);
26 $input_file = $server->LocalFile ("TestCase.idl");
31 $SV = $server->CreateProcess ("$tao_idl", "-Ge 1 -Sc $input_file");
33 $server_status = $SV->SpawnWaitKill ($server->ProcessStartWaitInterval());
35 if ($server_status != 0) {
36 print STDERR
"ERROR: server returned $server_status\n";
40 if ($server->WaitForFileTimed ($TestCaseC_i,
41 $server->ProcessStartWaitInterval()) == -1) {
42 print STDERR
"ERROR: cannot find file <$server_TestCaseC_i\n";
43 $SV->Kill (); $SV->TimedWait (1);
47 # Test for the presence of Body_dup etc. Crude test assumes that if
48 # Body_dup is there, then all the Body_* methods are also there.
51 open (I_FILE
, "$server_TestCaseC_i") ;
54 if( $_ =~ /Body_dup/ ){
60 print STDERR
"ERROR: Body_* methods not found\n" ;
64 $server->DeleteFile($TestCaseC_i);