ctdb-tests: Iterate protocol tests internally
commit17d792e9aa38c3d8a2211c7b8ee3e2d88b438922
authorMartin Schwenke <martin@meltin.net>
Tue, 4 Jan 2022 01:19:49 +0000 (4 12:19 +1100)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Feb 2022 04:32:29 +0000 (14 04:32 +0000)
tree4940934172dd24af2a6b062a9f4a32bb7185ed7f
parent2329305019d2b8521c1ceed76c9a703a1b745e86
ctdb-tests: Iterate protocol tests internally

Instead of repeatedly running a test binary.

Run time for these tests reduces from ~90s to ~75s.

When run under valgrind, the run time for protocol_test_001.sh reduces
from ~390s to <1s.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Feb 14 04:32:29 UTC 2022 on sn-devel-184
12 files changed:
ctdb/event/event_protocol_test.c
ctdb/tests/UNIT/cunit/event_protocol_test_001.sh
ctdb/tests/UNIT/cunit/protocol_test_001.sh
ctdb/tests/UNIT/cunit/protocol_test_002.sh
ctdb/tests/UNIT/cunit/protocol_test_012.sh
ctdb/tests/UNIT/cunit/protocol_test_101.sh
ctdb/tests/UNIT/cunit/protocol_test_111.sh
ctdb/tests/src/protocol_basic_test.c
ctdb/tests/src/protocol_ctdb_compat_test.c
ctdb/tests/src/protocol_ctdb_test.c
ctdb/tests/src/protocol_types_compat_test.c
ctdb/tests/src/protocol_types_test.c