]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use prereq.sh for qmin, cookie system tests
authorTom Krizek <tkrizek@isc.org>
Mon, 4 Sep 2023 13:34:05 +0000 (15:34 +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/cookie/.gitignore [deleted file]
bin/tests/system/cookie/prereq.sh [new file with mode: 0644]
bin/tests/system/qmin/prereq.sh [new file with mode: 0644]

index af2c9f0ce97e515205fc9ae29ddaf8a1e71e03e2..817a7dc6f1b72f6a8cc5aa32130b11823543a547 100644 (file)
@@ -97,6 +97,7 @@ TESTS +=                      \
        checkds                 \
        checknames              \
        checkzone               \
+       cookie                  \
        database                \
        dialup                  \
        dispatch                \
@@ -145,6 +146,7 @@ TESTS +=                    \
        padding                 \
        pending                 \
        pipelined               \
+       qmin                    \
        reclimit                \
        redirect                \
        resolver                \
@@ -186,7 +188,6 @@ TESTS +=                    \
        zonechecks
 
 if HAVE_PYMOD_DNS
-TESTS += qmin cookie
 if HAVE_PERLMOD_NET_DNS
 TESTS += digdelv dnssec forward
 if HAVE_PERLMOD_NET_DNS_NAMESERVER
diff --git a/bin/tests/system/cookie/.gitignore b/bin/tests/system/cookie/.gitignore
deleted file mode 100644 (file)
index eee491d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-prereq.sh
diff --git a/bin/tests/system/cookie/prereq.sh b/bin/tests/system/cookie/prereq.sh
new file mode 100644 (file)
index 0000000..a48d383
--- /dev/null
@@ -0,0 +1,22 @@
+#!/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
+
+exit 0
diff --git a/bin/tests/system/qmin/prereq.sh b/bin/tests/system/qmin/prereq.sh
new file mode 100644 (file)
index 0000000..a48d383
--- /dev/null
@@ -0,0 +1,22 @@
+#!/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
+
+exit 0