Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_Multiple / run_latency
blobd80b451096e88f2814c2794e752e9fbff010f90a
1 #!/bin/sh
3 # The number of messages to send.
4 MSG_COUNT=100
6 # The number of high-priority consumers.
7 HP_CONSUMERS="1 5 10 20"
9 # The number of high-priority suppliers
10 HP_SUPPLIERS="1 2 10"
12 HP_INTERVAL=250000
14 /bin/rm -f NameService.ior NameService.pid EC1.pid EC2.pid EC.pid
16 for s in $HP_SUPPLIERS; do
17 for c in $HP_CONSUMERS; do
18 ../../Naming_Service/Naming_Service \
19 -o NameService.ior -p NameService.pid >/dev/null 2>&1 &
20 sleep 2
21 NameService=`cat NameService.ior`
22 export NameService
24 echo Consumers = $c Suppliers = $s
25 ./EC_Multiple -l ECM1 -p ECM1.pid -s runtime \
26 -h ${s},${c},0,${HP_INTERVAL},${MSG_COUNT},1,2,1,2 > \
27 LTC.LCL.S${s}.C${c}.log 2>&1
28 kill `cat NameService.pid`
30 ../../Naming_Service/Naming_Service \
31 -o NameService.ior -p NameService.pid >/dev/null 2>&1 &
32 sleep 2
33 NameService=`cat NameService.ior`
34 export NameService
36 ./EC_Multiple -l ECM1 -r ECM2 -p ECM1.pid -s runtime \
37 -h ${s},${c},0,${HP_INTERVAL},${MSG_COUNT},1,2,1,3 > \
38 LTC.ECM1.S${s}.C${c}.log 2>&1 &
39 ./EC_Multiple -l ECM2 -r ECM1 -p ECM2.pid -s runtime \
40 -h ${s},${c},0,${HP_INTERVAL},${MSG_COUNT},4,3,4,2 > \
41 LTC.ECM2.S${s}.C${c}.log 2>&1 &
42 sleep 2
43 wait `cat ECM1.pid`
44 wait `cat ECM2.pid`
45 kill `cat NameService.pid`
46 done
47 done