1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
# Test that the start and stop commands can handle a big cluster (i.e.,
# a cluster with a large number of nodes).
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: btest-diff start.out
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-status-output btest-diff status1.out
# @TEST-EXEC: btest-diff stop.out
# @TEST-EXEC: btest-diff status2.out
. broctl-test-setup
while read line; do installcfgfile "$line"; done << EOF
etc/broctl.cfg__no_email
etc/node.cfg__big_cluster
bin/bro__test
EOF
broctl install
broctl start > start.out 2>&1
# verify that all nodes are started
broctl status > status1.out 2>&1
broctl stop > stop.out 2>&1
# verify that all nodes are stopped
broctl status > status2.out 2>&1
# broctl status returns non-zero when not all nodes are running
exit 0
|