blob: fe8a5afe61ff4c4d4fd4cc3c290a71b56623e86f [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07001#!/bin/bash
2#-------------------------------------------------------------------------------
3# System Test Coordinator
4#-------------------------------------------------------------------------------
5
Brian O'Connor4db90182015-09-15 00:16:25 -07006VER=1.3.0-SNAPSHOT
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07007JAR=~/.m2/repository/org/onosproject/onlab-stc/$VER/onlab-stc-$VER.jar
8SCENARIOS=$ONOS_ROOT/tools/test/scenarios
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07009
Thomas Vachuska177ece62015-06-26 00:18:21 -070010DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=y"
11
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070012scenario=${1:-smoke}
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070013
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070014[ ! -f $scenario ] && scenario=$SCENARIOS/$scenario
15[ ! -f $scenario ] && scenario=$scenario.xml
16[ ! -f $scenario ] && echo "Scenario $scenario file not found" && exit 1
17
Thomas Vachuska50ec1af2015-06-02 00:42:52 -070018[ $# -ge 1 ] && shift
19
20[ -t 1 ] && stcColor=true || unset stcColor
21
Thomas Vachuska1b403a52015-08-26 11:30:48 -070022[ -z "$stcDebug" ] && DEBUG_OPTS=""
23java $DEBUG_OPTS -jar $JAR $scenario "$@"