Core creation
[anna.git] / example / diameter / launcher / deployments / st-client / run_all.sh
index d9a33aa..8287beb 100755 (executable)
@@ -1,4 +1,8 @@
 #!/bin/bash
+
+# Core generation:
+ulimit -c unlimited
+
 cd `dirname $0`
 if [ ! -d "ADMLS" ]
 then
@@ -11,20 +15,35 @@ fi
 for run in `ls ADMLS/*/run.sh`
 do
   cd `dirname $run`
-  ./run.sh
-  #sleep 0.1
+  instance_name=$(basename $PWD)
+  pkill -9 $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 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"
+wait $(jobs -p)
+
+sleep 3
+./checkStatus.sh
+
+cat << EOF
+
+
+
+     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 <test stuff directory>
+          ./program.sh dynamic
+
+
+     Done!
+EOF
+
 echo
-echo "Done!"