blob: 60c85901472ace3872ca0b783316827fb25a1ba6 [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
DongRyeol Cha5c0a9f02018-05-17 14:32:55 +090011remote_scp=$ONOS_USER@[$node]
Thomas Vachuska734b7492015-03-11 20:42:07 -070012
DongRyeol Cha5c0a9f02018-05-17 14:32:55 +090013scp -q $ONOS_TEST_TAR $remote_scp:/tmp
Thomas Vachuska734b7492015-03-11 20:42:07 -070014ssh $remote "
15 rm -f /tmp/onos $ONOS_TEST_BITS
Brian O'Connorc5c88402017-08-15 17:02:32 -070016 cd /tmp && tar zxf $ONOS_TEST_BITS.tar.gz && ln -s onos-test-$ONOS_POM_VERSION onos
Thomas Vachuska734b7492015-03-11 20:42:07 -070017"