]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add a Net::DNS prereq for digdelv, fetchlimit, rpzrecurse, and zero
authorKevin Chen <kechen@akamai.com>
Wed, 28 Feb 2018 22:07:44 +0000 (17:07 -0500)
committerOndřej Surý <ondrej@sury.org>
Wed, 4 Apr 2018 20:23:14 +0000 (22:23 +0200)
tests to avoid failed tests when Net::DNS is not present.

bin/tests/system/digdelv/prereq.sh [new file with mode: 0644]
bin/tests/system/fetchlimit/prereq.sh [new file with mode: 0644]
bin/tests/system/rpzrecurse/prereq.sh
bin/tests/system/zero/prereq.sh [new file with mode: 0644]
util/copyrights

diff --git a/bin/tests/system/digdelv/prereq.sh b/bin/tests/system/digdelv/prereq.sh
new file mode 100644 (file)
index 0000000..de147a4
--- /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
diff --git a/bin/tests/system/fetchlimit/prereq.sh b/bin/tests/system/fetchlimit/prereq.sh
new file mode 100644 (file)
index 0000000..de147a4
--- /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 a0d4e9ce14a6ff075ee5504f626de329d4f21b69..f121b57411639941509087e3eef0177201f05b23 100644 (file)
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
-exec $SHELL ../testcrypto.sh
+$SHELL ../testcrypto.sh || exit 255
+
+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/bin/tests/system/zero/prereq.sh b/bin/tests/system/zero/prereq.sh
new file mode 100644 (file)
index 0000000..de147a4
--- /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 e32ce18611d2435e216aa6c38bece51c38c5e404..00479c0daff15f9c8d9ab7c46672bdb9159b8fc8 100644 (file)
 ./bin/tests/system/digdelv/ns2/example.db      ZONE    2015,2016,2018
 ./bin/tests/system/digdelv/ns2/named.conf.in   CONF-C  2015,2016,2018
 ./bin/tests/system/digdelv/ns3/named.conf.in   CONF-C  2015,2016,2017,2018
+./bin/tests/system/digdelv/prereq.sh           SH      2018
 ./bin/tests/system/digdelv/setup.sh            SH      2018
 ./bin/tests/system/digdelv/tests.sh            SH      2015,2016,2017,2018
 ./bin/tests/system/ditch.pl                    PERL    2015,2016,2018
 ./bin/tests/system/fetchlimit/ns3/named2.conf.in       CONF-C  2015,2016,2018
 ./bin/tests/system/fetchlimit/ns3/named3.conf.in       CONF-C  2015,2016,2018
 ./bin/tests/system/fetchlimit/ns3/root.hint    ZONE    2015,2016,2018
+./bin/tests/system/fetchlimit/prereq.sh                SH      2018
 ./bin/tests/system/fetchlimit/setup.sh         SH      2015,2016,2018
 ./bin/tests/system/fetchlimit/tests.sh         SH      2015,2016,2018
 ./bin/tests/system/filter-aaaa/.gitignore      X       2012,2014,2016,2018
 ./bin/tests/system/zero/ns3/root.hint          ZONE    2013,2016,2018
 ./bin/tests/system/zero/ns4/named.conf.in      CONF-C  2013,2016,2017,2018
 ./bin/tests/system/zero/ns4/one.tld.db         ZONE    2016,2018
+./bin/tests/system/zero/prereq.sh              SH      2018
 ./bin/tests/system/zero/setup.sh               SH      2013,2014,2016,2018
 ./bin/tests/system/zero/tests.sh               SH      2013,2016,2017,2018
 ./bin/tests/system/zonechecks/a.db             ZONE    2004,2007,2016,2018