blob: c681961315e81c096ede05db036322674ed3f075 [file] [log] [blame]
tomcaf3bf72014-09-23 13:20:53 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# -----------------------------------------------------------------------------
tomcaf3bf72014-09-23 13:20:53 -07003# Launches the ONOS tests on the current cell environment.
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# -----------------------------------------------------------------------------
tomcaf3bf72014-09-23 13:20:53 -07005
Brian O'Connorf5d93632015-09-04 20:18:31 -07006set -e
7
tomcaf3bf72014-09-23 13:20:53 -07008[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
9. $ONOS_ROOT/tools/build/envDefaults
10
11nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
12
13onos-package
Thomas Vachuskab105fd42014-10-20 09:02:27 -070014onos-verify-cell || exit 1
15
tom2482e6f2014-10-01 16:51:48 -070016for node in $nodes; do onos-install -f $node 1>/dev/null & done
17
18# Wait for shutdown before waiting for restart
19sleep 3
20
tomcaf3bf72014-09-23 13:20:53 -070021for node in $nodes; do onos-wait-for-start $node; done
tom5b68d812014-10-01 17:44:18 -070022for node in $nodes; do onos-check-logs $node; done