mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 02:11:38 +02:00
Added onos-package-test and onos-push-test-bits scripts. Change-Id: Ie3f829f8a6e6d8a419388428feca56b69635ed44
17 lines
564 B
Bash
Executable File
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
|
|
"
|