generalize 'start.sh' script for executing synamically linked testsuite

This commit is contained in:
Harald Welte 2017-08-19 15:27:10 +02:00
parent 8b4123f67f
commit 4d7722900a
2 changed files with 18 additions and 2 deletions

View File

@ -1,2 +0,0 @@
#!/bin/sh
LD_LIBRARY_PATH=.:/usr/lib/titan ttcn3_start GGSN_Tests ./GGSN_Tests.cfg

18
start-testsuite.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# Helper script to starte a TITAN-generated test suite, supporting
# dynamically linked suites to ensure JUNIT generation is possible.
if [ $# -lt 1 ]; then
echo "You have to specify the test suite name"
echo "Syntax example: $0 osmo-ttcn3-hacks/ggsn_tests/GGSN_Test ./GGSN_Test.cfg"
exit 1
fi
SUITE=$1
CFG=`basename $SUITE`.cfg
if [ $# -gt 1 ]; then
CFG=$2
fi
LD_LIBRARY_PATH=`dirname $SUITE`:/usr/lib/titan ttcn3_start $SUITE $CFG