blob: 4ccb85e5cca8b0bc7cc881e5cb53695b200fdaad [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
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
10
11onos-package
Thomas Vachuskab105fd42014-10-20 09:02:27 -070012onos-verify-cell || exit 1
13
tom2482e6f2014-10-01 16:51:48 -070014for node in $nodes; do onos-install -f $node 1>/dev/null & done
15
16# Wait for shutdown before waiting for restart
17sleep 3
18
tomcaf3bf72014-09-23 13:20:53 -070019for node in $nodes; do onos-wait-for-start $node; done
tom5b68d812014-10-01 17:44:18 -070020for node in $nodes; do onos-check-logs $node; done