6 Run tunnel_test and sanity check the output.
10 * An active CTDB cluster with at least 2 active nodes.
14 . "${TEST_SCRIPTS_DIR}/integration.bash"
22 try_command_on_node 0 "$CTDB listnodes"
23 num_nodes=$(echo "$out" | wc -l)
25 echo "Running tunnel_test on all $num_nodes nodes."
26 try_command_on_node -v -p all $CTDB_TEST_WRAPPER $VALGRIND \
27 tunnel_test -t 30 -n $num_nodes
29 # Get the last line of output.
34 pat='^(Waiting for cluster|pnn\[[[:digit:]]+\] [[:digit:]]+(\.[[:digit:]]+)? msgs/sec)$'
35 sanity_check_output 1 "$pat" "$out"
37 # $prev should look like this:
39 stuff="${prev##pnn\[*\] }"
40 mps="${stuff% msgs/sec}"
42 if [ ${mps%.*} -ge 10 ] ; then
43 echo "OK: $mps msgs/sec >= 10 msgs/sec"
45 echo "BAD: $mps msgs/sec < 10 msgs/sec"