wanted_repeats=$((wanted_cycles-1))
echo $wanted_cycles > $CYCLE_REPEATS__ST_CONF_FILE
[ $wanted_repeats -gt 0 ] && echo "Configured $wanted_repeats cycle repeats ($wanted_cycles cycles x $time_covered seconds ~ $((wanted_cycles*time_covered)) seconds of testing)."
+else
+ echo 0 > $CYCLE_REPEATS__ST_CONF_FILE
fi
echo
echo "System test configuration completed."
[ -z "$dynamic_suffix" ] && _exit "Invalid option !"
fi
+ # Modify xml files path:
+ xmls=( $(echo $dynamic_suffix | sed 's/'\|'/ /g') )
+ dynamic_suffix=$(for xml in ${xmls[@]}
+ do
+ echo $xml | grep -q "\.xml$"
+ [ $? -eq 0 ] && echo -n "$TESTCASE_DIR/"
+ echo -n "${xml}|"
+ done | sed 's/'\|'$//')
+
while read -r line
do
instance=$(echo $line | awk '{ print $1 }')
ADML_DIR=`readlink -f ADMLS/ADML-$instance`
cd $ADML_DIR
-
- # Modify xml files path:
- xmls=( $(echo $dynamic_suffix | sed 's/'\|'/ /g') )
- dynamic_suffix=$(for xml in ${xmls[@]}
- do
- echo $xml | grep -q "\.xml$"
- [ $? -eq 0 ] && echo -n "$TESTCASE_DIR/"
- echo -n "${xml}|"
- done | sed 's/'\|'$//')
-
- ./operation.sh -t 15 "dynamic|$ini_seq|$fin_seq|$dynamic_suffix"
+ ./operation.sh -t 60 "dynamic|$ini_seq|$fin_seq|$dynamic_suffix"
cd - >/dev/null
done < $PROGRAM_LAYOUT_FILE
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
+wait $(jobs -p)
+echo "$(pgrep ADML- | wc -l) instances alive !"
echo
echo
echo "To enable reports dump for failed tests, execute:"