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

* src/testsuite/socks5-config: tsocks configuration file for

socks5 test case.

* src/testsuite/socks5-test: New socks5 test.

Rev: src/testsuite/socks5-config:1.1
Rev: src/testsuite/socks5-test:1.1
parent a16bb8fb
server = localhost
server_port = 10080
server_type = 5
#! /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/socks5-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
Supports Markdown
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