ctdb-tests: Reorganize protocol tests
authorAmitay Isaacs <amitay@gmail.com>
Fri, 14 Jul 2017 07:09:57 +0000 (17:09 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 30 Aug 2017 12:59:21 +0000 (14:59 +0200)
commit936fc23e3c9d54898565b0093de10077d82ba1f8
tree18fd73d6b946bd1524057468068ace77ec688657
parent73748776d988d5d3cbc07fe1691e6c2c632a0f3b
ctdb-tests: Reorganize protocol tests

This patch splits the protocol tests from:
  protocol_types_test.c
  protocol_client_test.c

and creates the following files:

  protocol_common.[ch]       - common code for data types
  protocol_common_ctdb.[ch]  - common code for ctdb protocol elements
  protocol_common_event.[ch] - common code for eventd protocol elements
  protocol_basic_test.c      - basic data types
  protocol_types_test.c      - ctdb data types
  protocol_ctdb_test.c       - ctdb protocol
  protocol_event_test.c      - eventd protocol

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
17 files changed:
ctdb/tests/cunit/protocol_test_001.sh
ctdb/tests/cunit/protocol_test_002.sh
ctdb/tests/cunit/protocol_test_101.sh [new file with mode: 0755]
ctdb/tests/cunit/protocol_test_102.sh [new file with mode: 0755]
ctdb/tests/cunit/protocol_test_201.sh [moved from ctdb/tests/cunit/protocol_test_003.sh with 100% similarity]
ctdb/tests/src/protocol_basic_test.c [new file with mode: 0644]
ctdb/tests/src/protocol_common.c [new file with mode: 0644]
ctdb/tests/src/protocol_common.h [new file with mode: 0644]
ctdb/tests/src/protocol_common_ctdb.c [moved from ctdb/tests/src/protocol_client_test.c with 63% similarity]
ctdb/tests/src/protocol_common_ctdb.h [new file with mode: 0644]
ctdb/tests/src/protocol_common_event.c [new file with mode: 0644]
ctdb/tests/src/protocol_common_event.h [new file with mode: 0644]
ctdb/tests/src/protocol_ctdb_test.c [new file with mode: 0644]
ctdb/tests/src/protocol_event_test.c [new file with mode: 0644]
ctdb/tests/src/protocol_types_test.c
ctdb/tests/src/protocol_util_test.c
ctdb/wscript