]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace selected setup.sh system test files
authorNicki Křížek <nicki@isc.org>
Fri, 4 Oct 2024 14:44:13 +0000 (16:44 +0200)
committerNicki Křížek <nicki@isc.org>
Tue, 15 Apr 2025 12:11:20 +0000 (14:11 +0200)
These setup.sh scripts only do templating and copying files. Both of
these can be replaced with either jinja templates, or using plain files.
Since each test invocation creates its own temporary directory, copying
files to ensure a "clean" state is no longer necessary.

In cases where named writes some content to the files, a jinja template
can be used instead of a plain file to avoid an artifact check which
would detect a change to a git-tracked file.

33 files changed:
bin/tests/system/case/ns1/dynamic.db [moved from bin/tests/system/case/ns1/dynamic.db.in with 100% similarity]
bin/tests/system/case/ns1/named.conf.j2 [moved from bin/tests/system/case/ns1/named.conf.in with 100% similarity]
bin/tests/system/case/ns2/named.conf.j2 [moved from bin/tests/system/case/ns2/named.conf.in with 100% similarity]
bin/tests/system/case/setup.sh [deleted file]
bin/tests/system/checkconf/bad-kasp-keydir1.conf.j2 [moved from bin/tests/system/checkconf/bad-kasp-keydir1.conf.in with 100% similarity]
bin/tests/system/checkconf/bad-kasp-keydir2.conf.j2 [moved from bin/tests/system/checkconf/bad-kasp-keydir2.conf.in with 100% similarity]
bin/tests/system/checkconf/bad-kasp-keydir3.conf.j2 [moved from bin/tests/system/checkconf/bad-kasp-keydir3.conf.in with 100% similarity]
bin/tests/system/checkconf/bad-kasp-keydir4.conf.j2 [moved from bin/tests/system/checkconf/bad-kasp-keydir4.conf.in with 100% similarity]
bin/tests/system/checkconf/bad-kasp-keydir5.conf.j2 [moved from bin/tests/system/checkconf/bad-kasp-keydir5.conf.in with 100% similarity]
bin/tests/system/checkconf/bad-tsig.conf.j2 [moved from bin/tests/system/checkconf/bad-tsig.conf.in with 100% similarity]
bin/tests/system/checkconf/good-server-christmas-tree.conf [moved from bin/tests/system/checkconf/good-server-christmas-tree.conf.in with 100% similarity]
bin/tests/system/checkconf/good.conf.j2 [moved from bin/tests/system/checkconf/good.conf.in with 100% similarity]
bin/tests/system/checkconf/setup.sh [deleted file]
bin/tests/system/checknames/ns1/fail.example.db [moved from bin/tests/system/checknames/ns1/fail.example.db.in with 100% similarity]
bin/tests/system/checknames/ns1/fail.update.db [moved from bin/tests/system/checknames/ns1/fail.update.db.in with 100% similarity]
bin/tests/system/checknames/ns1/ignore.example.db [moved from bin/tests/system/checknames/ns1/ignore.example.db.in with 100% similarity]
bin/tests/system/checknames/ns1/ignore.update.db [moved from bin/tests/system/checknames/ns1/ignore.update.db.in with 100% similarity]
bin/tests/system/checknames/ns1/named.conf.j2 [moved from bin/tests/system/checknames/ns1/named.conf.in with 100% similarity]
bin/tests/system/checknames/ns1/warn.example.db [moved from bin/tests/system/checknames/ns1/warn.example.db.in with 100% similarity]
bin/tests/system/checknames/ns1/warn.update.db [moved from bin/tests/system/checknames/ns1/warn.update.db.in with 100% similarity]
bin/tests/system/checknames/ns2/named.conf.j2 [moved from bin/tests/system/checknames/ns2/named.conf.in with 100% similarity]
bin/tests/system/checknames/ns3/named.conf.j2 [moved from bin/tests/system/checknames/ns3/named.conf.in with 100% similarity]
bin/tests/system/checknames/ns4/named.conf.j2 [moved from bin/tests/system/checknames/ns4/named.conf.in with 100% similarity]
bin/tests/system/checknames/ns4/primary-ignore.update.db [moved from bin/tests/system/checknames/ns4/primary-ignore.update.db.in with 100% similarity]
bin/tests/system/checknames/ns5/master-ignore.update.db [moved from bin/tests/system/checknames/ns5/master-ignore.update.db.in with 100% similarity]
bin/tests/system/checknames/ns5/named.conf.j2 [moved from bin/tests/system/checknames/ns5/named.conf.in with 100% similarity]
bin/tests/system/checknames/setup.sh [deleted file]
bin/tests/system/dnstap/ns1/named.conf.j2 [moved from bin/tests/system/dnstap/ns1/named.conf.in with 100% similarity]
bin/tests/system/dnstap/ns2/example.db.j2 [moved from bin/tests/system/dnstap/ns2/example.db.in with 100% similarity]
bin/tests/system/dnstap/ns2/named.conf.j2 [moved from bin/tests/system/dnstap/ns2/named.conf.in with 100% similarity]
bin/tests/system/dnstap/ns3/named.conf.j2 [moved from bin/tests/system/dnstap/ns3/named.conf.in with 100% similarity]
bin/tests/system/dnstap/ns4/named.conf.j2 [moved from bin/tests/system/dnstap/ns4/named.conf.in with 100% similarity]
bin/tests/system/dnstap/setup.sh [deleted file]

diff --git a/bin/tests/system/case/setup.sh b/bin/tests/system/case/setup.sh
deleted file mode 100644 (file)
index c9de4ee..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/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
-
-cp -f ns1/dynamic.db.in ns1/dynamic.db
-copy_setports ns1/named.conf.in ns1/named.conf
-copy_setports ns2/named.conf.in ns2/named.conf
diff --git a/bin/tests/system/checkconf/setup.sh b/bin/tests/system/checkconf/setup.sh
deleted file mode 100644 (file)
index 7770722..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/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
-
-copy_setports bad-kasp-keydir1.conf.in bad-kasp-keydir1.conf
-copy_setports bad-kasp-keydir2.conf.in bad-kasp-keydir2.conf
-copy_setports bad-kasp-keydir3.conf.in bad-kasp-keydir3.conf
-copy_setports bad-kasp-keydir4.conf.in bad-kasp-keydir4.conf
-copy_setports bad-kasp-keydir5.conf.in bad-kasp-keydir5.conf
-copy_setports bad-tsig.conf.in bad-tsig.conf
-copy_setports good.conf.in good.conf
-cp -f good-server-christmas-tree.conf.in good-server-christmas-tree.conf
diff --git a/bin/tests/system/checknames/setup.sh b/bin/tests/system/checknames/setup.sh
deleted file mode 100644 (file)
index 25f05ef..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/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
-
-copy_setports ns1/named.conf.in ns1/named.conf
-copy_setports ns2/named.conf.in ns2/named.conf
-copy_setports ns3/named.conf.in ns3/named.conf
-copy_setports ns4/named.conf.in ns4/named.conf
-copy_setports ns5/named.conf.in ns5/named.conf
-
-cp ns1/ignore.example.db.in ns1/ignore.example.db
-cp ns1/warn.example.db.in ns1/warn.example.db
-cp ns1/fail.example.db.in ns1/fail.example.db
-
-cp ns1/ignore.update.db.in ns1/ignore.update.db
-cp ns1/warn.update.db.in ns1/warn.update.db
-cp ns1/fail.update.db.in ns1/fail.update.db
-
-cp ns4/primary-ignore.update.db.in ns4/primary-ignore.update.db
-
-cp ns5/master-ignore.update.db.in ns5/master-ignore.update.db
diff --git a/bin/tests/system/dnstap/setup.sh b/bin/tests/system/dnstap/setup.sh
deleted file mode 100644 (file)
index 90a257e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/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
-
-copy_setports ns1/named.conf.in ns1/named.conf
-copy_setports ns2/named.conf.in ns2/named.conf
-copy_setports ns3/named.conf.in ns3/named.conf
-copy_setports ns4/named.conf.in ns4/named.conf
-
-cp ns2/example.db.in ns2/example.db