ctdb-tests: Extend test to cover ctdb rddumpmemory
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Apr 2019 06:58:10 +0000 (16:58 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 7 May 2019 05:45:34 +0000 (05:45 +0000)
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>
ctdb/tests/simple/25_dumpmemory.sh

index eec55b71c58299210aef54fe0d61d7dc2bd44f07..4f998bf8f3bbd3c9976a28cb81187f5498a79fd6 100755 (executable)
@@ -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"