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

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

$nsport = 20000 + uniqueid ();
# doesn't actually use ns yet
$client_port = 0;
$server_port = 0;
$iorfile = "theior";
$sleeptime = 3;

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

sleep ($sleeptime);

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

if ($^O eq "MSWin32")
{
  system ("del ".$iorfile);
}
else
{
  system ("rm ".$iorfile);
}