]>
git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.recursor-dnssec/runtests
d570c5849729eb94c1ec96e36ebd46f37536d6d8
3 if [ ! -d .venv
]; then
8 pip
install -U pip |
cat
9 pip
install -r requirements.txt |
cat
11 protoc
-I=..
/pdns
/ --python_out=. ..
/pdns
/dnsmessage.proto
12 protoc
-I=..
/pdns
/ --python_out=. ..
/pdns
/dnstap.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
/libfaketimeMT.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
=""
31 if [ $
(uname
-s) = "OpenBSD" ]; then
32 # OpenBSD is not /really/ supported here; it works for some tests, and then you might need sudo.
33 LIBFAKETIME_DEFAULT
=""
34 LIBAUTHBIND_DEFAULT
=""
37 export LIBFAKETIME
=${LIBFAKETIME:-$LIBFAKETIME_DEFAULT}
38 export LIBAUTHBIND
=${LIBAUTHBIND:-$LIBAUTHBIND_DEFAULT}
42 for bin
in "$PDNS" "$PDNSUTIL" "$PDNSRECURSOR" "$RECCONTROL" "$LIBFAKETIME" "$LIBAUTHBIND"; do
43 if [ -n "$bin" -a ! -e "$bin" ]; then
44 echo "E: Required binary $bin not found. Please install the binary and/or edit ./vars."
50 if [ "${PDNS_DEBUG}" = "YES" ]; then
54 if ! "$PDNSRECURSOR" --version 2>&1 |
grep Features |
grep -q dnstap-framestream
; then
55 export NODNSTAPTESTS
=1
58 # LIBFAKETIME is only added to LD_PRELOAD by the pyton code when needed
59 if [ "${LIBASAN}" != "" -o "${LIBAUTHBIND}" != "" ]; then
60 LD_PRELOAD
="${LIBASAN} ${LIBAUTHBIND}" nosetests
-I test_WellKnown.py
--with-xunit $@
62 nosetests
-I test_WellKnown.py
--with-xunit $@