#!/bin/sh

set -eu

if [ -n "$no_proxy" ]; then
	echo "no_proxy variable is set, skipping test"
	exit 0
fi

cd ${AUTOPKGTEST_TMP:-/tmp}
apt-get source auto-apt-proxy

grep auto-apt-proxy /var/log/apt-cacher-ng/apt-cacher.log
