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:
authorSoniEx2 <endermoneymod@gmail.com>2021-04-09 07:19:03 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-04-09 07:19:03 -0300
commit0e752a6e215aee21dc73da097c3225495d54a5b6 (patch)
treeb81be02cbf2f06aebf322ac4a5d014b44176bba5 /libotr/libotr-4.1.1/tests/regression/random-msg-disconnect.sh
parent7754076c715285173311a1b6811ce377950e18a6 (diff)
Add libotr/etc sources
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