blob: 4f6ba57c39d6fed915b2bdf10f16eb0d28ee6c74 [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Remotely pushes test bits to a remote test machine and unrolls them in /tmp
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
node=${1:-$OCN}
remote=$ONOS_USER@$node
scp -q $ONOS_TEST_TAR $remote:/tmp
ssh $remote "
rm -f /tmp/onos $ONOS_TEST_BITS
cd /tmp && tar zxf $ONOS_TEST_BITS.tar.gz && ln -s onos-test-$ONOS_POM_VERSION onos
"