blob: fd201b69cb45b3237674290d1efac7a219e0367a [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07001#!/bin/bash
2#-------------------------------------------------------------------------------
3# System Test Coordinator
4#-------------------------------------------------------------------------------
5
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07006VER=1.2.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 Vachuska4bfccd542015-05-30 00:35:25 -070010scenario=${1:-smoke}
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070011
Thomas Vachuska4bfccd542015-05-30 00:35:25 -070012[ ! -f $scenario ] && scenario=$SCENARIOS/$scenario
13[ ! -f $scenario ] && scenario=$scenario.xml
14[ ! -f $scenario ] && echo "Scenario $scenario file not found" && exit 1
15
16java -jar $JAR $scenario