]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Extend prerequisites for the "xfer" system test
authorMichał Kępień <michal@isc.org>
Tue, 30 Jul 2019 19:08:40 +0000 (21:08 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 30 Jul 2019 19:25:18 +0000 (21:25 +0200)
The Net::DNS Perl module needs the Digest::HMAC module to support TSIG.
However, since the latter is not a hard requirement for the former, some
packagers do not make Net::DNS depend on Digest::HMAC.  If Net::DNS is
installed on a host but Digest::HMAC is not, the "xfer" system test
breaks in a very hard-to-debug way (ans5 returns TSIG RRs with empty
RDATA, which prevents TSIG-signed SOA queries and transfers from
working).  Prevent this from happening by making the "xfer" system test
explicitly require Digest::HMAC apart from Net::DNS.

bin/tests/system/xfer/prereq.sh

index b8982d610c42229aaf656144e507705459f298c9..75cd53ad493d7d73375c78b9784ec029b49435a4 100644 (file)
@@ -25,3 +25,9 @@ else
     echo_i "This test requires the Net::DNS library." >&2
     exit 1
 fi
+
+if ! $PERL -e 'use Digest::HMAC;' 2>/dev/null
+then
+    echo_i "This test requires the Digest::HMAC Perl module." >&2
+    exit 1
+fi