Harald Welte | 4d77229 | 2017-08-19 15:27:10 +0200 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # Helper script to starte a TITAN-generated test suite, supporting |
| 4 | # dynamically linked suites to ensure JUNIT generation is possible. |
| 5 | |
| 6 | if [ $# -lt 1 ]; then |
| 7 | echo "You have to specify the test suite name" |
| 8 | echo "Syntax example: $0 osmo-ttcn3-hacks/ggsn_tests/GGSN_Test ./GGSN_Test.cfg" |
| 9 | exit 1 |
| 10 | fi |
| 11 | |
| 12 | SUITE=$1 |
Harald Welte | ae5791d | 2018-03-18 15:22:20 +0100 | [diff] [blame^] | 13 | CFG=$(basename "$SUITE").cfg |
Harald Welte | 4d77229 | 2017-08-19 15:27:10 +0200 | [diff] [blame] | 14 | if [ $# -gt 1 ]; then |
| 15 | CFG=$2 |
| 16 | fi |
| 17 | |
Daniel Willmann | 47fb0f4 | 2018-02-02 20:09:00 +0100 | [diff] [blame] | 18 | if [ $# -gt 2 ]; then |
| 19 | TEST=$3 |
| 20 | fi |
| 21 | |
Harald Welte | ae5791d | 2018-03-18 15:22:20 +0100 | [diff] [blame^] | 22 | LD_LIBRARY_PATH=$(dirname "$SUITE"):/usr/lib/titan:/usr/ttcn3/lib ttcn3_start "$SUITE" "$CFG" "$TEST" |