1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00
samba-mirror/ctdb/tests/simple/02_ctdb_listvars.sh
Martin Schwenke d741559fa6 Add some simple tests that can be run from within the tree.
Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit eacb2ef82ea4809d874158756db973dd1e3fc8fc)
2008-11-20 20:40:01 +11:00

20 lines
306 B
Bash
Executable File

#!/bin/bash
. ctdb_test_functions.bash
set -e
onnode 0 $TEST_WRAP cluster_is_healthy
try_command_on_node 0 "ctdb listvars"
echo "Output from \"ctdb listvars\" on node 0:"
echo "$out"
sanity_check_output \
5 \
'^[[:alpha:]]+[[:space:]]*=[[:space:]]*[[:digit:]]+$' \
"$out"
ctdb_test_exit