summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2019-04-11 16:58:10 +1000
committerKarolin Seeger <kseeger@samba.org>2019-05-17 07:18:29 +0000
commit30b5d837d5dc863275cc685e1f4f80d866be7bdf (patch)
tree551685d5e08bb0ec151ab5bc63f34029b87ae204 /ctdb
parent08e229df43ed62991ea966e42e966afcacb4cb55 (diff)
downloadsamba-30b5d837d5dc863275cc685e1f4f80d866be7bdf.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> (cherry picked from commit 8108b3134c017c22d245fc5b2207a88d44ab0dd2)
Diffstat (limited to 'ctdb')
-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 4d6cc83d5ee..36fecfed016 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"