tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 2 | # ----------------------------------------------------------------------------- |
tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 3 | # Launches the ONOS tests on the current cell environment. |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 4 | # ----------------------------------------------------------------------------- |
tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 5 | |
Brian O'Connor | f5d9363 | 2015-09-04 20:18:31 -0700 | [diff] [blame] | 6 | set -e |
| 7 | |
tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 8 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 9 | . $ONOS_ROOT/tools/build/envDefaults |
| 10 | |
| 11 | nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) |
| 12 | |
| 13 | onos-package |
Thomas Vachuska | b105fd4 | 2014-10-20 09:02:27 -0700 | [diff] [blame] | 14 | onos-verify-cell || exit 1 |
| 15 | |
tom | 2482e6f | 2014-10-01 16:51:48 -0700 | [diff] [blame] | 16 | for node in $nodes; do onos-install -f $node 1>/dev/null & done |
| 17 | |
| 18 | # Wait for shutdown before waiting for restart |
| 19 | sleep 3 |
| 20 | |
tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 21 | for node in $nodes; do onos-wait-for-start $node; done |
tom | 5b68d81 | 2014-10-01 17:44:18 -0700 | [diff] [blame] | 22 | for node in $nodes; do onos-check-logs $node; done |