1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/ctdb/tests/cunit/comm_test_002.sh

25 lines
330 B
Bash
Raw Normal View History

#!/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