summaryrefslogtreecommitdiff
path: root/source3/script/tests/test_durable_handle_reconnect.sh
blob: bca8e2def962d5543002721a7650d1ffe9c38341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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" $VALGRIND \
       $BINDIR/smbtorture //$SERVER_IP/delay_inject \
       -U$USERNAME%$PASSWORD  smb2.durable-v2-delay ||
	failed=$(expr $failed + 1)

rm $delay_inject_conf

testok $0 $failed