mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
1543eedb8f
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
25 lines
330 B
Bash
Executable File
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
|