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/comm_test_002.sh
Amitay Isaacs 1543eedb8f ctdb-common: Add communication endpoint abstraction
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2015-10-07 14:53:29 +02:00

25 lines
330 B
Bash
Executable File

#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
socket="${TEST_VAR_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