blob: 83c381e74a0270f95f36a0fb1a674e4fc40ec890 [file] [log] [blame]
Harald Welte4d772292017-08-19 15:27:10 +02001#!/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
6if [ $# -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
10fi
11
12SUITE=$1
13CFG=`basename $SUITE`.cfg
14if [ $# -gt 1 ]; then
15 CFG=$2
16fi
17
Daniel Willmann47fb0f42018-02-02 20:09:00 +010018if [ $# -gt 2 ]; then
19 TEST=$3
20fi
21
22LD_LIBRARY_PATH=`dirname $SUITE`:/usr/lib/titan:/usr/ttcn3/lib ttcn3_start $SUITE $CFG $TEST