summaryrefslogtreecommitdiff
path: root/source3/script/tests/test_durable_handle_reconnect.sh
blob: 77d82c1b403401106b2cfa221b0f4b0d3fb604f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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