diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-07-14 17:09:57 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2017-08-30 14:59:21 +0200 |
commit | 936fc23e3c9d54898565b0093de10077d82ba1f8 (patch) | |
tree | 18fd73d6b946bd1524057468068ace77ec688657 /ctdb/tests/cunit/protocol_test_102.sh | |
parent | 73748776d988d5d3cbc07fe1691e6c2c632a0f3b (diff) | |
download | samba-936fc23e3c9d54898565b0093de10077d82ba1f8.tar.gz |
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>
Diffstat (limited to 'ctdb/tests/cunit/protocol_test_102.sh')
-rwxr-xr-x | ctdb/tests/cunit/protocol_test_102.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ctdb/tests/cunit/protocol_test_102.sh b/ctdb/tests/cunit/protocol_test_102.sh new file mode 100755 index 00000000000..26af1f3dc0b --- /dev/null +++ b/ctdb/tests/cunit/protocol_test_102.sh @@ -0,0 +1,30 @@ +#!/bin/sh + +. "${TEST_SCRIPTS_DIR}/unit.sh" + +last_command=5 + +command_output=$( + for i in $(seq 1 $last_command) ; do + echo -n "$i.. " + done + echo +) + +output=$( + echo "ctdb_event_header" + echo "ctdb_event_request_data" + echo "$command_output" + echo "ctdb_event_reply_data" + echo "$command_output" + echo "ctdb_event_request" + echo "$command_output" + echo "ctdb_event_reply" + echo "$command_output" +) + +ok "$output" + +for i in $(seq 1 100) ; do + unit_test protocol_event_test $i +done |