summary refs log tree commit diff stats
path: root/libotr/libotr-4.1.1/tests/regression/random-msg-frag.sh
blob: 0a4c6b04b8356ea4784fb88b3ab3360d0c62fd02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 and fragmentation"
$CLIENT --load-key $KEYFILE --timeout $MAX_INTERVAL --max-msg $MAX_MSG --fragment