summaryrefslogtreecommitdiff
path: root/tcwg-llvm-testsuite.sh
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2017-07-26 14:05:22 +0200
committerDiana Picus <diana.picus@linaro.org>2017-07-31 15:11:20 +0000
commitd217c76549d9f8e48aded74e42a070fe0472f840 (patch)
treedbbf8b443147332c1babb864d8d2e5c6607ea43d /tcwg-llvm-testsuite.sh
parent8756cadc4a03122a37df75df33870df09dda7100 (diff)
tcwg-llvm-testsuite.sh: Add nt-flags parameter
This makes it possible for us to configure how we want the test-suite to be run. For instance, it allows us to specify the number of build/run threads, the compiler flags, whether or not we want benchmarking mode etc. Change-Id: Ie180281cc9337b3e2edfa9d7d7512b35f2989c75
Diffstat (limited to 'tcwg-llvm-testsuite.sh')
-rwxr-xr-xtcwg-llvm-testsuite.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tcwg-llvm-testsuite.sh b/tcwg-llvm-testsuite.sh
index 15432fa9..d36d20e4 100755
--- a/tcwg-llvm-testsuite.sh
+++ b/tcwg-llvm-testsuite.sh
@@ -20,6 +20,7 @@ SYNTAX="$0 $SYN_TOOLCHAIN $SYN_WORKSPACE"
CPUS=$(nproc --all)
TOOLCHAIN=""
WORKSPACE=""
+NT_FLAGS=""
# Command line parsing
while [ "$#" -gt 0 ]; do
@@ -38,6 +39,9 @@ while [ "$#" -gt 0 ]; do
--toolchain)
download_toolchain "$WORKSPACE" "$VAL"
shift ;;
+ --nt-flags)
+ NT_FLAGS=$VAL
+ shift ;;
*)
echo "ERROR: Invalid argument '$1'"
echo "Syntax: $SYNTAX"
@@ -55,6 +59,7 @@ echo "REFDIR = $REFDIR"
echo "TOOLCHAIN = $TOOLCHAIN"
echo "CC = $CC"
echo "CXX = $CXX"
+echo "NT_FLAGS = $NT_FLAGS"
# Logs
LOGBASE="$WORKSPACE/tcwg-llvm"
@@ -83,4 +88,4 @@ cd "$WORKSPACE" && LC_ALL=C CC="$CC" CXX="$CXX" "$WORKSPACE/sandbox/bin/python"
--no-timestamp \
--sandbox "$WORKSPACE/sandbox" \
--test-suite "$WORKSPACE/test-suite" \
- --cc "$CC" --cxx "$CXX" |& tee "$LOGBASE-test.$LOGEXT"
+ --cc "$CC" --cxx "$CXX" $NT_FLAGS |& tee "$LOGBASE-test.$LOGEXT"