Delete some unstructured tests ({fetch,peristent,transaction}.sh) and
[metze/ctdb/wip.git] / tests / simple / 02_ctdb_listvars.sh
1 #!/bin/bash
2
3 test_info()
4 {
5     cat <<EOF
6 Verify that 'ctdb listvars' shows a list of all tunable variables.
7
8 This test simply checks that at least 5 sane looking lines are
9 printed.  It does not check that the list is complete or that the
10 values are sane.
11
12 Prerequisites:
13
14 * An active CTDB cluster with at least 2 active nodes.
15
16 Steps:
17
18 1. Verify that the status on all of the ctdb nodes is 'OK'.
19 2. Run 'ctdb listvars' and verify that it shows a list of tunable
20    variables and their current values.
21
22 Expected results:
23
24 * 'ctdb listvars' works as expected.
25 EOF
26 }
27
28 . ctdb_test_functions.bash
29
30 ctdb_test_init "$@"
31
32 set -e
33
34 onnode 0 $CTDB_TEST_WRAPPER cluster_is_healthy
35
36 try_command_on_node -v 0 "$CTDB listvars"
37
38 sanity_check_output \
39     5 \
40     '^[[:alpha:]]+[[:space:]]*=[[:space:]]*[[:digit:]]+$' \
41     "$out"
42
43 ctdb_test_exit