From 0466d71d15a6289d1198473e2b454b8c9412b21f Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 16 Jan 2017 14:25:06 +0100 Subject: [PATCH] add option -o use this to pass a toolchain file to use --- tests/update_helper.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/update_helper.sh b/tests/update_helper.sh index c1b6ad256..898cef7b7 100755 --- a/tests/update_helper.sh +++ b/tests/update_helper.sh @@ -57,7 +57,7 @@ test -z "$BUILDTHREADS" && BUILDTHREADS=1 PULL_REQUESTS= [ $# -eq 0 ] && usage -while getopts "d:w:p:t:h" arg; do +while getopts "d:w:p:t:o:h" arg; do case $arg in d) # OPM Data path to use echo "OPM_DATA ${OPTARG}" @@ -75,6 +75,10 @@ while getopts "d:w:p:t:h" arg; do echo "PULL_REQUESTS ${OPTARG}" PULL_REQUESTS=${OPTARG} ;; + o) # Use given toolchain file + echo "Using ${OPTARG} toolchain" + CMAKE_TOOLCHAIN_FILES=${OPTARG} + ;; h) # Display help. usage exit 0 @@ -98,6 +102,8 @@ export OPM_DATA_ROOT_PREDEFINED="$OPM_DATA" export OPM_DATA_ROOT="$OPM_DATA" export WORKSPACE export BUILDTHREADS +export BTYPES=serial +export CMAKE_TOOLCHAIN_FILES export ghprbCommentBody="$PULL_REQUESTS"