3 # Run privoxy-regression-test.pl on a configuration extended by
4 # regression-tests.action.
6 # (c) 2016 Roland Rosenfeld <roland@debian.org>
10 if [ -z "$ADTTMP" ]; then
15 PIDFILE=$ADTTMP/privoxy.pid
16 sed -e "s/^listen-address.*/listen-address 127.0.0.1:$PORT/" \
17 -e "s%^logdir.*%logdir $ADTTMP%" \
18 -e "s/^enable-edit-actions.*/enable-edit-actions 1/" \
19 -e "s/^keep-alive-timeout.*/keep-alive-timeout 21/" \
20 -e "s/^#connection-sharing.*/connection-sharing 1/" \
21 < /usr/share/privoxy/config > $CONFIG
22 echo "actionsfile regression-tests.action" >> $CONFIG
24 echo "Starting privoxy on port $PORT"
25 /usr/sbin/privoxy --pidfile $PIDFILE $CONFIG
27 http_proxy=http://127.0.0.1:$PORT/
30 OUTFILE=$ADTTMP/output
32 /usr/bin/privoxy-regression-test --max-level 200 --show-skipped-tests \
35 echo "Stopping privoxy on port $PORT"
38 if grep -q 'Executed.*, 0 failures.' $OUTFILE