X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2Fprogram.sh;h=e5f3b35de56d53cc5901cd0e8a03bd4e32a52f79;hb=bfedf5aed2670ccd65405c0ff96539ccb88b8f23;hp=31eb97d44941778e2e4249b83d7b891a5d27b339;hpb=d723d5bf571eb48c641b092058eaa38bb6c4fcc8;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/program.sh b/example/diameter/launcher/deployments/st-client/program.sh index 31eb97d..e5f3b35 100755 --- a/example/diameter/launcher/deployments/st-client/program.sh +++ b/example/diameter/launcher/deployments/st-client/program.sh @@ -53,7 +53,7 @@ Usage: $0 [-s] and a file called 'dynamic.suffix' used to complete the dynamic operation in this way: - dynamic|||| + dynamic||| For example, you could have this content for 'dynamic.suffix': @@ -61,11 +61,11 @@ Usage: $0 [-s] in order to generate the operation: - dynamic|0|||7|CCR-I.xml|CCR-T.xml + dynamic|||0|7|CCR-I.xml|CCR-T.xml which would be parsed for the specific ADML instance programmed: - dynamic|0|2000001|2001000|7|CCR-I.xml|CCR-T.xml + dynamic|2000001|2001000|0|7|CCR-I.xml|CCR-T.xml The file 'dynamic.suffix' could have several lines for several scenaries. In this case, this script will prompt for the desired one. @@ -83,7 +83,7 @@ EOF } advice_to_squeeze_idle_cpu () { - local idle=$(top -b -d 0.1 -n 2 | grep 'Cpu(s):'| tail -1 | awk '{print $8}' | sed 's/,/./') + local idle=$(top -b -d 1 -n 2 | grep 'Cpu(s):'| tail -1 | awk '{print $8}' | sed 's/,/./') sleep 10 echo echo "Idle cpu now: $idle. Check the system CPU with top. If is not overcommited, consider" @@ -110,7 +110,7 @@ echo "Testcases programming ..." echo cd `dirname $0` ./checkStatus.sh -[ $? -eq 1 ] && _exit "Fix status to continue ..." +[ $? -eq 1 ] && _exit "Fix status (instances) to continue ..." # We launch in background ! #./operation.sh --ping >/dev/null @@ -170,9 +170,6 @@ then echo "Programming has finished !" echo - echo "Configuring repeat cycles ..." - ./operation.sh "test|repeats|$REPEATS" - if [ -n "$specific" ] then echo "A new file '$TESTCASE_DIR/specific.all' has been created." @@ -184,7 +181,7 @@ then # dynamic programming ################################################################# else - TESTCASE_DIR=$(readlink -f dynlibs/libanna_dynamicLauncherProcedure.so | xargs dirname) + TESTCASE_DIR=$(readlink -f dynlibs/libanna_launcher_procedure_default_shared.so | xargs dirname) DYNAMIC_SUFFIX_FILE=$TESTCASE_DIR/dynamic.suffix [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file.\nUse 'dynlibs/select.sh' to change the dynamic procedure and restart the ADML instances." @@ -223,6 +220,17 @@ else echo read dynamic_suffix while [ -z "$dynamic_suffix" ]; do read dynamic_suffix ; done + timeout=$(echo $dynamic_suffix | cut -d\| -f1) + if [ "$timeout" = "0" ] + then + echo + echo "Zero-timeout will configure 'auto-reset' as 'hard' in order" + echo " to reset properly the test cases in further cycles ..." + ./operation.sh "test|auto-reset|hard" >/dev/null + echo + echo "Press ENTER to continue ..." + read dummy + fi fi fi @@ -265,6 +273,12 @@ fi echo echo +echo "Configuring repeat cycles ..." +./operation.sh "test|repeats|$REPEATS" >/dev/null +echo +echo "Done !" +echo + start_testing= if [ "$AUTOSTART" = "-s" ] then