diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/tests/EC_Multiple/run_dynamic')
-rwxr-xr-x | ACE/TAO/orbsvcs/tests/EC_Multiple/run_dynamic | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/tests/EC_Multiple/run_dynamic b/ACE/TAO/orbsvcs/tests/EC_Multiple/run_dynamic new file mode 100755 index 00000000000..9a1e98fc31c --- /dev/null +++ b/ACE/TAO/orbsvcs/tests/EC_Multiple/run_dynamic @@ -0,0 +1,59 @@ +#!/bin/sh +# +# $Id$ +# + +# The number of messages to send. +MSG_COUNT=100 + +# The number of high-priority consumers. +HP_CONSUMERS="1" + +# The number of high-priority suppliers +HP_SUPPLIERS="1" + +# The number of low-priority consumers +# LP_CONSUMERS="1 5 10 20" +LP_CONSUMERS="1 10 100 200 300 500 1000" + +HP_INTERVAL=250000 +LP_INTERVAL=250000 + +######## +######## Enable signal handler. +######## +done=0 +trap 'done=1; \ + if [ "$NameServicePID" ]; then \ + kill -1 $NameServicePID; NameServicePID=; \ + fi; \ + /bin/rm -f NameService.ior' 0 1 2 3 15 + + +for s in $HP_SUPPLIERS; do + for c in $LP_CONSUMERS; do + ../../Naming_Service/Naming_Service \ + -ORBobjrefstyle url -o NameService.ior >/dev/null 2>&1 & + NameServicePID=$! + sleep 2 + while [ ! -f NameService.ior -a $done -eq 0 ]; do + echo waiting for NameService.ior; sleep 2 + done + NameService=`cat NameService.ior` + export NameService + + echo Consumers = $c Suppliers = $s +# ./EC_Multiple -l ECM3 -s local -d sched \ +# -h ${s},${s},0,${HP_INTERVAL},${MSG_COUNT},1,2,1,2 \ +# -w 1,${c},0,${LP_INTERVAL},${MSG_COUNT},3,4,3,4 > \ +# DYN.LCL.S${s}.C${c}.log 2>&1 + ./EC_Multiple -l ECM3 -s runtime \ + -h ${s},${s},0,${HP_INTERVAL},${MSG_COUNT},1,2,1,2 \ + -w 1,${c},0,${LP_INTERVAL},${MSG_COUNT},3,4,3,4 > \ + DYN.LCL.S${s}.C${c}.log 2>&1 + + if [ $done -eq 1 ]; then exit 1; fi + + kill -1 $NameServicePID; NameServicePID= + done +done |