3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "confirm that getvar matches listvar"
9 0 192.168.20.41 0x0 CURRENT RECMASTER
14 # Squash whitespace for predictable output
17 sed -e 's|[[:space:]][[:space:]]*| |g'
20 $CTDB -d $CTDB_DEBUGLEVEL listvars |
21 while read variable equals value ; do
22 # Variable, as per listvars
23 ok "${variable} = ${value}"
24 simple_test "$variable"
27 v_upper=$(echo "$variable" | tr "a-z" "A-Z")
28 ok "${v_upper} = ${value}"
29 simple_test "$v_upper"
32 v_lower=$(echo "$variable" | tr "A-Z" "a-z")
33 ok "${v_lower} = ${value}"
34 simple_test "$v_lower"