ctdb-tests: Add tests for trivial FD monitoring
commita8da8810f1457fdfeedaf0a7822016b326b278be
authorMartin Schwenke <martin@meltin.net>
Wed, 2 Feb 2022 10:47:59 +0000 (2 21:47 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 28 Jul 2022 10:09:34 +0000 (28 10:09 +0000)
treefcd4af2fe8fe9d32c9b5ee71ec713ad991f7fa90
parent8d04235f4656b9fbd62a00b9663eedafb18956d9
ctdb-tests: Add tests for trivial FD monitoring

tmon_ping_test covers complex 2-way interaction between processes
using tmon_ping_send(), including via a socketpair().  tmon_test
covers the more general functionality of tmon_send() but uses a
simpler 1-way harness with wide coverage.

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