]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/runtests
Merge branch 'validate-hostname' of https://github.com/hlindqvist/pdns into hlindqvis...
[thirdparty/pdns.git] / regression-tests.recursor-dnssec / runtests
1 #!/bin/sh
2
3 PYTHON=${PYTHON:-python2}
4
5 if [ ! -d .venv ]; then
6 virtualenv -p ${PYTHON} .venv
7 fi
8 . .venv/bin/activate
9 python -V
10 pip install -r requirements.txt
11
12 mkdir -p configs
13
14 [ -f ./vars ] && . ./vars
15
16 export PDNS=${PDNS:-${PWD}/../pdns/pdns_server}
17 export PDNSUTIL=${PDNSUTIL:-${PWD}/../pdns/pdnsutil}
18 export PDNSRECURSOR=${PDNSRECURSOR:-${PWD}/../pdns/recursordist/pdns_recursor}
19 export RECCONTROL=${RECCONTROL:-${PWD}/../pdns/recursordist/rec_control}
20 export LIBFAKETIME=${LIBFAKETIME:-/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1} # ubuntu default
21
22 export PREFIX=127.0.0
23
24
25 set -e
26 if [ "${PDNS_DEBUG}" = "YES" ]; then
27 set -x
28 fi
29 LD_PRELOAD="/usr/lib/authbind/libauthbind.so.1 ${LIBFAKETIME}" nosetests -I test_WellKnown.py --with-xunit $@