Commit 66fc4f00 authored by Niels Möller's avatar Niels Möller

New test case that

connects to lshd and sends some random data.

Rev: src/testsuite/Makefile.am:1.66
Rev: src/testsuite/lshd-random-input-test:1.1
parent 7022075f
...@@ -21,6 +21,7 @@ TS_SH = conv-1-test conv-2-test conv-3-test \ ...@@ -21,6 +21,7 @@ TS_SH = conv-1-test conv-2-test conv-3-test \
tcpip-local-test tcpip-local-in-use-test tcpip-remote-test \ tcpip-local-test tcpip-local-in-use-test tcpip-remote-test \
lshg-tcpip-local-test ssh1-fallback-test \ lshg-tcpip-local-test ssh1-fallback-test \
rapid7-lsh-test rapid7-lshd-test login-auth-test lshd-no-auth-test rapid7-lsh-test rapid7-lshd-test login-auth-test lshd-no-auth-test
lshd-random-input-test
TS_ALL = $(TS_PROGS) $(TS_SH) TS_ALL = $(TS_PROGS) $(TS_SH)
......
#! /bin/sh
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
PORT=5555
need_tcputils
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/tools/nettle-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