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

* src/testsuite/lshg-tcpip-local-test: New test case.

Rev: src/testsuite/lshg-tcpip-local-test:1.1
parent b4da20eb
#! /bin/sh
# Tests connecting with lsh. In order to use this, you must already
# have lsh set up so that you can login without password.
# This restriction can be fixed if we add an option to lshd to use a
# custom passwd-file.
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
SERVERPORT=`expr $PORT + 1`
PROXYPORT=`expr $PORT + 2`
at_connect $SERVERPORT 1 'echo foo' \
&& spawn_lshd \
&& spawn_lsh -G \
&& sleep 30 \
&& spawn_lshg -L $PROXYPORT:localhost:$SERVERPORT \
&& sleep 30 \
&& tcpconnect -r </dev/null localhost $PROXYPORT | grep foo \
&& 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