2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

Merge branch 'tests-server-stale-prereq' into 'master'

Fix serve-stale requirement, skip without Time::HiRes

See merge request isc-projects/bind9!356
This commit is contained in:
Ondřej Surý
2018-06-14 10:36:14 -04:00

View File

@@ -9,6 +9,9 @@
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
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.74);' 2>/dev/null
@@ -29,3 +32,10 @@ else
echo "I:This test requires the Net::DNS::Nameserver library." >&2
exit 1
fi
if $PERL -e 'use Time::HiRes;' 2>/dev/null
then
:
else
echo "I:This test requires the Time::HiRes library." >&2
exit 1
fi