lshg-tcpip-local-test 386 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#! /bin/sh

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 \
14
    && spawn_lsh --start-gateway \
15
    && spawn_lshg -L $PROXYPORT:localhost:$SERVERPORT \
16
    && ./tcpconnect -r </dev/null localhost $PROXYPORT | grep foo \
17 18
    && test_success

19
test_done