summaryrefslogtreecommitdiffstats
path: root/start-testsuite.sh
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-28 15:52:09 +0200
committerosmith <osmith@sysmocom.de>2020-05-29 06:10:42 +0000
commitb15f750b9ca16284ecb37dea78422d13cc4a4fb5 (patch)
treeae93dea89846251db5d1861eb003cd94f8e43022 /start-testsuite.sh
parent1617e310018dad07f35ff8d53897c684d58096fb (diff)
start-testsuite.sh: allow overriding TTCN3_BIN_DIR
Override the default of /usr/bin with the environment variable of the same name, if set. Related: OS#4564 Change-Id: I245ae368a97558006fc9f85d4fcb4e4cd52fb19a
Diffstat (limited to 'start-testsuite.sh')
-rwxr-xr-xstart-testsuite.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/start-testsuite.sh b/start-testsuite.sh
index a6380b73..b9324bbf 100755
--- a/start-testsuite.sh
+++ b/start-testsuite.sh
@@ -3,6 +3,9 @@
# Helper script to starte a TITAN-generated test suite, supporting
# dynamically linked suites to ensure JUNIT generation is possible.
+# Environment variables:
+# * TTCN3_BIN_DIR: override where to look for ttcn3_start
+
# Copyright 2017 Harald Welte
# Copyright 2018 sysmocom - s.f.m.c. GmbH
#
@@ -43,7 +46,7 @@ fi
#TTCN3_BIN_DIR="$TTCN3_DIR/bin"
# below is for the debian packages
-TTCN3_BIN_DIR="/usr/bin"
+TTCN3_BIN_DIR="${TTCN3_BIN_DIR:-/usr/bin}"
TITAN_LIBRARY_PATH="/usr/lib/titan:/usr/ttcn3/lib"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SUITE_DIR:$TITAN_LIBRARY_PATH" "$TTCN3_BIN_DIR/ttcn3_start" $SUITE $CFG $TEST