summary refs log tree commit diff stats
path: root/libotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'libotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh')
-rwxr-xr-xlibotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/libotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh b/libotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh
new file mode 100755
index 0000000..bae0703
--- /dev/null
+++ b/libotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+CURDIR=$(dirname $0)/
+TESTDIR=$CURDIR/..
+CLIENT=$CURDIR/client/client
+KEYFILE=$CURDIR/client/otr.key
+
+MAX_MSG=50
+MAX_INTERVAL=500 # msec
+
+source $TESTDIR/utils/tap/tap.sh
+
+diag "Messaging with random interval of max $MAX_INTERVAL with disconnect"
+$CLIENT --disconnect --load-key $KEYFILE --timeout $MAX_INTERVAL --max-msg $MAX_MSG