blob: 3f4fd410180a5db1e7320d5dbae63cb897f71c27 [file] [log] [blame]
Thomas Vachuska734b7492015-03-11 20:42:07 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Packages ONOS test facilities into onos-test.tar.gz
4# -----------------------------------------------------------------------------
5
Thomas Vachuska734b7492015-03-11 20:42:07 -07006[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
Thomas Vachuska9ac244b2017-03-20 16:03:33 -07007. $ONOS_ROOT/tools/build/envDefaults
8
9cd $ONOS_ROOT && onos-buck build //:onos-test --show-output && \
10 rm -f $ONOS_TEST_TAR && \
11 ln -s $ONOS_ROOT/buck-out/gen/onos-test/onos-test-*.tar.gz $ONOS_TEST_TAR