]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use prereq.sh for digdelv, dnssec, forward system tests
authorTom Krizek <tkrizek@isc.org>
Mon, 4 Sep 2023 13:38:25 +0000 (15:38 +0200)
committerTom Krizek <tkrizek@isc.org>
Tue, 19 Sep 2023 12:47:48 +0000 (14:47 +0200)
bin/tests/system/Makefile.am
bin/tests/system/digdelv/prereq.sh [new file with mode: 0644]
bin/tests/system/dnssec/prereq.sh [new file with mode: 0644]
bin/tests/system/forward/prereq.sh [new file with mode: 0644]

index 817a7dc6f1b72f6a8cc5aa32130b11823543a547..b33e4b785e1d3c07b141612948262ec3316c09bc 100644 (file)
@@ -100,9 +100,11 @@ TESTS +=                   \
        cookie                  \
        database                \
        dialup                  \
+       digdelv                 \
        dispatch                \
        dlzexternal             \
        dns64                   \
+       dnssec                  \
        dnstap                  \
        doth                    \
        dsdigest                \
@@ -115,6 +117,7 @@ TESTS +=                    \
        filter-aaaa             \
        fetchlimit              \
        formerr                 \
+       forward                 \
        geoip2                  \
        glue                    \
        idna                    \
@@ -189,7 +192,6 @@ TESTS +=                    \
 
 if HAVE_PYMOD_DNS
 if HAVE_PERLMOD_NET_DNS
-TESTS += digdelv dnssec forward
 if HAVE_PERLMOD_NET_DNS_NAMESERVER
 TESTS += chain
 endif HAVE_PERLMOD_NET_DNS_NAMESERVER
diff --git a/bin/tests/system/digdelv/prereq.sh b/bin/tests/system/digdelv/prereq.sh
new file mode 100644 (file)
index 0000000..213178a
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+#
+# SPDX-License-Identifier: MPL-2.0
+#
+# 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 https://mozilla.org/MPL/2.0/.
+#
+# See the COPYRIGHT file distributed with this work for additional
+# information regarding copyright ownership.
+
+. ../conf.sh
+
+if ! ${PYTHON} -c 'import dns'
+then
+       echo_i "python dns module is required"
+       exit 1
+fi
+
+if ! ${PERL} -MNet::DNS -e ''
+then
+       echo_i "perl Net::DNS module is required"
+       exit 1
+fi
+
+exit 0
diff --git a/bin/tests/system/dnssec/prereq.sh b/bin/tests/system/dnssec/prereq.sh
new file mode 100644 (file)
index 0000000..213178a
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+#
+# SPDX-License-Identifier: MPL-2.0
+#
+# 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 https://mozilla.org/MPL/2.0/.
+#
+# See the COPYRIGHT file distributed with this work for additional
+# information regarding copyright ownership.
+
+. ../conf.sh
+
+if ! ${PYTHON} -c 'import dns'
+then
+       echo_i "python dns module is required"
+       exit 1
+fi
+
+if ! ${PERL} -MNet::DNS -e ''
+then
+       echo_i "perl Net::DNS module is required"
+       exit 1
+fi
+
+exit 0
diff --git a/bin/tests/system/forward/prereq.sh b/bin/tests/system/forward/prereq.sh
new file mode 100644 (file)
index 0000000..213178a
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+#
+# SPDX-License-Identifier: MPL-2.0
+#
+# 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 https://mozilla.org/MPL/2.0/.
+#
+# See the COPYRIGHT file distributed with this work for additional
+# information regarding copyright ownership.
+
+. ../conf.sh
+
+if ! ${PYTHON} -c 'import dns'
+then
+       echo_i "python dns module is required"
+       exit 1
+fi
+
+if ! ${PERL} -MNet::DNS -e ''
+then
+       echo_i "perl Net::DNS module is required"
+       exit 1
+fi
+
+exit 0