blob: 4f6ba57c39d6fed915b2bdf10f16eb0d28ee6c74 [file] [log] [blame]
Thomas Vachuska734b7492015-03-11 20:42:07 -07001#!/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 Vachuska9ac244b2017-03-20 16:03:33 -07009node=${1:-$OCN}
Thomas Vachuska734b7492015-03-11 20:42:07 -070010remote=$ONOS_USER@$node
11
12scp -q $ONOS_TEST_TAR $remote:/tmp
13ssh $remote "
14 rm -f /tmp/onos $ONOS_TEST_BITS
Brian O'Connorc5c88402017-08-15 17:02:32 -070015 cd /tmp && tar zxf $ONOS_TEST_BITS.tar.gz && ln -s onos-test-$ONOS_POM_VERSION onos
Thomas Vachuska734b7492015-03-11 20:42:07 -070016"