#!/bin/bash | |
# ----------------------------------------------------------------------------- | |
# Packages ONOS test facilities into onos-test.tar.gz | |
# ----------------------------------------------------------------------------- | |
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 | |
. $ONOS_ROOT/tools/build/envDefaults | |
cd $ONOS_ROOT && onos-buck build //:onos-test --show-output && \ | |
rm -f $ONOS_TEST_TAR && \ | |
ln -s $ONOS_ROOT/buck-out/gen/onos-test/onos-test-*.tar.gz $ONOS_TEST_TAR |