]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.auth-py/runtests
4 readonly PYTHON
=${PYTHON:-python2}
6 if [ ! -d .venv
]; then
7 virtualenv
-p ${PYTHON} .venv
12 pip
install -q -r requirements.txt
16 [ -f .
/vars
] && . .
/vars
18 export PDNS
=${PDNS:-${PWD}/../pdns/pdns_server}
19 export PDNSUTIL
=${PDNSUTIL:-${PWD}/../pdns/pdnsutil}
23 readonly GEOIP_TESTS_DIR
=..
/modules
/geoipbackend
/regression-tests
24 if [ ! -f ${GEOIP_TESTS_DIR}/GeoLiteCity.mmdb
] ; then
25 base64
-d ${GEOIP_TESTS_DIR}/GeoLiteCity.mmdb.b64
> ${GEOIP_TESTS_DIR}/GeoLiteCity.mmdb
28 for bin
in "$PDNS" "$PDNSUTIL"; do
29 if [ -n "$bin" -a ! -e "$bin" ]; then
30 echo "E: Required binary $bin not found. Please install the binary and/or edit ./vars."
36 if [ "${PDNS_DEBUG}" = "YES" ]; then
40 nosetests
--with-xunit $@