onos/tools/test/bin/onos-push-test-bits
Thomas Vachuska 734b749c17 Fixing onos-package not to be sensitive to cell settings and instead allowing onos-config (used from onos-install) to be fully sensitive to cell settings.
Added onos-package-test and onos-push-test-bits scripts.

Change-Id: Ie3f829f8a6e6d8a419388428feca56b69635ed44
2015-03-13 03:39:48 +00:00

17 lines
564 B
Bash
Executable File

#!/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:-$OCI}
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_BITS onos
"