ctdb-tests: Add unit tests for tunables code
commitb14f2a205d25548062fbe23651bdbe1886b253fa
authorMartin Schwenke <martin@meltin.net>
Mon, 31 Jan 2022 03:36:23 +0000 (31 14:36 +1100)
committerAmitay Isaacs <amitay@samba.org>
Wed, 6 Apr 2022 06:34:37 +0000 (6 06:34 +0000)
treebc3bac0af4606182ddf79c79e36e941e11ba87ef
parent381134939bd10863a72d5be2cd93a7685479b485
ctdb-tests: Add unit tests for tunables code

This aims to test ctdb_tunable_load_file() but also exercises
ctdb_tunable_names() and ctdb_tunable_get_value().
ctdb_tunable_set_value() is indirectly exercised via
ctdb_tunable_load_file().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/UNIT/cunit/tunable_test_001.sh [new file with mode: 0755]
ctdb/tests/src/tunable_test.c [new file with mode: 0644]
ctdb/wscript