blob: aec0dbeb803c15b5dab06785a8c4ad2d74e174b8 [file] [log] [blame]
Thomas Vachuska4cfcc562015-06-03 09:51:02 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Checks whether all and only the ONOS apps configured in ONOS_APPS are active.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
Jon Hallfb6009d2017-02-15 16:01:17 -08009aux=/tmp/stc/stc-$$.log
Thomas Vachuska4b84baf2015-07-27 10:49:06 -070010trap "rm -f $aux 2>/dev/null" EXIT
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070011
Thomas Vachuska4b84baf2015-07-27 10:49:06 -070012onos ${1:-$OCI} "onos:ui-views" > $aux
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070013cat $aux
14
Thomas Vachuska4b84baf2015-07-27 10:49:06 -070015[ $# -gt 0 ] && shift
Thomas Vachuska4cfcc562015-06-03 09:51:02 -070016
Thomas Vachuska4b84baf2015-07-27 10:49:06 -070017grep "${@:-topo}" $aux