libsmb,s3/smbd: dump SMB3+ session keys if debug parm is set
[Samba.git] / ctdb / tests / simple / 14_ctdb_statistics.sh
blob70245ee7e9f4d09b60acc253e4901d01f11eae7d
1 #!/bin/bash
3 test_info()
5 cat <<EOF
6 Verify that 'ctdb statistics' works as expected.
8 This is pretty superficial and could do more validation.
10 Prerequisites:
12 * An active CTDB cluster with at least 2 active nodes.
14 Steps:
16 1. Verify that the status on all of the ctdb nodes is 'OK'.
17 2. Run 'ctdb statistics' on a node, and verify that the output is
18 valid.
20 Expected results:
22 * 'ctdb statistics' shows valid output on all the nodes.
23 EOF
26 . "${TEST_SCRIPTS_DIR}/integration.bash"
28 ctdb_test_init
30 set -e
32 cluster_is_healthy
34 pattern='^(CTDB version 1|Current time of statistics[[:space:]]*:.*|Statistics collected since[[:space:]]*:.*|Gathered statistics for [[:digit:]]+ nodes|[[:space:]]+[[:alpha:]_]+[[:space:]]+[[:digit:]]+|[[:space:]]+(node|client|timeouts|locks)|[[:space:]]+([[:alpha:]_]+_latency|max_reclock_[[:alpha:]]+)[[:space:]]+[[:digit:]-]+\.[[:digit:]]+[[:space:]]sec|[[:space:]]*(locks_latency|reclock_ctdbd|reclock_recd|call_latency|lockwait_latency|childwrite_latency)[[:space:]]+MIN/AVG/MAX[[:space:]]+[-.[:digit:]]+/[-.[:digit:]]+/[-.[:digit:]]+ sec out of [[:digit:]]+|[[:space:]]+(hop_count_buckets|lock_buckets):[[:space:][:digit:]]+)$'
36 try_command_on_node -v 1 "$CTDB statistics"
38 sanity_check_output 40 "$pattern" "$out"