]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix server-stale requirement, skip without Time::HiRes
authorPetr Menšík <pemensik@redhat.com>
Tue, 5 Jun 2018 19:38:29 +0000 (21:38 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 14 Jun 2018 14:26:54 +0000 (10:26 -0400)
bin/tests/system/serve-stale/prereq.sh

index 9c60004aa277ff607a5c34589671d2eeb922d71e..7aad052ec3cb98b6c370d20f4d63234a1fc24dba 100644 (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