Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Remotely pushes test bits to a remote test machine and unrolls them in /tmp |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
| 6 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 7 | . $ONOS_ROOT/tools/build/envDefaults |
| 8 | |
Thomas Vachuska | 9ac244b | 2017-03-20 16:03:33 -0700 | [diff] [blame^] | 9 | node=${1:-$OCN} |
Thomas Vachuska | 734b749 | 2015-03-11 20:42:07 -0700 | [diff] [blame] | 10 | remote=$ONOS_USER@$node |
| 11 | |
| 12 | scp -q $ONOS_TEST_TAR $remote:/tmp |
| 13 | ssh $remote " |
| 14 | rm -f /tmp/onos $ONOS_TEST_BITS |
| 15 | cd /tmp && tar zxf $ONOS_TEST_BITS.tar.gz && ln -s $ONOS_TEST_BITS onos |
| 16 | " |