3880. [test] Update ans.pl to work with new TSIG support in

Net::DNS; add additional Net::DNS version prerequisite
                        checks. [RT #36327]
This commit is contained in:
Mark Andrews
2014-06-17 10:35:46 +10:00
parent bd7996b047
commit a0d411c05f
5 changed files with 83 additions and 21 deletions

View File

@@ -17,4 +17,18 @@
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
if $PERL -e 'use Net::DNS;' 2>/dev/null
then
if $PERL -e 'use Net::DNS; die if ($Net::DNS::VERSION >= 0.69 && $Net::DNS::VERSION <= 0.70);' 2>/dev/null
then
:
else
echo "I:Net::DNS versions 0.69 to 0.70 have bugs that cause this test to fail: please update." >&2
exit 1
fi
else
echo "I:This test requires the Net::DNS library." >&2
exit 1
fi
exec $SHELL ../testcrypto.sh