From 13d05bc8458758ee39cb829098241e89616717ee Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Wed, 9 Sep 2015 22:15:21 -0700 Subject: ONOS checkin based on commit tag e796610b1f721d02f9b0e213cf6f7790c10ecd60 Change-Id: Ife8810491034fe7becdba75dda20de4267bd15cd --- framework/src/onos/utils/stc/bin/stc | 12 ++++++++++++ framework/src/onos/utils/stc/bin/stc-launcher | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100755 framework/src/onos/utils/stc/bin/stc create mode 100755 framework/src/onos/utils/stc/bin/stc-launcher (limited to 'framework/src/onos/utils/stc/bin') diff --git a/framework/src/onos/utils/stc/bin/stc b/framework/src/onos/utils/stc/bin/stc new file mode 100755 index 00000000..23affc4a --- /dev/null +++ b/framework/src/onos/utils/stc/bin/stc @@ -0,0 +1,12 @@ +#!/bin/bash +#------------------------------------------------------------------------------- +# System Test Coordinator +#------------------------------------------------------------------------------- + +STC_ROOT=${STC_ROOT:-$(dirname $0)/..} +cd $STC_ROOT +VER=1.3.0-SNAPSHOT + +PATH=$PWD/bin:$PATH + +java -jar target/onlab-stc-$VER.jar "$@" diff --git a/framework/src/onos/utils/stc/bin/stc-launcher b/framework/src/onos/utils/stc/bin/stc-launcher new file mode 100755 index 00000000..0d56017e --- /dev/null +++ b/framework/src/onos/utils/stc/bin/stc-launcher @@ -0,0 +1,19 @@ +#!/bin/bash +#------------------------------------------------------------------------------- +# System Test Coordinator process launcher +#------------------------------------------------------------------------------- + +env=$1 && shift +cwd=$1 && shift + +if [ $env != "-" ]; then + [ ! -f $env ] && echo "$env file not found" && exit 1 + source $env +fi + +if [ $cwd != "-" ]; then + [ ! -d $cwd ] && echo "$cwd directory not found" && exit 1 + cd $cwd +fi + +"$@" 2>&1 -- cgit 1.2.3-korg