1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/ctdb/tests/cunit/protocol_test_002.sh
Amitay Isaacs 2bad7d7de8 ctdb-tests: Update tests to include new controls
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2016-04-23 23:55:14 +02:00

37 lines
683 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
last_control=148
control_output=$(
for i in $(seq 0 $last_control) ; do
echo -n "$i.. "
done
echo
)
output=$(
echo "ctdb_req_header"
echo "ctdb_req_call"
echo "ctdb_reply_call"
echo "ctdb_reply_error"
echo "ctdb_req_dmaster"
echo "ctdb_reply_dmaster"
echo "ctdb_req_control_data"
echo "$control_output"
echo "ctdb_reply_control_data"
echo "$control_output"
echo "ctdb_req_control"
echo "$control_output"
echo "ctdb_reply_control"
echo "$control_output"
echo "ctdb_req_message"
)
ok "$output"
for i in $(seq 1 100) ; do
unit_test protocol_client_test $i
done