blob: 927d157f4953d55ad1f564eabf79cd461c8a5daa [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
9node=${1:-$OCI}
10remote=$ONOS_USER@$node
11
12scp -q $ONOS_TEST_TAR $remote:/tmp
13ssh $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"