Thomas Vachuska | 9ac244b | 2017-03-20 16:03:33 -0700 | [diff] [blame^] | 1 | #!/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 | |
| 9 | onos-push-test-bits $OCT |
| 10 | onos-push-bits $OCT |
| 11 | |
| 12 | ssh -t $ONOS_USER@$OCT " |
| 13 | # Unpack the test tools |
| 14 | cd /tmp; rm -fr \$(ls -Fd onos-test-*/) |
| 15 | tar xf $ONOS_TEST_TAR |
| 16 | |
| 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 |
| 25 | source tools/dev/bash_profile |
| 26 | setPrimaryInstance 1 |
| 27 | onos-verify-cell # TODO: remove once warden does this for us |
| 28 | |
| 29 | # Finally, execute required STC scenario(s) using the default topology |
| 30 | topo default |
| 31 | export stcDumpLogs=true |
| 32 | stc fast |
| 33 | " |