Commit fe8b918d authored by Niels Möller's avatar Niels Möller
Browse files

New test case that connects to

lshd and sends some random data.

Rev: src/testsuite/random-input-test:1.1.2.1
parent 96a2795a
#! /bin/sh
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
PORT=5555
werror "Testing lshd with random input"
spawn_lshd
for seed in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ; do
werror "Trying seed $seed"
../nettle/examples/lfib-stream $seed \
| tcpconnect $INTERFACE $PORT > /dev/null \
|| die "Connect failed"
kill -0 `cat $PIDFILE` || die "Server died"
done
test_success
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment