Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_Multiple / run_schedule
blobc0e25960a32aac2a484a8bcbc28e8d2cd419620b
1 #!/bin/sh
3 # The number of high-priority messages to send.
4 HP_MSG_COUNT=400
6 # The number of high-priority consumers.
7 HP_CONSUMERS=25
9 # The number of high-priority suppliers
10 HP_SUPPLIERS=10
12 # The number of low-priority messages to send.
13 LP_MSG_COUNT=10
15 # The number of low-priority consumers.
16 LP_CONSUMERS=5
18 # The number of low-priority suppliers
19 LP_SUPPLIERS=5
21 /bin/rm -f NameService.ior NameService.pid EC1.pid EC2.pid EC.pid
23 ../../Naming_Service/Naming_Service \
24 -o NameService.ior -p NameService.pid >/dev/null 2>&1 &
25 sleep 2
26 NameService=`cat NameService.ior`
27 export NameService
29 ./EC_Multiple -l ECM1 -r ECM2 -p ECM1.pid \
30 -h ${HP_SUPPLIERS},${HP_CONSUMERS},1,${HP_MSG_COUNT},1,2,1,3 \
31 -w ${LP_SUPPLIERS},${LP_CONSUMERS},1,${LP_MSG_COUNT},4,5,4,5 \
32 -d SCHED_ECM1.cpp > SCH1.log 2>&1 &
33 ./EC_Multiple -l ECM2 -r ECM1 -p ECM2.pid \
34 -h ${HP_SUPPLIERS},${HP_CONSUMERS},1,${HP_MSG_COUNT},6,3,6,2 \
35 -w ${LP_SUPPLIERS},${LP_CONSUMERS},1,${LP_MSG_COUNT},7,8,7,8 \
36 -d SCHED_ECM2.cpp > SCH2.log 2>&1 &
37 sleep 2
38 wait `cat ECM1.pid`
39 wait `cat ECM2.pid`
40 kill `cat NameService.pid`