From: Curtis Blackburn Date: Thu, 7 Feb 2019 19:46:58 +0000 (-0800) Subject: added prereq.sh to forward test to detect perl Net::DNS X-Git-Tag: v9.12.4rc1~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe8e7ea94bbb31b2a0f72a43b15718842d05145;p=thirdparty%2Fbind9.git added prereq.sh to forward test to detect perl Net::DNS (cherry picked from commit 8c929bd7c5058a264076ed069efe6acc428c9a16) --- diff --git a/bin/tests/system/forward/prereq.sh b/bin/tests/system/forward/prereq.sh new file mode 100644 index 00000000000..0e299f4db8f --- /dev/null +++ b/bin/tests/system/forward/prereq.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Copyright (C) Internet Systems Consortium, Inc. ("ISC") +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# 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 + : +else + echo_i "This test requires the Net::DNS library." >&2 + exit 1 +fi diff --git a/util/copyrights b/util/copyrights index 354822edb80..51d7a7de352 100644 --- a/util/copyrights +++ b/util/copyrights @@ -1319,6 +1319,7 @@ ./bin/tests/system/forward/ns5/root.db ZONE 2011,2016,2018,2019 ./bin/tests/system/forward/ns7/named.conf.in CONF-C 2019 ./bin/tests/system/forward/ns7/root.db ZONE 2019 +./bin/tests/system/forward/prereq.sh SH 2019 ./bin/tests/system/forward/rfc1918-inherited.conf CONF-C 2016,2018,2019 ./bin/tests/system/forward/rfc1918-notinherited.conf CONF-C 2016,2018,2019 ./bin/tests/system/forward/setup.sh SH 2018,2019