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

* src/testsuite/socks4-test: New file.

* src/testsuite/socks4-config: New file.

Rev: src/testsuite/socks4-config:1.1
Rev: src/testsuite/socks4-test:1.1
parent 256acf4d
server = localhost
server_port = 10080
server_type = 4
forcelocal
#! /bin/sh
if [ -z "$srcdir" ] ; then
srcdir=`pwd`
fi
. $srcdir/functions.sh
need_tcputils
need_tsocks
SERVERPORT=`expr $PORT + 1`
SOCKSPORT=10080
TSOCKS_CONF_FILE="$srcdir/socks4-config"
export TSOCKS_CONF_FILE
# FIXME: We need to configure tsocks to use a socks server on localhot
# to connect to other servers on localhost.
at_connect $SERVERPORT 1 'grep bar && echo foo' \
&& spawn_lshd \
&& spawn_lsh -D$SOCKSPORT \
&& sleep 30 \
&& echo bar | tsocks tcpconnect localhost $SERVERPORT | 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