Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #------------------------------------------------------------------------------- |
| 3 | # System Test Coordinator |
| 4 | #------------------------------------------------------------------------------- |
| 5 | |
Brian O'Connor | afc2d7d | 2015-06-05 23:31:25 -0700 | [diff] [blame] | 6 | VER=1.3.0-SNAPSHOT |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 7 | JAR=~/.m2/repository/org/onosproject/onlab-stc/$VER/onlab-stc-$VER.jar |
| 8 | SCENARIOS=$ONOS_ROOT/tools/test/scenarios |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 9 | |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 10 | scenario=${1:-smoke} |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 11 | |
Thomas Vachuska | 4bfccd54 | 2015-05-30 00:35:25 -0700 | [diff] [blame] | 12 | [ ! -f $scenario ] && scenario=$SCENARIOS/$scenario |
| 13 | [ ! -f $scenario ] && scenario=$scenario.xml |
| 14 | [ ! -f $scenario ] && echo "Scenario $scenario file not found" && exit 1 |
| 15 | |
Thomas Vachuska | 50ec1af | 2015-06-02 00:42:52 -0700 | [diff] [blame] | 16 | [ $# -ge 1 ] && shift |
| 17 | |
| 18 | [ -t 1 ] && stcColor=true || unset stcColor |
| 19 | |
| 20 | java -jar $JAR $scenario "$@" |