mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Replace selected setup.sh system test files
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. (cherry picked from commit e0f0c557a0b305a83967a0e75c9f955f410a2cc9)
This commit is contained in:
parent
209be9ee33
commit
bef30229fc
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user