summaryrefslogtreecommitdiff
path: root/TAO/tests/Cubit/TAO/DII_Cubit/run_test.pl
blob: c2ff53f8c7df1598604f23384fa1abe7d475a34c (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
#$Id$
# -*- perl -*-
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
    & eval 'exec perl -S $0 $argv:q'
    if 0;

unshift @INC, '../../../../../bin';
require Process;

$client_port = 0;
$server_port = 0;
$iorfile = "theior";

$SV = Process::Create ("..$DIR_SEPARATOR"."IDL_Cubit".
		       $DIR_SEPARATOR."server".$Process::EXE_EXT, 
                       " -ORBport ".$server_port.
		       " -ORBobjrefstyle url".
		       " -s -f $iorfile");

sleep (2);

$status = system ("client".$Process::EXE_EXT.
		  " -ORBport $client_port".
		  " -s -f $iorfile -x");

# @@ TODO change to Wait() once the -x option works.
$SV->Kill (); $SV->Wait ();

unlink $iorfile;

exit $status;