Ray Milkey | 1f0fb3b | 2019-02-26 08:45:48 -0800 | [diff] [blame] | 1 | #!/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 | |
| 9 | aux=/tmp/stc/stc-$$.log |
| 10 | trap "rm -f $aux $aux.1 $aux.2 2>/dev/null" EXIT |
| 11 | |
| 12 | name=$2 |
| 13 | expected=$3 |
| 14 | |
| 15 | count=`onos ${1} onos:scr-list | wc -l | xargs` |
| 16 | |
| 17 | echo "@stc ${name}count=${count}" |