tests: prepare tinyproxy for filter file usage in tests.

Michael
This commit is contained in:
Michael Adam 2009-09-15 02:24:00 +02:00
parent 574a65c28e
commit f648d82edc

View File

@ -31,8 +31,9 @@ TINYPROXY_PID_DIR=$TESTENV_DIR/var/run/tinyproxy
TINYPROXY_PID_FILE=$TINYPROXY_PID_DIR/tinyproxy.pid TINYPROXY_PID_FILE=$TINYPROXY_PID_DIR/tinyproxy.pid
TINYPROXY_LOG_DIR=$LOG_DIR TINYPROXY_LOG_DIR=$LOG_DIR
TINYPROXY_DATA_DIR=$TESTENV_DIR/usr/share/tinyproxy TINYPROXY_DATA_DIR=$TESTENV_DIR/usr/share/tinyproxy
TINYPROXY_CONF_DIR=$TESTENV_DIR/etc TINYPROXY_CONF_DIR=$TESTENV_DIR/etc/tinyproxy
TINYPROXY_CONF_FILE=$TINYPROXY_CONF_DIR/tinyproxy.conf TINYPROXY_CONF_FILE=$TINYPROXY_CONF_DIR/tinyproxy.conf
TINYPROXY_FILTER_FILE=$TINYPROXY_CONF_DIR/filter
TINYPROXY_STDERR_LOG=$TINYPROXY_LOG_DIR/tinyproxy.stderr.log TINYPROXY_STDERR_LOG=$TINYPROXY_LOG_DIR/tinyproxy.stderr.log
TINYPROXY_BIN=$BASEDIR/src/tinyproxy TINYPROXY_BIN=$BASEDIR/src/tinyproxy
TINYPROXY_STATHOST_IP="127.0.0.127" TINYPROXY_STATHOST_IP="127.0.0.127"
@ -91,7 +92,11 @@ Allow 127.0.0.0/8
ViaProxyName "tinyproxy" ViaProxyName "tinyproxy"
ConnectPort 443 ConnectPort 443
ConnectPort 563 ConnectPort 563
FilterURLs On
Filter "$TINYPROXY_FILTER_FILE"
EOF EOF
touch $TINYPROXY_FILTER_FILE
} }
start_tinyproxy() { start_tinyproxy() {