X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=debian%2Ftests%2Fprivoxy-regression-test;h=eb068b70fdd494556a007a65610b05ab93a6a12d;hb=e42419cf1c414f431aea322e82964ecbe9e47138;hp=3122a1a6ccb87367fbe30e326515c65160d98b4e;hpb=307d9bf70dec6e98cf0403b95ead326611ad2f37;p=privoxy.git diff --git a/debian/tests/privoxy-regression-test b/debian/tests/privoxy-regression-test index 3122a1a6..eb068b70 100755 --- a/debian/tests/privoxy-regression-test +++ b/debian/tests/privoxy-regression-test @@ -3,18 +3,20 @@ # Run privoxy-regression-test.pl on a configuration extended by # regression-tests.action. # -# (c) 2016 Roland Rosenfeld +# (c) 2018 Roland Rosenfeld PORT=8119 -if [ -z "$ADTTMP" ]; then - ADTTMP=$(mktemp -d) +if [ -z "$AUTOPKGTEST_TMP" ]; then + AUTOPKGTEST_TMP=$(mktemp -d) fi -CONFIG=$ADTTMP/config -PIDFILE=$ADTTMP/privoxy.pid +trap "rm -rf $AUTOPKGTEST_TMP" EXIT + +CONFIG=$AUTOPKGTEST_TMP/config +PIDFILE=$AUTOPKGTEST_TMP/privoxy.pid sed -e "s/^listen-address.*/listen-address 127.0.0.1:$PORT/" \ - -e "s%^logdir.*%logdir $ADTTMP%" \ + -e "s%^logdir.*%logdir $AUTOPKGTEST_TMP%" \ -e "s/^enable-edit-actions.*/enable-edit-actions 1/" \ -e "s/^keep-alive-timeout.*/keep-alive-timeout 21/" \ -e "s/^#connection-sharing.*/connection-sharing 1/" \ @@ -27,7 +29,7 @@ echo "Starting privoxy on port $PORT" http_proxy=http://127.0.0.1:$PORT/ export http_proxy -OUTFILE=$ADTTMP/output +OUTFILE=$AUTOPKGTEST_TMP/output /usr/bin/privoxy-regression-test --max-level 200 --show-skipped-tests \ | tee $OUTFILE 2>&1