X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2Fprogram.sh;h=a5f1ae108d44cf7cbbbe2cf716e9e96acaeee055;hb=30def5757c5b3411f77fff62a163241ecc616337;hp=5d1fa45a324827de0f31f96de0ca0c7030d78590;hpb=bdad30af20ea24102db5cf439fd2eb7e2ac9b0c5;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/program.sh b/example/diameter/launcher/deployments/st-client/program.sh index 5d1fa45..a5f1ae1 100755 --- a/example/diameter/launcher/deployments/st-client/program.sh +++ b/example/diameter/launcher/deployments/st-client/program.sh @@ -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." @@ -265,6 +262,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