From bfe8e7ea94bbb31b2a0f72a43b15718842d05145 Mon Sep 17 00:00:00 2001 From: Curtis Blackburn Date: Thu, 7 Feb 2019 11:46:58 -0800 Subject: [PATCH] added prereq.sh to forward test to detect perl Net::DNS (cherry picked from commit 8c929bd7c5058a264076ed069efe6acc428c9a16) --- bin/tests/system/forward/prereq.sh | 21 +++++++++++++++++++++ util/copyrights | 1 + 2 files changed, 22 insertions(+) create mode 100644 bin/tests/system/forward/prereq.sh diff --git a/bin/tests/system/forward/prereq.sh b/bin/tests/system/forward/prereq.sh new file mode 100644 index 0000000000..0e299f4db8 --- /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 354822edb8..51d7a7de35 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 -- GitLab