summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtests/scripts/run_tests.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh
index d93b5ec..85bbd60 100755
--- a/tests/scripts/run_tests.sh
+++ b/tests/scripts/run_tests.sh
@@ -31,8 +31,9 @@ TINYPROXY_PID_DIR=$TESTENV_DIR/var/run/tinyproxy
TINYPROXY_PID_FILE=$TINYPROXY_PID_DIR/tinyproxy.pid
TINYPROXY_LOG_DIR=$LOG_DIR
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_FILTER_FILE=$TINYPROXY_CONF_DIR/filter
TINYPROXY_STDERR_LOG=$TINYPROXY_LOG_DIR/tinyproxy.stderr.log
TINYPROXY_BIN=$BASEDIR/src/tinyproxy
TINYPROXY_STATHOST_IP="127.0.0.127"
@@ -91,7 +92,11 @@ Allow 127.0.0.0/8
ViaProxyName "tinyproxy"
ConnectPort 443
ConnectPort 563
+FilterURLs On
+Filter "$TINYPROXY_FILTER_FILE"
EOF
+
+ touch $TINYPROXY_FILTER_FILE
}
start_tinyproxy() {