summaryrefslogtreecommitdiff
path: root/ctdb/tests/simple
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-04-11 16:58:10 +1000
committerAmitay Isaacs <amitay@samba.org>2019-05-07 05:45:34 +0000
commit8108b3134c017c22d245fc5b2207a88d44ab0dd2 (patch)
treec2d52f70060a3ab57955dc5cf6cfc6266405942b /ctdb/tests/simple
parentf78d9388fb459dc83fafb4da6e683e3137ad40e1 (diff)
downloadsamba-8108b3134c017c22d245fc5b2207a88d44ab0dd2.tar.gz
ctdb-tests: Extend test to cover ctdb rddumpmemory
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13923 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests/simple')
-rwxr-xr-xctdb/tests/simple/25_dumpmemory.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/ctdb/tests/simple/25_dumpmemory.sh b/ctdb/tests/simple/25_dumpmemory.sh
index eec55b71c58..4f998bf8f3b 100755
--- a/ctdb/tests/simple/25_dumpmemory.sh
+++ b/ctdb/tests/simple/25_dumpmemory.sh
@@ -28,8 +28,11 @@ set -e
cluster_is_healthy
-try_command_on_node -v 0 "$CTDB dumpmemory"
-
pat='^([[:space:]].+[[:space:]]+contains[[:space:]]+[[:digit:]]+ bytes in[[:space:]]+[[:digit:]]+ blocks \(ref [[:digit:]]+\)[[:space:]]+0x[[:xdigit:]]+|[[:space:]]+reference to: .+|full talloc report on .+ \(total[[:space:]]+[[:digit:]]+ bytes in [[:digit:]]+ blocks\))$'
+try_command_on_node -v 0 "$CTDB dumpmemory"
+sanity_check_output 10 "$pat" "$out"
+
+echo
+try_command_on_node -v 0 "$CTDB rddumpmemory"
sanity_check_output 10 "$pat" "$out"