From: Petr Menšík Date: Tue, 5 Jun 2018 19:38:29 +0000 (+0200) Subject: Fix server-stale requirement, skip without Time::HiRes X-Git-Tag: v9.13.2~34^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7a0c7bf9c8e6a724e52635eed213ad25b9504e66;p=thirdparty%2Fbind9.git Fix server-stale requirement, skip without Time::HiRes --- diff --git a/bin/tests/system/serve-stale/prereq.sh b/bin/tests/system/serve-stale/prereq.sh index 9c60004aa27..7aad052ec3c 100644 --- a/bin/tests/system/serve-stale/prereq.sh +++ b/bin/tests/system/serve-stale/prereq.sh @@ -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