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 | |
Thomas Vachuska | 7816793 | 2016-02-12 13:13:31 -0800 | [diff] [blame^] | 6 | echo "This command has been deprecated and will be removed after Falcon release" |
| 7 | echo "Please use the 'stc setup' command instead" |
| 8 | |
Brian O'Connor | f5d9363 | 2015-09-04 20:18:31 -0700 | [diff] [blame] | 9 | set -e |
| 10 | |
tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 11 | [ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1 |
| 12 | . $ONOS_ROOT/tools/build/envDefaults |
| 13 | |
| 14 | nodes=$(env | sort | egrep "OC[0-9]+" | cut -d= -f2) |
| 15 | |
| 16 | onos-package |
Thomas Vachuska | b105fd4 | 2014-10-20 09:02:27 -0700 | [diff] [blame] | 17 | onos-verify-cell || exit 1 |
| 18 | |
tom | 2482e6f | 2014-10-01 16:51:48 -0700 | [diff] [blame] | 19 | for node in $nodes; do onos-install -f $node 1>/dev/null & done |
| 20 | |
| 21 | # Wait for shutdown before waiting for restart |
| 22 | sleep 3 |
| 23 | |
tom | caf3bf7 | 2014-09-23 13:20:53 -0700 | [diff] [blame] | 24 | for node in $nodes; do onos-wait-for-start $node; done |
tom | 5b68d81 | 2014-10-01 17:44:18 -0700 | [diff] [blame] | 25 | for node in $nodes; do onos-check-logs $node; done |