summaryrefslogtreecommitdiffstats
path: root/comm/third_party/libotr/tests/regression/random-msg-disconnect-frag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'comm/third_party/libotr/tests/regression/random-msg-disconnect-frag.sh')
-rwxr-xr-xcomm/third_party/libotr/tests/regression/random-msg-disconnect-frag.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/comm/third_party/libotr/tests/regression/random-msg-disconnect-frag.sh b/comm/third_party/libotr/tests/regression/random-msg-disconnect-frag.sh
new file mode 100755
index 0000000000..f58c315376
--- /dev/null
+++ b/comm/third_party/libotr/tests/regression/random-msg-disconnect-frag.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+CURDIR=$(dirname $0)/
+TESTDIR=$CURDIR/..
+CLIENT=$CURDIR/client/client
+KEYFILE=$CURDIR/client/otr.key
+
+MAX_MSG=20
+MAX_INTERVAL=500 # msec
+
+source $TESTDIR/utils/tap/tap.sh
+
+diag "Messaging with random interval of max $MAX_INTERVAL, disconnect and fragmentation"
+$CLIENT --load-key $KEYFILE --timeout $MAX_INTERVAL --max-msg $MAX_MSG --fragment --disconnect