blob: 6bac52c72a10da68a02e46df809116d10ef5f950 [file] [log] [blame]
Ray Milkey1f0fb3b2019-02-26 08:45:48 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Checks if the given number of expected components are present.
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/stc-$$.log
10trap "rm -f $aux $aux.1 $aux.2 2>/dev/null" EXIT
11
12name=$2
13expected=$3
14
15count=`onos ${1} onos:scr-list | wc -l | xargs`
16
17echo "@stc ${name}count=${count}"