X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=regression-tests.recursor-dnssec%2Fruntests;h=12b6946e7e0cff4cc5ac6d37bf84d4391b8b011b;hb=1a37f439cee610f41a3f7ea0e9f53f3e4fe3ad7c;hp=600d681adf2351f37f9d6cb7949b6b7e4208febf;hpb=2b219e3704acdc344468b5835e31260f62c1914f;p=thirdparty%2Fpdns.git diff --git a/regression-tests.recursor-dnssec/runtests b/regression-tests.recursor-dnssec/runtests index 600d681adf..12b6946e7e 100755 --- a/regression-tests.recursor-dnssec/runtests +++ b/regression-tests.recursor-dnssec/runtests @@ -1,5 +1,7 @@ #!/bin/sh +export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python + if [ ! -d .venv ]; then python3 -m venv .venv fi @@ -21,7 +23,7 @@ export PDNSUTIL=${PDNSUTIL:-${PWD}/../pdns/pdnsutil} export PDNSRECURSOR=${PDNSRECURSOR:-${PWD}/../pdns/recursordist/pdns_recursor} export RECCONTROL=${RECCONTROL:-${PWD}/../pdns/recursordist/rec_control} -LIBFAKETIME_DEFAULT=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1 # ubuntu default +LIBFAKETIME_DEFAULT=/usr/lib/x86_64-linux-gnu/faketime/libfaketimeMT.so.1 # ubuntu default LIBAUTHBIND_DEFAULT=/usr/lib/authbind/libauthbind.so.1 if [ $(uname -s) = "Darwin" ]; then # macOS is not /really/ supported here; it works for some tests, and then you might need sudo. @@ -55,14 +57,9 @@ if ! "$PDNSRECURSOR" --version 2>&1 | grep Features | grep -q dnstap-framestream export NODNSTAPTESTS=1 fi -# libfstrm has a bad interaction with libfaketime on at least Ubuntu Focal. -# to run the test without LIBFAKETIME, we clear the var if it set to /bin/false -if [ "$LIBFAKETIME" = "/bin/false" ]; then - LIBFAKETIME="" -fi - -if [ "${LIBAUTHBIND}" != "" -o "${LIBFAKETIME}" != "" ]; then -LD_PRELOAD="${LIBASAN} ${LIBAUTHBIND} ${LIBFAKETIME}" nosetests -I test_WellKnown.py --with-xunit $@ +# LIBFAKETIME is only added to LD_PRELOAD by the pyton code when needed +if [ "${LIBASAN}" != "" -o "${LIBAUTHBIND}" != "" ]; then +LD_PRELOAD="${LIBASAN} ${LIBAUTHBIND}" pytest --ignore=test_WellKnown.py --junitxml=pytest.xml $@ else -nosetests -I test_WellKnown.py --with-xunit $@ +pytest --ignore=test_WellKnown.py --junitxml=pytest.xml $@ fi