mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
43ed3a6eb3
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>
25 lines
335 B
Bash
Executable File
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
|