X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=example%2Fdiameter%2Flauncher%2Fdeployments%2Fst-client%2Frun_all.sh;h=489855cbc1afd0ab6a05beb6066a588c775fba67;hb=refs%2Ftags%2FREFACTORING_TESTING_LIBRARY;hp=e9014ee3101b12a14cedb2cb1598d8e2c92dd394;hpb=18319deabbc8563fc112795968372e96263e6fe4;p=anna.git diff --git a/example/diameter/launcher/deployments/st-client/run_all.sh b/example/diameter/launcher/deployments/st-client/run_all.sh index e9014ee..489855c 100755 --- a/example/diameter/launcher/deployments/st-client/run_all.sh +++ b/example/diameter/launcher/deployments/st-client/run_all.sh @@ -11,17 +11,35 @@ fi for run in `ls ADMLS/*/run.sh` do cd `dirname $run` - ./run.sh - sleep 0.1 + instance_name=$(basename $PWD) + pkill $instance_name + [ $? -eq 0 ] && echo -n "Re-" + echo "Starting $instance_name ..." + ./run.sh > /dev/null & cd - >/dev/null done - -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 stop the processes, you could execute:" -echo " pgrep ADML-[0-9] | xargs kill" +wait $(jobs -p) + +sleep 3 +./checkStatus.sh + +cat << EOF + $(pgrep ADML- | wc -l) instances alive ! + $(netstat -a | grep :diameter | grep ESTABLISHED | wc -l) connections established ! + + To stop the processes, you could execute: pgrep ADML-[0-9] | xargs kill + Anyway, executing './run.sh' again you will restart the ADML instances. + + Now it's time to './program.sh' the started instances with the desired + scenary. There are two programming variants: + + ./program.sh + ./program.sh dynamic + + + Done! +EOF + echo -echo "Done!"