Debian Codegraph @

src/testsuite/lshg-tcpip-local-test

raw
1 #! /bin/sh
2
3 if [ -z "$srcdir" ] ; then
4 srcdir=`pwd`
5 fi
6
7 . $srcdir/functions.sh
8
9 SERVERPORT=`expr $PORT + 1`
10 PROXYPORT=`expr $PORT + 2`
11
12 at_connect $SERVERPORT 1 'echo foo' \
13 && spawn_lshd \
14 && spawn_lsh -G \
15 && spawn_lshg -L $PROXYPORT:localhost:$SERVERPORT \
16 && ./tcpconnect -r </dev/null localhost $PROXYPORT | grep foo \
17 && test_success
18
19 test_done