From: Otto Moerbeek Date: Wed, 23 Feb 2022 10:29:01 +0000 (+0100) Subject: Create a rec specific example.com test zone as rec does not know ALIAS now X-Git-Tag: rec-4.7.0-alpha1~3^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11349%2Fhead;p=thirdparty%2Fpdns.git Create a rec specific example.com test zone as rec does not know ALIAS now --- diff --git a/regression-tests.api/runtests b/regression-tests.api/runtests index f21ddc9b7b..46bddcbbf2 100755 --- a/regression-tests.api/runtests +++ b/regression-tests.api/runtests @@ -16,4 +16,8 @@ set -e if [ "${PDNS_DEBUG}" = "YES" ]; then set -x fi +if [ "$1" = "recursor" ]; then + # Create a rec-specific test zone, as rec does not know ALIAS + fgrep -v ALIAS ../regression-tests/zones/example.com > ../regression-tests/zones/example.com.rec +fi exec ./runtests.py "$@" diff --git a/regression-tests.api/runtests.py b/regression-tests.api/runtests.py index 92587bb513..645628fe94 100755 --- a/regression-tests.api/runtests.py +++ b/regression-tests.api/runtests.py @@ -97,7 +97,7 @@ ACL_NOTIFY_LIST_TPL = """ REC_EXAMPLE_COM_CONF_TPL = """ # Generated by runtests.py -auth-zones+=example.com=../regression-tests/zones/example.com +auth-zones+=example.com=../regression-tests/zones/example.com.rec """ REC_CONF_TPL = """ diff --git a/regression-tests/zones/.gitignore b/regression-tests/zones/.gitignore index a9b5df69cb..005d1fd805 100644 --- a/regression-tests/zones/.gitignore +++ b/regression-tests/zones/.gitignore @@ -12,3 +12,4 @@ /ixfr-slave.db /ixfr-slave.state /nsd-slave.db +/example.com.rec