]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/runtests
3 PYTHON
=${PYTHON:-python2}
5 if [ ! -d .venv
]; then
6 virtualenv
-p ${PYTHON} .venv
11 pip
install -r requirements.txt
13 protoc
-I=..
/pdns
/ --python_out=. ..
/pdns
/dnsmessage.proto
17 [ -f .
/vars
] && . .
/vars
19 export PDNS
=${PDNS:-${PWD}/../pdns/pdns_server}
20 export PDNSUTIL
=${PDNSUTIL:-${PWD}/../pdns/pdnsutil}
21 export PDNSRECURSOR
=${PDNSRECURSOR:-${PWD}/../pdns/recursordist/pdns_recursor}
22 export RECCONTROL
=${RECCONTROL:-${PWD}/../pdns/recursordist/rec_control}
24 LIBFAKETIME_DEFAULT
=/usr
/lib
/x86_64-linux-gnu
/faketime
/libfaketime.so
.1 # ubuntu default
25 LIBAUTHBIND_DEFAULT
=/usr
/lib
/authbind
/libauthbind.so
.1
26 if [ $
(uname
-s) = "Darwin" ]; then
27 # macOS is not /really/ supported here; it works for some tests, and then you might need sudo.
28 LIBFAKETIME_DEFAULT
=/usr
/local
/lib
/faketime
/libfaketime
.1.dylib
29 LIBAUTHBIND_DEFAULT
=""
32 export LIBFAKETIME
=${LIBFAKETIME:-$LIBFAKETIME_DEFAULT}
33 export LIBAUTHBIND
=${LIBAUTHBIND:-$LIBAUTHBIND_DEFAULT}
37 for bin
in "$PDNS" "$PDNSUTIL" "$PDNSRECURSOR" "$RECCONTROL" "$LIBFAKETIME" "$LIBAUTHBIND"; do
38 if [ -n "$bin" -a ! -e "$bin" ]; then
39 echo "E: Required binary $bin not found. Please install the binary and/or edit ./vars."
45 if [ "${PDNS_DEBUG}" = "YES" ]; then
48 LD_PRELOAD
="${LIBASAN} ${LIBAUTHBIND} ${LIBFAKETIME}" nosetests
-I test_WellKnown.py
--with-xunit $@