aboutsummaryrefslogtreecommitdiffstats
path: root/afm-test.native.sh
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-01-18 17:17:50 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-01-24 11:46:41 +0100
commit4dc980f363f5f17640702605902ae82276bf4abe (patch)
tree90c0b590b52e59b4518cba5658fea6d10b86b0fe /afm-test.native.sh
parentc24fb79df547212f8958e2687c1e060168c35b6e (diff)
Add a debug option for the native test launcher
This flags set the shell script debugging on and output every line it executes. Change-Id: Iabf3a7f2ec2b72a271422367e7d820270987b56c Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'afm-test.native.sh')
-rw-r--r--afm-test.native.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/afm-test.native.sh b/afm-test.native.sh
index a80fdf2..bd1f8a2 100644
--- a/afm-test.native.sh
+++ b/afm-test.native.sh
@@ -64,6 +64,10 @@ do
key="$1"
case $key in
+ -d|--debug)
+ DEBUGOUTPUT="TRUE"
+ shift # past argument
+ ;;
-l|--lavaoutput)
LAVAOUTPUT="TRUE"
shift # past argument
@@ -86,6 +90,11 @@ esac
done
set -- "${POSITIONAL[@]}" # restore positional parameters
+if [ "${DEBUGOUTPUT}" = "TRUE" ]
+then
+ set -x
+fi
+
if [ "$1" ] && [ "$2" ]
then
SERVICEPACKAGEDIR="$(readlink -f $1)"