ctdb-tests: Add iteration support for protocol tests
commit2329305019d2b8521c1ceed76c9a703a1b745e86
authorMartin Schwenke <martin@meltin.net>
Tue, 4 Jan 2022 01:18:33 +0000 (4 12:18 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Feb 2022 03:36:38 +0000 (14 03:36 +0000)
tree9c31cf9b6cab81038eb1ee69e75f701dd1bf1cab
parent331c435ce520bef1274e076e6ed491400db3b5ad
ctdb-tests: Add iteration support for protocol tests

The current method of repeatedly running a binary has huge overhead,
especially with valgrind.

protocol_test_iterate_tag() allows output that is usually used for
hinting where a test failure occurred to be replaced with a tag
stored in a buffer, which is printed on test failure.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/src/protocol_common_basic.c
ctdb/tests/src/protocol_common_basic.h