1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00
samba-mirror/source3/script/tests/test_durable_handle_reconnect.sh
Volker Lendecke f3802023fe selftest: Make durable_v2_delay more specific
It will grow another subtest soon

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-12-08 20:24:31 +00:00

23 lines
583 B
Bash
Executable File

#!/bin/sh
#
# Test Durable Handle reconnect with injected delay in the disconnect.
#
# Copyright (C) 2018 Ralph Boehme
. $(dirname $0)/../../../testprogs/blackbox/subunit.sh
failed=0
delay_inject_conf=$(dirname $SMB_CONF_PATH)/delay_inject.conf
echo 'delay_inject:ntimes = 5000' > $delay_inject_conf
testit "durable_v2_delay.durable_v2_reconnect_delay" $VALGRIND \
$BINDIR/smbtorture //$SERVER_IP/delay_inject \
-U$USERNAME%$PASSWORD \
smb2.durable-v2-delay.durable_v2_reconnect_delay ||
failed=$(expr $failed + 1)
rm $delay_inject_conf
testok $0 $failed