Preparing for separating STC into its own repository.
Change-Id: I1d5b0e9b117865684d48c5a23fc8ed98a0e075e1
Showing
1 changed file
with
11 additions
and
2 deletions
... | @@ -3,10 +3,19 @@ | ... | @@ -3,10 +3,19 @@ |
3 | # System Test Coordinator | 3 | # System Test Coordinator |
4 | #------------------------------------------------------------------------------- | 4 | #------------------------------------------------------------------------------- |
5 | 5 | ||
6 | -VER=1.6.0-SNAPSHOT | 6 | +VER=${STC_VERSION:-2.0} |
7 | -JAR=~/.m2/repository/org/onosproject/onlab-stc/$VER/onlab-stc-$VER.jar | 7 | +JAR=~/.m2/repository/org/onosproject/onos-stc/$VER/onos-stc-$VER.jar |
8 | SCENARIOS=$ONOS_ROOT/tools/test/scenarios | 8 | SCENARIOS=$ONOS_ROOT/tools/test/scenarios |
9 | 9 | ||
10 | +# Download the STC binary if needed | ||
11 | +if [ ! -f $JAR ]; then | ||
12 | + printf "Downloading STC binary..." | ||
13 | + aux=/tmp/stc-$$.log | ||
14 | + mvn dependency:get -Dartifact=org.onosproject:onos-stc:$VER -Dtransitive=false -B >$aux || fgrep '[ERROR]' $aux | ||
15 | + rm -f $aux | ||
16 | + [ -f $JAR ] && printf "Done.\n" | ||
17 | +fi | ||
18 | + | ||
10 | DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=y" | 19 | DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=y" |
11 | 20 | ||
12 | scenario=${1:-smoke} | 21 | scenario=${1:-smoke} | ... | ... |
-
Please register or login to post a comment