blob: f16e0bad16823fb48d4ee5556a4b471081244aca (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# -*- perl -*-
# $Id$
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
use lib "$ENV{'ACE_ROOT'}/bin";
use PerlACE::Run_Test;
$ACE_ROOT = $ENV {'ACE_ROOT'};
$CIAO_ROOT = $ENV {'CIAO_ROOT'};
$ORBdebuglevel = 0;
$daemon_1 = new PerlACE::Process ("${CIAO_ROOT}/tools/Daemon/CIAO_Daemon",
"-ORBEndpoint iiop://localhost:20000 " .
"-n \"${CIAO_ROOT}/tools/RTComponentServer/RTComponentServer -ORBdebuglevel $ORBdebuglevel\"");
$daemon_2 = new PerlACE::Process ("${CIAO_ROOT}/tools/Daemon/CIAO_Daemon",
"-ORBEndpoint iiop://localhost:12000 " .
"-n \"${CIAO_ROOT}/tools/RTComponentServer/RTComponentServer -ORBdebuglevel $ORBdebuglevel -ORBEndpoint iiop:// -ORBEndpoint diop://:5678\"");
$assembly_manager_args = "-o assembly_manager.ior -c test.dat";
$assembly_manager = new PerlACE::Process ("${CIAO_ROOT}/tools/Assembly_Deployer/Assembly_Manager", "$assembly_manager_args");
$assembly_deployer_args = "-k file://assembly_manager.ior -a remote.cad -o assembly";
$assembly_deployer = new PerlACE::Process ("${CIAO_ROOT}/tools/Assembly_Deployer/Assembly_Deployer", "$assembly_deployer_args");
$controller = new PerlACE::Process ("../Controller/Controller", "-p DIOP -x 1 -z 1");
# Remove all ior files
unlink "assembly_manager.ior";
unlink "daemon.ior";
unlink "receiver.ior";
unlink "sender.ior";
unlink "assembly";
# Start the daemons.
$daemon_1->Spawn ();
$daemon_2->Spawn ();
# Start the assembly manager
$assembly_manager->Spawn ();
# Wait till the assembly manager finishes writing the IOR
PerlACE::waitforfile ("assembly_manager.ior");
# Start the Assembly_Deployer
$assembly_deployer->Spawn ();
# Wait till the sender and receiver to finish writing their IORs
PerlACE::waitforfile ("sender.ior");
PerlACE::waitforfile ("receiver.ior");
## Now start the controller
#$controller->Spawn ();
#
## Wait for controller to get done.
#$controller->Wait ();
#$controller->{RUNNING} = 0;
#
## Kill daemons.
#$daemon_1->Kill ();
#$daemon_2->Kill ();
#$assembly_manager->Kill ();
#$assembly_deployer->Kill ();
#
## Remove all ior files
#unlink "assembly_manager.ior";
#unlink "daemon.ior";
#unlink "receiver.ior";
#unlink "sender.ior";
#unlink "assembly";
|