From 94798b57ab67365ba0d44eb8ba7bddfb2281f8ef Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Mon, 23 Nov 2015 08:35:54 +0100 Subject: [PATCH] Program with offset --- .../launcher/deployments/st-client/configure.sh | 11 ++++++++--- .../launcher/deployments/st-client/run_all.sh | 5 ++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/example/diameter/launcher/deployments/st-client/configure.sh b/example/diameter/launcher/deployments/st-client/configure.sh index 728440d..622ec79 100755 --- a/example/diameter/launcher/deployments/st-client/configure.sh +++ b/example/diameter/launcher/deployments/st-client/configure.sh @@ -126,11 +126,16 @@ maximum_rate=$((G_ADML_INSTANCES*G_ADML_CONNECTIONS*MAXIMUM_ADML_ASYNC_RATE)) echo " - Maximum rate: $maximum_rate test cases per second" echo " - Desired rate: $desired_rate test cases per second" echo -echo "Usually, you will program a test case per subscriber. Input the number of test cases to program:" +echo "Usually, you will program a test case per subscriber." +echo "Input the number of test cases to program:" read N_TESTCASES while [ -z "$N_TESTCASES" ]; do read N_TESTCASES; done echo $N_TESTCASES > $N_TESTCASES__ST_CONF_FILE testcase_per_adml_instance=$N_TESTCASES +echo "Input the first test id to program [1]:" +read first_value +[ "$first_value" = "" ] && first_value=1 +[ $first_value -lt 1 ] && first_value=1 echo time_covered_1=$(ceil $N_TESTCASES $desired_rate) time_covered=$(ceil $N_TESTCASES $((desired_rate*G_ADML_INSTANCES))) @@ -146,8 +151,8 @@ fi for instance in `seq 1 $G_ADML_INSTANCES` do offset=$((testcase_per_adml_instance * (instance-1))) - ini=$((offset + 1)) - fin=$((offset + testcase_per_adml_instance)) + ini=$((offset + first_value)) + fin=$((offset + first_value + testcase_per_adml_instance - 1)) echo "$instance $ini $fin" >> $N_TESTCASES_PROGRAM_LAYOUT__ST_CONF_FILE done diff --git a/example/diameter/launcher/deployments/st-client/run_all.sh b/example/diameter/launcher/deployments/st-client/run_all.sh index e9014ee..d9a33aa 100755 --- a/example/diameter/launcher/deployments/st-client/run_all.sh +++ b/example/diameter/launcher/deployments/st-client/run_all.sh @@ -12,7 +12,7 @@ for run in `ls ADMLS/*/run.sh` do cd `dirname $run` ./run.sh - sleep 0.1 + #sleep 0.1 cd - >/dev/null done @@ -20,6 +20,9 @@ sleep 1 echo "Now you could program the tests by mean script 'program.sh'. For example:" echo " ./program.sh st_examples/DynamicQualification" echo +echo "To enable reports dump for failed tests, execute:" +echo " ./operation.sh \"test|report|failed\"" +echo echo "To stop the processes, you could execute:" echo " pgrep ADML-[0-9] | xargs kill" echo -- 2.20.1