X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2FlaunchCPS.sh;fp=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2FlaunchCPS.sh;h=44d55b335ab99ddb9eb1c621707253e46c10b9dc;hb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;hp=0000000000000000000000000000000000000000;hpb=61f1340da3cae5159d2e3bc14fc47c6d4bf9453e;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/launchCPS.sh b/example/diameter/launcher/deployments/st-client/launchCPS.sh new file mode 100755 index 0000000..44d55b3 --- /dev/null +++ b/example/diameter/launcher/deployments/st-client/launchCPS.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +############# +# VARIABLES # +############# +ADML_INSTANCES=`cat .st_conf_adml_instances 2>/dev/null` + +############# +# FUNCTIONS # +############# +_exit() { + echo + echo $1 + echo + exit 1 +} + +############# +# EXECUTION # +############# +echo +echo +cd `dirname $0` +./checkStatus.sh +[ $? -ne 0 ] && _exit "Fix status to continue ..." +echo +echo "Input desired rate (test cases per second) to start testing [0: stop if active]:" +read desired_rate +if [ "$desired_rate" != "" ] +then + rate_per_instance=$((desired_rate/$ADML_INSTANCES)) +fi + +echo +echo "As we have $ADML_INSTANCES instances available, we shall launch $rate_per_instance test cases" +echo " per second and instance (./operation.sh \"test|ttps|$rate_per_instance\")." +echo +echo "Press ENTER to continue, CTRL-C to abort ..." +read dummy +./operation.sh "test|ttps|$rate_per_instance" +