summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/EC_Custom_Marshal/run_test.pl
blob: 130dcd43ac0a4c6a89feeb71b8f22fa341d4b298 (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
32
33
34
35
36
37
38
39
40
# $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;

$NS_ior = "NameService.ior";
$sleeptime = 5;

$NS = Process::Create ("..".$DIR_SEPARATOR.
                       "..".$DIR_SEPARATOR.
                       "Naming_Service".$DIR_SEPARATOR.
                       "Naming_Service".$Process::EXE_EXT.
                       " -o $NS_ior ");
sleep $sleeptime;

$ES = Process::Create ("..".$DIR_SEPARATOR.
                       "..".$DIR_SEPARATOR.
                       "Event_Service".$DIR_SEPARATOR.
                       "Event_Service".$Process::EXE_EXT);

$C = Process::Create ($EXEPREFIX."ECM_Consumer".$Process::EXE_EXT);

sleep $sleeptime;

$S = Process::Create ($EXEPREFIX."ECM_Supplier".$Process::EXE_EXT);

$C->Wait ();
$S->Wait ();

$NS->Kill (); $NS->Wait ();
$ES->Kill (); $ES->Wait ();

unlink $NS_ior;

# @@ Capture the errors from the processes.
exit 0;