# not processed here (not neccessary because reception conditions are enough to block
# the flow when something is wrong). Anyway, you could check ADML counters executing
# the command: ./operation show-oam
+# The main problem with a zeroed first timeout step, is that cycle repeats are not
+# possible except if you reset the pool (hard reset) when close to finish, something
+# very dificult to monitor.
# Only CCR-Initial:
-0|7|CCR-I.xml
+5000|7|CCR-I.xml
# CCR-Initial + CCR-Termination:
-0|7|CCR-I.xml|CCR-T.xml
+5000|7|CCR-I.xml|CCR-T.xml
# FUNCTIONS #
#############
_exit() {
- echo
- echo $1
- echo
+ echo -e "\n$1\n"
exit 1
}
TESTCASE_DIR=$(readlink -f dynlibs/libanna_dynamicLauncherProcedure.so | xargs dirname)
DYNAMIC_SUFFIX_FILE=$TESTCASE_DIR/dynamic.suffix
- [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file. Use 'dynlibs/select.sh' to change the dynamic procedure and restart the ADML instances."
+ [ ! -f $DYNAMIC_SUFFIX_FILE ] && _exit "Missing '$DYNAMIC_SUFFIX_FILE' file.\nUse 'dynlibs/select.sh' to change the dynamic procedure and restart the ADML instances."
dynamic_suffix=( $(grep -v ^# $DYNAMIC_SUFFIX_FILE) )
# Multiple scenarios:
done > $tmpfile
cat $tmpfile
echo
- echo "Select the desired option:"
+ echo "Select the desired option (0 to input a user defined one):"
read option
while [ -z "$option" ]; do read option ; done
- dynamic_suffix=$(grep "^${option}) " $tmpfile | cut -d" " -f2-)
- [ -z "$dynamic_suffix" ] && _exit "Invalid option !"
+ if [ "$option" != "0" ]
+ then
+ dynamic_suffix=$(grep "^${option}) " $tmpfile | cut -d" " -f2-)
+ [ -z "$dynamic_suffix" ] && _exit "Invalid option !"
+ else
+ echo "Input specific program arguments:"
+ echo " (be sure that are supported by the dynamic procedure)"
+ echo
+ read dynamic_suffix
+ while [ -z "$dynamic_suffix" ]; do read dynamic_suffix ; done
+ fi
fi
# Modify xml files path: