blob: 1391a5b14b873328a49b2cd3033682d33dfaa327 [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
Thomas Vachuska78167932016-02-12 13:13:31 -08006echo "This command has been deprecated and will be removed after Falcon release"
7echo "Please use the 'stc setup' command instead"
8
Brian O'Connorf5d93632015-09-04 20:18:31 -07009set -e
10
tomcaf3bf72014-09-23 13:20:53 -070011[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
12. $ONOS_ROOT/tools/build/envDefaults
13
14nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2)
15
16onos-package
Thomas Vachuskab105fd42014-10-20 09:02:27 -070017onos-verify-cell || exit 1
18
tom2482e6f2014-10-01 16:51:48 -070019for node in $nodes; do onos-install -f $node 1>/dev/null & done
20
21# Wait for shutdown before waiting for restart
22sleep 3
23
tomcaf3bf72014-09-23 13:20:53 -070024for node in $nodes; do onos-wait-for-start $node; done
tom5b68d812014-10-01 17:44:18 -070025for node in $nodes; do onos-check-logs $node; done