036a42acd4521cab94ad65daccf6d0660e8dbdc0
[anna.git] / example / diameter / launcher / deployments / st-client / run_all.sh
1 #!/bin/bash
2 cd `dirname $0`
3 if [ ! -d "ADMLS" ]
4 then
5   echo
6   echo "Run './configure.sh' first !"
7   echo
8   exit 1
9 fi
10
11 for run in `ls ADMLS/*/run.sh`
12 do
13   cd `dirname $run`
14   instance_name=$(basename $PWD)
15   pkill $instance_name
16   [ $? -eq 0 ] && echo -n "Re-" 
17   echo "Starting $instance_name ..."
18   ./run.sh > /dev/null &
19   cd - >/dev/null
20 done
21 echo
22 wait $(jobs -p)
23 echo "$(pgrep ADML- | wc -l) instances alive !"
24 echo
25 echo
26 echo "To enable reports dump for failed tests, execute:"
27 echo "   ./operation.sh \"test|report|failed\""
28 echo
29 echo "To stop the processes, you could execute:"
30 echo "   pgrep ADML-[0-9] | xargs kill"
31 echo
32 echo "When running, use script './program.sh' to configure the test cases."
33 echo "To configure another layout you should execute './configure.sh'."
34 echo
35 echo "Done!"
36 echo
37