onos/tools/build/onos-test
Brian O'Connor f5d9363217 Adding set -e to build commands
Change-Id: I72d02db1f6f8484f4ffb2d00406e6af2c866a7fb
2015-09-04 20:18:31 -07:00

23 lines
671 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Launches the ONOS tests on the current cell environment.
# -----------------------------------------------------------------------------
set -e
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
onos-package
onos-verify-cell || exit 1
for node in $nodes; do onos-install -f $node 1>/dev/null & done
# Wait for shutdown before waiting for restart
sleep 3
for node in $nodes; do onos-wait-for-start $node; done
for node in $nodes; do onos-check-logs $node; done