1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/tests/UNIT/cunit/comm_test_002.sh
Martin Schwenke 43ed3a6eb3 ctdb-tests: Move cunit tests to UNIT/ subdirectory
The UNIT subdirectory directory will contain all unit tests.  Use an
uppercase name to avoid conflicts with source code subdirectories.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-09-26 04:45:36 +00:00

25 lines
335 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
socket="${CTDB_TEST_TMP_DIR}/test_sock.$$"
num_clients=10
remove_socket ()
{
rm -f "$socket"
}
test_cleanup remove_socket
ok_null
unit_test comm_server_test "$socket" $num_clients &
pid=$!
for i in $(seq 1 $num_clients) ; do
unit_test comm_client_test "$socket"
done
wait $pid