blob: ecf549b17aba185238a8efa692e28991568d8d50 [file] [log] [blame]
tomcaf3bf72014-09-23 13:20:53 -07001#!/bin/bash
2#-------------------------------------------------------------------------------
3# Launches the ONOS tests on the current cell environment.
4#-------------------------------------------------------------------------------
5
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
tom2482e6f2014-10-01 16:51:48 -070012for node in $nodes; do onos-install -f $node 1>/dev/null & done
13
14# Wait for shutdown before waiting for restart
15sleep 3
16
tomcaf3bf72014-09-23 13:20:53 -070017for node in $nodes; do onos-wait-for-start $node; done