Change in osmo-ttcn3-hacks[master]: start-testsuite.sh: allow overriding TTCN3_BIN_DIR

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

osmith gerrit-no-reply at lists.osmocom.org
Thu May 28 15:08:44 UTC 2020


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18549 )


Change subject: start-testsuite.sh: allow overriding TTCN3_BIN_DIR
......................................................................

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
---
M start-testsuite.sh
1 file changed, 4 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/49/18549/1

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 @@
 #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
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18549
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I245ae368a97558006fc9f85d4fcb4e4cd52fb19a
Gerrit-Change-Number: 18549
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200528/d6e0dad1/attachment.htm>


More information about the gerrit-log mailing list