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 | |
Brian O'Connor | 649d024 | 2017-03-21 02:14:18 +0000 | [diff] [blame] | 12 | ssh -t -t $ONOS_USER@$OCT " |
Thomas Vachuska | 9ac244b | 2017-03-20 16:03:33 -0700 | [diff] [blame] | 13 | # Unpack the test tools |
| 14 | cd /tmp; rm -fr \$(ls -Fd onos-test-*/) |
Brian O'Connor | 649d024 | 2017-03-21 02:14:18 +0000 | [diff] [blame] | 15 | tar xf \$(basename $ONOS_TEST_TAR) |
Thomas Vachuska | 9ac244b | 2017-03-20 16:03:33 -0700 | [diff] [blame] | 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 |
Brian O'Connor | 649d024 | 2017-03-21 02:14:18 +0000 | [diff] [blame] | 25 | export ONOS_STAGE_ROOT=/tmp |
| 26 | export ONOS_TEST_STAGE_ROOT=/tmp |
| 27 | source \$ONOS_ROOT/tools/dev/bash_profile |
Thomas Vachuska | 9ac244b | 2017-03-20 16:03:33 -0700 | [diff] [blame] | 28 | 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'Connor | 649d024 | 2017-03-21 02:14:18 +0000 | [diff] [blame] | 34 | export stcColor=$stcColor |
Thomas Vachuska | 9ac244b | 2017-03-20 16:03:33 -0700 | [diff] [blame] | 35 | stc fast |
| 36 | " |
Ray Milkey | 708d1ef | 2017-04-11 10:17:01 -0700 | [diff] [blame] | 37 | |
| 38 | mkdir -p /tmp/stc |
| 39 | scp -r ${ONOS_USER}@${OCT}:/tmp/stc/* /tmp/stc/ |
| 40 | |