summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-05-28 15:52:09 +0200
committerOliver Smith <osmith@sysmocom.de>2020-05-28 16:28:06 +0200
commit7001d8567cd6bebfca1abe410cd1ebfab432f4fd (patch)
treee9a17d0cf3a2edb71e8ce6eeed497dd08e8b86a9
parentefc9413afc0aa3a8cc19f14d29ffcc3441f0ef30 (diff)
start-testsuite.sh: allow overriding TTCN3_BIN_DIRosmith/ttcn3-centos
Override the default of /usr/bin with the environment variable of the same name, if set. Related: OS#4564
-rwxr-xr-xstart-testsuite.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/start-testsuite.sh b/start-testsuite.sh
index a6380b7..b9324bb 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