]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
added prereq.sh to forward test to detect perl Net::DNS
authorCurtis Blackburn <ckb@isc.org>
Thu, 7 Feb 2019 19:46:58 +0000 (11:46 -0800)
committerMichał Kępień <michal@isc.org>
Fri, 8 Feb 2019 13:36:41 +0000 (14:36 +0100)
(cherry picked from commit 8c929bd7c5058a264076ed069efe6acc428c9a16)

bin/tests/system/forward/prereq.sh [new file with mode: 0644]
util/copyrights

diff --git a/bin/tests/system/forward/prereq.sh b/bin/tests/system/forward/prereq.sh
new file mode 100644 (file)
index 0000000..0e299f4
--- /dev/null
@@ -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
index 354822edb806d5888a0a7c1d7c35aa50fed60cb3..51d7a7de3525168fb058f33a1ff6cde7f92ac342 100644 (file)
 ./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