src/testsuite/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 'grep bar && echo foo' \ |
| 13 | && spawn_lshd \ |
| 14 | && spawn_lsh -L $PROXYPORT:localhost:$SERVERPORT \ |
| 15 | && echo bar | ./tcpconnect localhost $PROXYPORT | grep foo \ |
| 16 | && test_success |
| 17 | |
| 18 | test_done |