blob: aae0e4be87539165bec1879c3f56d61945870825 [file] [log] [blame]
Thomas Vachuska9ac244b2017-03-20 16:03:33 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Executes validation build using onos-test.tar.gz and onos.tar.gz on a remote
4# proxy. It assumes that the tar.gz files are already available.
5# -----------------------------------------------------------------------------
6
7. $ONOS_ROOT/tools/build/envDefaults
8
9onos-push-test-bits $OCT
10onos-push-bits $OCT
11
Brian O'Connor649d0242017-03-21 02:14:18 +000012ssh -t -t $ONOS_USER@$OCT "
Thomas Vachuska9ac244b2017-03-20 16:03:33 -070013 # Unpack the test tools
14 cd /tmp; rm -fr \$(ls -Fd onos-test-*/)
Brian O'Connor649d0242017-03-21 02:14:18 +000015 tar xf \$(basename $ONOS_TEST_TAR)
Thomas Vachuska9ac244b2017-03-20 16:03:33 -070016
17 # Source in the cell environment
18 $(onos-cell | sed 's/^/export /')
19 unset OCT
20
21 # Set ONOS root to the top of the unrolled test directory and
22 # prime the environment.
23 cd \$(ls -Fd onos-test-*/)
24 export ONOS_ROOT=\$PWD
Brian O'Connor649d0242017-03-21 02:14:18 +000025 export ONOS_STAGE_ROOT=/tmp
26 export ONOS_TEST_STAGE_ROOT=/tmp
27 source \$ONOS_ROOT/tools/dev/bash_profile
Thomas Vachuska9ac244b2017-03-20 16:03:33 -070028 setPrimaryInstance 1
29 onos-verify-cell # TODO: remove once warden does this for us
30
31 # Finally, execute required STC scenario(s) using the default topology
32 topo default
33 export stcDumpLogs=true
Brian O'Connor649d0242017-03-21 02:14:18 +000034 export stcColor=$stcColor
Thomas Vachuska9ac244b2017-03-20 16:03:33 -070035 stc fast
36"