X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=debian%2Ftests%2Fprivoxy-regression-test;fp=debian%2Ftests%2Fprivoxy-regression-test;h=1c29fa06333df1b10146b4e7260b5a97f8d8f6c7;hp=eb068b70fdd494556a007a65610b05ab93a6a12d;hb=b6b6b5e5b273def1ab1e25b1d25884e27e6b429c;hpb=ab1954feed634fdbcf43ac5087615f9874fe06f2 diff --git a/debian/tests/privoxy-regression-test b/debian/tests/privoxy-regression-test index eb068b70..1c29fa06 100755 --- a/debian/tests/privoxy-regression-test +++ b/debian/tests/privoxy-regression-test @@ -3,7 +3,7 @@ # Run privoxy-regression-test.pl on a configuration extended by # regression-tests.action. # -# (c) 2018 Roland Rosenfeld +# (c) 2018-2021 Roland Rosenfeld PORT=8119 @@ -15,6 +15,8 @@ trap "rm -rf $AUTOPKGTEST_TMP" EXIT CONFIG=$AUTOPKGTEST_TMP/config PIDFILE=$AUTOPKGTEST_TMP/privoxy.pid +PRIVOXY=$AUTOPKGTEST_TMP/privoxy + sed -e "s/^listen-address.*/listen-address 127.0.0.1:$PORT/" \ -e "s%^logdir.*%logdir $AUTOPKGTEST_TMP%" \ -e "s/^enable-edit-actions.*/enable-edit-actions 1/" \ @@ -23,8 +25,10 @@ sed -e "s/^listen-address.*/listen-address 127.0.0.1:$PORT/" \ < /usr/share/privoxy/config > $CONFIG echo "actionsfile regression-tests.action" >> $CONFIG +cp /usr/sbin/privoxy $PRIVOXY + echo "Starting privoxy on port $PORT" -/usr/sbin/privoxy --pidfile $PIDFILE $CONFIG +$PRIVOXY --pidfile $PIDFILE $CONFIG http_proxy=http://127.0.0.1:$PORT/ export http_proxy