blob: 421de90726064a414bb7436ee2ee607a98b0413a [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
9aux=/tmp/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