ctdb-tests: Add tests for trivial FD monitoring
authorMartin Schwenke <martin@meltin.net>
Wed, 2 Feb 2022 10:47:59 +0000 (21:47 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Thu, 28 Jul 2022 08:35:50 +0000 (18:35 +1000)
commit2519c89503eb9ec272c7a5a034b93ca32d896240
treee5939f267e70ebad913ab21a9124f1ec4f3295d5
parentdc04cb633a67372e6d539ba267693381570a52c2
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