mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
25 lines
330 B
Bash
25 lines
330 B
Bash
|
#!/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
|