]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace clean.sh files with extra_artifacts mark
authorNicki Křížek <nicki@isc.org>
Mon, 19 Aug 2024 16:54:13 +0000 (18:54 +0200)
committerNicki Křížek <nicki@isc.org>
Fri, 8 Nov 2024 09:54:24 +0000 (10:54 +0100)
The artifact lists in clean.sh and extra_artifacts might be slightly
different. The list was updated for each test to reflect the current
state.

231 files changed:
bin/tests/system/acl/clean.sh [deleted file]
bin/tests/system/acl/tests_sh_acl.py
bin/tests/system/additional/clean.sh [deleted file]
bin/tests/system/additional/tests_sh_additional.py
bin/tests/system/addzone/clean.sh [deleted file]
bin/tests/system/addzone/tests_rndc_deadlock.py
bin/tests/system/addzone/tests_sh_addzone.py
bin/tests/system/allow-query/clean.sh [deleted file]
bin/tests/system/allow-query/tests_sh_allow_query.py
bin/tests/system/auth/clean.sh [deleted file]
bin/tests/system/auth/tests_sh_auth.py
bin/tests/system/autosign/clean.sh [deleted file]
bin/tests/system/autosign/tests_sh_autosign.py
bin/tests/system/builtin/clean.sh [deleted file]
bin/tests/system/builtin/tests_sh_builtin.py
bin/tests/system/cacheclean/clean.sh [deleted file]
bin/tests/system/cacheclean/tests_sh_cacheclean.py
bin/tests/system/case/clean.sh [deleted file]
bin/tests/system/case/tests_sh_case.py
bin/tests/system/catz/clean.sh [deleted file]
bin/tests/system/catz/tests_sh_catz.py
bin/tests/system/cds/clean.sh [deleted file]
bin/tests/system/cds/tests_sh_cds.py
bin/tests/system/chain/clean.sh [deleted file]
bin/tests/system/chain/tests_sh_chain.py
bin/tests/system/checkconf/clean.sh [deleted file]
bin/tests/system/checkconf/tests_sh_checkconf.py
bin/tests/system/checkds/clean.sh [deleted file]
bin/tests/system/checkds/tests_checkds.py
bin/tests/system/checknames/clean.sh [deleted file]
bin/tests/system/checknames/tests_sh_checknames.py
bin/tests/system/checkzone/clean.sh [deleted file]
bin/tests/system/checkzone/tests_sh_checkzone.py
bin/tests/system/cipher-suites/clean.sh [deleted file]
bin/tests/system/cipher-suites/tests_sh_cipher_suites.py
bin/tests/system/cookie/clean.sh [deleted file]
bin/tests/system/cookie/tests_sh_cookie.py
bin/tests/system/cpu/clean.sh [deleted file]
bin/tests/system/cpu/tests_sh_cpu.py
bin/tests/system/database/clean.sh [deleted file]
bin/tests/system/database/tests_sh_database.py
bin/tests/system/digdelv/clean.sh [deleted file]
bin/tests/system/digdelv/tests_sh_digdelv.py
bin/tests/system/dispatch/clean.sh [deleted file]
bin/tests/system/dispatch/tests_connreset.py
bin/tests/system/dlzexternal/clean.sh [deleted file]
bin/tests/system/dlzexternal/tests_sh_dlzexternal.py
bin/tests/system/dns64/clean.sh [deleted file]
bin/tests/system/dns64/tests_sh_dns64.py
bin/tests/system/dnssec/clean.sh [deleted file]
bin/tests/system/dnssec/tests_sh_dnssec.py
bin/tests/system/dnstap/clean.sh [deleted file]
bin/tests/system/dnstap/tests_dnstap.py
bin/tests/system/dnstap/tests_sh_dnstap.py
bin/tests/system/doth/clean.sh [deleted file]
bin/tests/system/doth/tests_gnutls.py
bin/tests/system/doth/tests_sh_doth.py
bin/tests/system/doth/tests_sslyze.py
bin/tests/system/dsdigest/clean.sh [deleted file]
bin/tests/system/dsdigest/tests_dsdigest.py
bin/tests/system/dyndb/clean.sh [deleted file]
bin/tests/system/dyndb/tests_sh_dyndb.py
bin/tests/system/ecdsa/clean.sh [deleted file]
bin/tests/system/ecdsa/tests_sh_ecdsa.py
bin/tests/system/eddsa/clean.sh [deleted file]
bin/tests/system/eddsa/tests_sh_eddsa.py
bin/tests/system/ednscompliance/clean.sh [deleted file]
bin/tests/system/ednscompliance/tests_sh_ednscompliance.py
bin/tests/system/emptyzones/clean.sh [deleted file]
bin/tests/system/emptyzones/tests_sh_emptyzones.py
bin/tests/system/enginepkcs11/clean.sh [deleted file]
bin/tests/system/enginepkcs11/setup.sh
bin/tests/system/enginepkcs11/tests_sh_enginepkcs11.py
bin/tests/system/fetchlimit/clean.sh [deleted file]
bin/tests/system/fetchlimit/tests_sh_fetchlimit.py
bin/tests/system/filter-aaaa/clean.sh [deleted file]
bin/tests/system/filter-aaaa/tests_sh_filter_aaaa.py
bin/tests/system/formerr/clean.sh [deleted file]
bin/tests/system/formerr/tests_sh_formerr.py
bin/tests/system/forward/clean.sh [deleted file]
bin/tests/system/forward/tests_sh_forward.py
bin/tests/system/geoip2/clean.sh [deleted file]
bin/tests/system/geoip2/tests_sh_geoip2.py
bin/tests/system/glue/clean.sh [deleted file]
bin/tests/system/glue/tests_glue.py
bin/tests/system/hooks/clean.sh [deleted file]
bin/tests/system/host/clean.sh [deleted file]
bin/tests/system/host/setup.sh
bin/tests/system/host/tests_sh_host.py
bin/tests/system/idna/clean.sh [deleted file]
bin/tests/system/idna/tests_sh_idna.py
bin/tests/system/include-multiplecfg/clean.sh [deleted file]
bin/tests/system/inline/clean.sh [deleted file]
bin/tests/system/inline/tests_sh_inline.py
bin/tests/system/inline/tests_signed_zone_files.py
bin/tests/system/integrity/clean.sh [deleted file]
bin/tests/system/integrity/tests_sh_integrity.py
bin/tests/system/ixfr/clean.sh [deleted file]
bin/tests/system/ixfr/tests_sh_ixfr.py
bin/tests/system/journal/clean.sh [deleted file]
bin/tests/system/journal/tests_sh_journal.py
bin/tests/system/kasp/clean.sh [deleted file]
bin/tests/system/kasp/tests_sh_kasp.py
bin/tests/system/keepalive/clean.sh [deleted file]
bin/tests/system/keepalive/tests_sh_keepalive.py
bin/tests/system/keyfromlabel/clean.sh [deleted file]
bin/tests/system/keyfromlabel/tests_sh_keyfromlabel.py
bin/tests/system/ksr/tests_ksr.py
bin/tests/system/legacy/clean.sh [deleted file]
bin/tests/system/legacy/tests_sh_legacy.py
bin/tests/system/limits/clean.sh [deleted file]
bin/tests/system/logfileconfig/clean.sh [deleted file]
bin/tests/system/logfileconfig/tests_sh_logfileconfig.py
bin/tests/system/masterfile/clean.sh [deleted file]
bin/tests/system/masterformat/clean.sh [deleted file]
bin/tests/system/masterformat/tests_sh_masterformat.py
bin/tests/system/metadata/clean.sh [deleted file]
bin/tests/system/metadata/tests_sh_metadata.py
bin/tests/system/mirror/clean.sh [deleted file]
bin/tests/system/mirror/tests_sh_mirror.py
bin/tests/system/mkeys/clean.sh [deleted file]
bin/tests/system/mkeys/tests_sh_mkeys.py
bin/tests/system/multisigner/clean.sh [deleted file]
bin/tests/system/multisigner/setup.sh
bin/tests/system/multisigner/tests_sh_multisigner.py
bin/tests/system/names/clean.sh [deleted file]
bin/tests/system/names/tests_sh_names.py
bin/tests/system/notify/clean.sh [deleted file]
bin/tests/system/notify/tests_sh_notify.py
bin/tests/system/nsec3/clean.sh [deleted file]
bin/tests/system/nsec3/tests_sh_nsec3.py
bin/tests/system/nslookup/clean.sh [deleted file]
bin/tests/system/nslookup/tests_sh_nslookup.py
bin/tests/system/nsupdate/clean.sh [deleted file]
bin/tests/system/nsupdate/tests_sh_nsupdate.py
bin/tests/system/nzd2nzf/clean.sh [deleted file]
bin/tests/system/nzd2nzf/tests_sh_nzd2nzf.py
bin/tests/system/padding/clean.sh [deleted file]
bin/tests/system/padding/tests_sh_padding.py
bin/tests/system/pending/clean.sh [deleted file]
bin/tests/system/pending/tests_sh_pending.py
bin/tests/system/pipelined/clean.sh [deleted file]
bin/tests/system/pipelined/tests_sh_pipelined.py
bin/tests/system/proxy/clean.sh [deleted file]
bin/tests/system/proxy/tests_sh_proxy.py
bin/tests/system/qmin/clean.sh [deleted file]
bin/tests/system/qmin/tests_sh_qmin.py
bin/tests/system/reclimit/clean.sh [deleted file]
bin/tests/system/reclimit/tests_sh_reclimit.py
bin/tests/system/redirect/clean.sh [deleted file]
bin/tests/system/redirect/tests_sh_redirect.py
bin/tests/system/resolver/clean.sh [deleted file]
bin/tests/system/resolver/tests_sh_resolver.py
bin/tests/system/rndc/clean.sh [deleted file]
bin/tests/system/rndc/tests_cve-2023-3341.py
bin/tests/system/rndc/tests_sh_rndc.py
bin/tests/system/rootkeysentinel/clean.sh [deleted file]
bin/tests/system/rootkeysentinel/tests_sh_rootkeysentinel.py
bin/tests/system/rpz/clean.sh [deleted file]
bin/tests/system/rpz/tests_sh_rpz.py
bin/tests/system/rpzextra/clean.sh [deleted file]
bin/tests/system/rpzextra/tests_rpzextra.py
bin/tests/system/rpzrecurse/clean.sh [deleted file]
bin/tests/system/rpzrecurse/tests_sh_rpzrecurse.py
bin/tests/system/rrchecker/tests_rrchecker.py
bin/tests/system/rrl/clean.sh [deleted file]
bin/tests/system/rrl/tests_sh_rrl.py
bin/tests/system/rrsetorder/clean.sh [deleted file]
bin/tests/system/rrsetorder/tests_sh_rrsetorder.py
bin/tests/system/rsabigexponent/clean.sh [deleted file]
bin/tests/system/rsabigexponent/tests_rsabigexponent.py
bin/tests/system/runtime/clean.sh [deleted file]
bin/tests/system/runtime/tests_sh_runtime.py
bin/tests/system/serve-stale/clean.sh [deleted file]
bin/tests/system/serve-stale/tests_sh_serve_stale.py
bin/tests/system/sfcache/clean.sh [deleted file]
bin/tests/system/sfcache/tests_sh_sfcache.py
bin/tests/system/shutdown/clean.sh [deleted file]
bin/tests/system/shutdown/tests_shutdown.py
bin/tests/system/smartsign/clean.sh [deleted file]
bin/tests/system/smartsign/tests_sh_smartsign.py
bin/tests/system/sortlist/clean.sh [deleted file]
bin/tests/system/spf/clean.sh [deleted file]
bin/tests/system/staticstub/clean.sh [deleted file]
bin/tests/system/staticstub/tests_sh_staticstub.py
bin/tests/system/statistics/clean.sh [deleted file]
bin/tests/system/statistics/tests_sh_statistics.py
bin/tests/system/statschannel/clean.sh [deleted file]
bin/tests/system/statschannel/tests_json.py
bin/tests/system/statschannel/tests_sh_statschannel.py
bin/tests/system/statschannel/tests_xml.py
bin/tests/system/stress/clean.sh [deleted file]
bin/tests/system/stress/tests_stress_update.py
bin/tests/system/stub/clean.sh [deleted file]
bin/tests/system/stub/tests_sh_stub.py
bin/tests/system/synthfromdnssec/clean.sh [deleted file]
bin/tests/system/synthfromdnssec/tests_sh_synthfromdnssec.py
bin/tests/system/tcp/clean.sh [deleted file]
bin/tests/system/tcp/tests_sh_tcp.py
bin/tests/system/tcp/tests_tcp.py
bin/tests/system/timeouts/clean.sh [deleted file]
bin/tests/system/timeouts/tests_tcp_timeouts.py
bin/tests/system/transport-acl/clean.sh [deleted file]
bin/tests/system/transport-acl/tests_sh_transport_acl.py
bin/tests/system/transport-change/clean.sh [deleted file]
bin/tests/system/transport-change/tests_sh_transport_change.py
bin/tests/system/tsig/clean.sh [deleted file]
bin/tests/system/tsig/tests_badtime.py
bin/tests/system/tsig/tests_sh_tsig.py
bin/tests/system/tsiggss/clean.sh [deleted file]
bin/tests/system/tsiggss/tests_isc_spnego_flaws.py
bin/tests/system/tsiggss/tests_sh_tsiggss.py
bin/tests/system/ttl/clean.sh [deleted file]
bin/tests/system/unknown/clean.sh [deleted file]
bin/tests/system/unknown/tests_sh_unknown.py
bin/tests/system/upforwd/clean.sh [deleted file]
bin/tests/system/upforwd/tests_sh_upforwd.py
bin/tests/system/verify/tests_verify.py
bin/tests/system/views/clean.sh [deleted file]
bin/tests/system/views/tests_sh_views.py
bin/tests/system/wildcard/clean.sh [deleted file]
bin/tests/system/wildcard/tests_sh_wildcard.py
bin/tests/system/wildcard/tests_wildcard.py
bin/tests/system/xfer/clean.sh [deleted file]
bin/tests/system/xfer/tests_sh_xfer.py
bin/tests/system/xferquota/clean.sh [deleted file]
bin/tests/system/xferquota/tests_xferquota.py
bin/tests/system/zero/clean.sh [deleted file]
bin/tests/system/zero/tests_sh_zero.py
bin/tests/system/zonechecks/clean.sh [deleted file]
bin/tests/system/zonechecks/tests_sh_zonechecks.py

diff --git a/bin/tests/system/acl/clean.sh b/bin/tests/system/acl/clean.sh
deleted file mode 100644 (file)
index 3bbdabc..0000000
+++ /dev/null
@@ -1,25 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f dig.out.*
-rm -f ns2/example.db ns2/tsigzone.db ns2/example.db.jnl
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f ns*/_default.nzf
-rm -f ns*/_default.nzd*
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index 2c98644e0150dc61ef67af90eea6cb1ee242ff27..9a6bc91e39275eb225db9cd306c43663b6c87fee 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out*",
+        "ns*/_default.nzd*",
+        "ns*/_default.nzf*",
+        "ns2/example.db",
+        "ns2/tsigzone.db",
+    ]
+)
+
 
 def test_acl(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/additional/clean.sh b/bin/tests/system/additional/clean.sh
deleted file mode 100644 (file)
index b230bf2..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.
-
-#
-# Clean up after tests.
-#
-
-rm -f dig.out.*
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
index cdc38f4d81fb18e613d3848439ff401bc02a41a6..b467f801eee13cd65b51e38a345b57bace806d46 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+    ]
+)
+
 
 def test_additional(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/addzone/clean.sh b/bin/tests/system/addzone/clean.sh
deleted file mode 100644 (file)
index 57056cc..0000000
+++ /dev/null
@@ -1,43 +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.
-
-rm -f ./dig.out.*
-rm -f ./rndc.out*
-rm -f ./showzone.out*
-rm -f ./zonestatus.out*
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./ns1/*.nzf ./ns1/*.nzf~
-rm -f ./ns1/*.nzd ./ns1/*.nzd-lock
-rm -f ./ns2/*.nzf ./ns2/*.nzf~
-rm -f ./ns2/*.nzd ./ns2/*.nzd-lock
-rm -f ./ns3/*.nzf ./ns3/*.nzf~
-rm -f ./ns3/*.nzd ./ns3/*.nzd-lock
-rm -f ./ns2/core*
-rm -f ./ns2/inline.db.jbk
-rm -f ./ns2/inline.db.signed
-rm -f ./ns2/inlinesec.bk*
-rm -rf ./ns2/new-zones
-rm -f ./ns*/named.run ./ns*/named.run.prev
-rm -f ./ns2/nzf-*
-rm -f ./ns3/named.conf
-rm -f ./ns3/*.nzf ./ns3/*.nzf~
-rm -f ./ns3/*.nzd ns3/*.nzd-lock
-rm -f ./ns3/inlinesec.db
-rm -f ./ns1/redirect.db
-rm -f ./ns2/redirect.db
-rm -f ./ns2/redirect.bk
-rm -f ./ns3/redirect.db
-rm -f ./ns*/managed-keys.bind* ns*/*.mkeys*
-rm -f ./nzd2nzf.out.*
-rm -f ./wait_for_message.*
index 78fa11a095af73a314f6710b64af691315be7dd5..3b987d39120ce808d44878f5d4444cfe95d9a700 100755 (executable)
 import concurrent.futures
 import time
 
+import pytest
+
 import isctest
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns*/*.nzf*",
+        "ns*/*.nzd*",
+        "ns1/redirect.db",
+        "ns2/new-zones",
+        "ns2/redirect.db",
+        "ns3/redirect.db",
+    ]
+)
+
 
 def rndc_loop(test_state, domain, ns3):
     """
index dca8e7415cb6556848cd4f12aa8fcf00494018dc..4ca4440c04608b167db2b9ce644a6c8680f0eb88 100644 (file)
@@ -9,6 +9,35 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out*",
+        "showzone.out.*",
+        "zonestatus.out.*",
+        "ns*/*.nzd*",
+        "ns*/*.nzf*",
+        "ns1/redirect.db",
+        "nzd2nzf.out.*",
+        "ns2/*.nzf~",
+        "ns2/K*.key",
+        "ns2/K*.private",
+        "ns2/K*.state",
+        "ns2/external.nzd",
+        "ns2/extra.nzd",
+        "ns2/inline.db.jbk",
+        "ns2/inline.db.signed",
+        "ns2/inline.db.signed.jnl",
+        "ns2/inlinesec.bk.jbk",
+        "ns2/new-zones",
+        "ns2/redirect.bk",
+        "ns2/redirect.db",
+        "ns3/redirect.db",
+    ]
+)
+
 
 def test_addzone(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/allow-query/clean.sh b/bin/tests/system/allow-query/clean.sh
deleted file mode 100644 (file)
index c12009e..0000000
+++ /dev/null
@@ -1,23 +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.
-
-#
-# Clean up after allow query tests.
-#
-
-rm -f dig.out.*
-rm -f ns*/named.conf
-rm -f ns2/controls.conf
-rm -f */named.memstats
-rm -f ns*/named.run ns*/named.run.prev
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index 7b22ee2899f30404fb4d5466243c2914a34b0cae..0a17c7eea5fccf99b23d452948454b624b2a2925 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns2/controls.conf",
+    ]
+)
+
 
 def test_allow_query(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/auth/clean.sh b/bin/tests/system/auth/clean.sh
deleted file mode 100644 (file)
index 56a99a5..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.
-
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.run.prev
-rm -f dig.out.test*
-rm -f ns*/managed-keys.bind* ns*/*mkeys*
-rm -f ns2/example.com.bk
-rm -f ns2/example.net.bk
index 97233fa27d53eb74d809e4bb0ac124d5d5dacb3f..3340bcbfe6fff07d1b8adc66a611a7b8ec631aac 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.test*",
+        "ns*/example.*.bk",
+    ]
+)
+
 
 def test_auth(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/autosign/clean.sh b/bin/tests/system/autosign/clean.sh
deleted file mode 100644 (file)
index a97d5f0..0000000
+++ /dev/null
@@ -1,76 +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.
-
-rm -f ./dsset-*
-rm -f */K* */dsset-* */*.signed */tmp* */*.jnl */*.bk
-rm -f */core
-rm -f */example.bk
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run*
-rm -f */trusted.conf */private.conf
-rm -f dig.out.*
-rm -f digcomp.out.test*
-rm -f activate-now-publish-1day.key prepub.key
-rm -f active.key inact.key del.key delzsk.key unpub.key standby.key rev.key
-rm -f delayksk.key delayzsk.key autoksk.key autozsk.key
-rm -f noksk-ksk.key nozsk-ksk.key nozsk-zsk.key inaczsk-zsk.key inaczsk-ksk.key
-rm -f nopriv.key vanishing.key del1.key del2.key
-rm -rf ns*/inactive
-rm -f ns*/managed-keys.bind*
-rm -f ns1/root.db ns1/root.db.1 ns1/root.db.2 ns1/root.db.3
-rm -f ns1/signing.out
-rm -f ns2/bar.db
-rm -f ns2/child.nsec3.example.db
-rm -f ns2/child.optout.example.db
-rm -f ns2/example.db
-rm -f ns2/insecure.secure.example.db
-rm -f ns2/nsec3-with-ent.db
-rm -f ns2/private.secure.example.db
-rm -f ns2/signing.*
-rm -f ns3/*.nzd ns3/*.nzd-lock ns3/*.nzf
-rm -f ns3/*.nzf
-rm -f ns3/*.jbk
-rm -f ns3/autonsec3.example.db
-rm -f ns3/delay.example.db ns3/delay.example.1 ns3/delay.example.2
-rm -f ns3/delzsk.example.db
-rm -f ns3/dname-at-apex-nsec3.example.db
-rm -f ns3/inaczsk2.example.db
-rm -f ns3/jitter.nsec3.example.db
-rm -f ns3/kg.out ns3/s.out ns3/st.out
-rm -f ns3/kskonly.example.db
-rm -f ns3/named.ns3.prev
-rm -f ns3/noksk.example.db
-rm -f ns3/nozsk.example.db ns3/inaczsk.example.db
-rm -f ns3/nsec-only.example.db
-rm -f ns3/nsec3-to-nsec.example.db
-rm -f ns3/nsec3.example.db
-rm -f ns3/nsec3.nsec3.example.db
-rm -f ns3/nsec3.optout.example.db
-rm -f ns3/oldsigs.example.db ns3/oldsigs.example.db.bak
-rm -f ns3/optout.example.db
-rm -f ns3/optout.nsec3.example.db
-rm -f ns3/optout.optout.example.db
-rm -f ns3/prepub.example.db
-rm -f ns3/reconf.example.db
-rm -f ns3/rsasha256.example.db ns3/rsasha512.example.db
-rm -f ns3/secure.example.db
-rm -f ns3/secure.nsec3.example.db
-rm -f ns3/secure.optout.example.db
-rm -f ns3/settime.out.*
-rm -f ns3/sync.example.db
-rm -f ns3/ttl*.db
-rm -f nsupdate.out.test*
-rm -f settime.out.*
-rm -f signing.*
-rm -f sync.key
index b0399063b38a6d0d57cc9ba6699b91dcc1db25c2..b373e03b6a9eb0bc94a61133175e59337a3d6fe5 100644 (file)
@@ -9,9 +9,147 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
 
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "active.key",
+        "activate-now-publish-1day.key",
+        "autoksk.key",
+        "autozsk.key",
+        "del.key",
+        "delayksk.key",
+        "delayzsk.key",
+        "delzsk.key",
+        "dig.out.*",
+        "dsset-.",
+        "dsset-bar.",
+        "dsset-delay.example.",
+        "inact.key",
+        "inaczsk-ksk.key",
+        "inaczsk-zsk.key",
+        "noksk-ksk.key",
+        "nopriv.key",
+        "nozsk-ksk.key",
+        "nozsk-zsk.key",
+        "nsupdate.out.*",
+        "prepub.key",
+        "rev.key",
+        "settime.out.*",
+        "signing.*out*",
+        "standby.key",
+        "sync.key",
+        "unpub.key",
+        "vanishing.key",
+        "*/K*",
+        "*/dsset-*",
+        "*/*.signed",
+        "*/*.jnl",
+        "*/*.bk",
+        "ns*/_default.nzf*",
+        "ns*/_default.nzd*",
+        "ns1/root.db",
+        "ns1/root.db.1",
+        "ns1/root.db.2",
+        "ns1/root.db.3",
+        "ns1/signing.out",
+        "ns1/trusted.conf",
+        "ns2/bar.db",
+        "ns2/child.nsec3.example.db",
+        "ns2/child.optout.example.db",
+        "ns2/dsset-dname-at-apex-nsec3.example.",
+        "ns2/dsset-example.",
+        "ns2/dsset-nsec3-to-nsec.example.",
+        "ns2/dsset-nsec3.example.",
+        "ns2/dsset-oldsigs.example.",
+        "ns2/dsset-optout.example.",
+        "ns2/dsset-private.secure.example.",
+        "ns2/dsset-rsasha256.example.",
+        "ns2/dsset-rsasha512.example.",
+        "ns2/dsset-secure.example.",
+        "ns2/example.db",
+        "ns2/insecure.secure.example.db",
+        "ns2/nsec3-with-ent.db",
+        "ns2/private.conf",
+        "ns2/private.secure.example.db",
+        "ns2/signing.bar.out",
+        "ns2/signing.privsec.out",
+        "ns2/trusted.conf",
+        "ns3/autonsec3.example.db",
+        "ns3/delay.example.1",
+        "ns3/delay.example.2",
+        "ns3/delay.example.db",
+        "ns3/delzsk.example.db",
+        "ns3/dname-at-apex-nsec3.example.db",
+        "ns3/dsset-autonsec3.example.",
+        "ns3/dsset-dname-at-apex-nsec3.example.",
+        "ns3/dsset-inaczsk.example.",
+        "ns3/dsset-inaczsk2.example.",
+        "ns3/dsset-kskonly.example.",
+        "ns3/dsset-noksk.example.",
+        "ns3/dsset-nozsk.example.",
+        "ns3/dsset-nsec-only.example.",
+        "ns3/dsset-nsec3-to-nsec.example.",
+        "ns3/dsset-nsec3-to-nsec3.example.",
+        "ns3/dsset-nsec3.example.",
+        "ns3/dsset-nsec3.nsec3.example.",
+        "ns3/dsset-nsec3.optout.example.",
+        "ns3/dsset-oldsigs.example.",
+        "ns3/dsset-optout.example.",
+        "ns3/dsset-optout.nsec3.example.",
+        "ns3/dsset-optout.optout.example.",
+        "ns3/dsset-prepub.example.",
+        "ns3/dsset-rsasha256.example.",
+        "ns3/dsset-rsasha512.example.",
+        "ns3/dsset-secure.example.",
+        "ns3/dsset-secure.nsec3.example.",
+        "ns3/dsset-secure.optout.example.",
+        "ns3/dsset-sync.example.",
+        "ns3/inactive",
+        "ns3/inaczsk.example.db",
+        "ns3/inaczsk2.example.db",
+        "ns3/jitter.nsec3.example.db",
+        "ns3/kg.out",
+        "ns3/kskonly.example.db",
+        "ns3/kskonly.example.db.jbk",
+        "ns3/noksk.example.db",
+        "ns3/nozsk.example.db",
+        "ns3/nsec-only.example.db",
+        "ns3/nsec3-to-nsec.example.db",
+        "ns3/nsec3-to-nsec3.example.db",
+        "ns3/nsec3.example.db",
+        "ns3/nsec3.nsec3.example.db",
+        "ns3/nsec3.optout.example.db",
+        "ns3/oldsigs.example.db",
+        "ns3/oldsigs.example.db.bak",
+        "ns3/optout.example.db",
+        "ns3/optout.example.db.jbk",
+        "ns3/optout.nsec3.example.db",
+        "ns3/optout.optout.example.db",
+        "ns3/prepub.example.db",
+        "ns3/reconf.example.db",
+        "ns3/reconf.example.db.jbk",
+        "ns3/rsasha256.example.db",
+        "ns3/rsasha512.example.db",
+        "ns3/s.out",
+        "ns3/secure.example.db",
+        "ns3/secure.nsec3.example.db",
+        "ns3/secure.optout.example.db",
+        "ns3/st.out",
+        "ns3/sync.example.db",
+        "ns3/trusted.conf",
+        "ns3/ttl1.example.db",
+        "ns3/ttl2.example.db",
+        "ns3/ttl3.example.db",
+        "ns3/ttl4.example.db",
+        "ns4/private.conf",
+        "ns4/trusted.conf",
+        "ns5/trusted.conf",
+    ]
+)
+
 
 @isctest.mark.flaky(max_runs=2)
 def test_autosign(run_tests_sh):
diff --git a/bin/tests/system/builtin/clean.sh b/bin/tests/system/builtin/clean.sh
deleted file mode 100644 (file)
index a0fe02a..0000000
+++ /dev/null
@@ -1,19 +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.
-
-rm -f ns?/named.run
-rm -f ns?/named.memstats
-rm -f ns?/named.conf
-rm -f rndc.status.ns*
-rm -f dig.out.ns*
-rm -f ns*/managed-keys.bind*
index 2246cb459588cc90d2fb6a69d35f64c4b839f226..ff521dbfb99a8f0a0d42ffbde5d12ef6a79e3455 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.status.ns*",
+    ]
+)
+
 
 def test_builtin(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/cacheclean/clean.sh b/bin/tests/system/cacheclean/clean.sh
deleted file mode 100644 (file)
index 75b2af3..0000000
+++ /dev/null
@@ -1,26 +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.
-
-#
-# Clean up after cache cleaner tests.
-#
-
-rm -f dig.out.ns2
-rm -f dig.out.expire
-rm -f rndc.out.*
-rm -f sed.out.*
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.conf
-rm -f ns2/named_dump.db.*
-rm -f ns*/managed-keys.bind*
index e47157eb325b3ff3742fe73892be8b2d74f34355..780e2d7d7da883c17a2c5ef0b131f467d8764e5a 100644 (file)
@@ -9,6 +9,17 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "sed.out.*",
+        "ns2/named_dump.db.*",
+    ]
+)
+
 
 def test_cacheclean(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/case/clean.sh b/bin/tests/system/case/clean.sh
deleted file mode 100644 (file)
index dcb8888..0000000
+++ /dev/null
@@ -1,23 +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.
-
-rm -f dig.ns*.test*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns1/dynamic.db
-rm -f ns1/dynamic.db.jnl
-rm -f ns2/dynamic.bk
-rm -f ns2/dynamic.bk.jnl
-rm -f ns2/example.bk
-rm -f ns*/managed-keys.bind*
index bbe94d37730700e3fc03e872d0c92aac6bde7ce7..90b727272d6ed3e15d70924fae8fe75031e2d88f 100644 (file)
@@ -9,6 +9,19 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.ns*.test*",
+        "ns1/dynamic.db",
+        "ns1/dynamic.db.jnl",
+        "ns2/dynamic.bk",
+        "ns2/dynamic.bk.jnl",
+        "ns2/example.bk",
+    ]
+)
+
 
 def test_case(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/catz/clean.sh b/bin/tests/system/catz/clean.sh
deleted file mode 100644 (file)
index f9df1b4..0000000
+++ /dev/null
@@ -1,36 +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.
-
-rm -f dig.out.*
-rm -f ns*/*.jnl
-rm -f ns*/*.mkeys
-rm -f ns*/*.nzd ns*/*.nzd-lock
-rm -f ns*/*.nzf
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/named.run.prev
-rm -f ns1/*dom*example.db
-rm -f ns1/tls1.example.db
-rm -f ns2/__catz__*db
-rm -f ns2/catalog-bad*.db
-rm -f ns2/named.conf.tmp
-rm -f ns3/dom2.example.db ns3/dom13.example.db ns3/dom14.example.db ns3/dom17.example.db ns3/dom18.example.db
-rm -f ns4/__catz__*db
-rm -f ns4/catalog-self.example.db
-rm -f ns[123]/catalog[1234].example.db
-rm -f ns[14]/catalog-tls.example.db
-rm -f nsupdate.out.*
-rm -f wait_for_message.*
-rm -rf ns2/zonedir
index eae546fe45c39b843df0467c1b88902d8edad5f2..639a0f3f0e9be35d83fe1550cbe495447854fcf6 100644 (file)
@@ -9,6 +9,26 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "nsupdate.out.*",
+        "wait_for_message.*",
+        "ns*/*.jnl",
+        "ns*/*.nzf*",
+        "ns*/*.nzd*",
+        "ns*/catalog*.example.db",
+        "ns*/*dom*.example.db",
+        "ns1/tls1.example.db",
+        "ns2/__catz__*.db",
+        "ns2/named.conf.tmp",
+        "ns2/zonedir",
+        "ns4/__catz__*.db",
+    ]
+)
+
 
 def test_catz(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/cds/clean.sh b/bin/tests/system/cds/clean.sh
deleted file mode 100644 (file)
index b9743a5..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh -e
-
-# 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.
-
-rm -f CDNSKEY* CDS* DS*
-rm -f K*
-rm -f UP*
-rm -f brk.*
-rm -f db.*
-rm -f dsset-*
-rm -f empty
-rm -f sig.*
-rm -f vars.sh
-rm -f err* out* xerr xout
index d00a8ae51c982b39c383823c834a3327dcdc7323..3a99ac11eff9cd4b364d6450babeb0c1ee1b1e2d 100644 (file)
@@ -9,6 +9,27 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "CDNSKEY.*",
+        "CDS.*",
+        "DS.*",
+        "K*",
+        "UP.*",
+        "brk.*",
+        "db.*",
+        "empty",
+        "err.*",
+        "out.*",
+        "sig.*",
+        "vars.sh",
+        "xerr",
+        "xout",
+    ]
+)
+
 
 def test_cds(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/chain/clean.sh b/bin/tests/system/chain/clean.sh
deleted file mode 100755 (executable)
index 22d7e0a..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.
-
-rm -f dig.out.* named*.pid
-rm -f ns*/named.conf
-rm -f */named.memstats */named.recursing */named.run */ans.run
-rm -f ns2/K* ns2/dsset-* ns2/*.db.signed
-rm -f ns*/managed-keys.bind*
index ca3c05794e6dd25d1d71fa1da4a244854512f337..f7d7ac3b0158d4ed6e5b884b46924c1265f2267b 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "*/ans.run",
+        "ns2/K*",
+        "ns2/dsset-*",
+        "ns2/*.db.signed",
+    ]
+)
+
 
 def test_chain(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/checkconf/clean.sh b/bin/tests/system/checkconf/clean.sh
deleted file mode 100644 (file)
index 396fb82..0000000
+++ /dev/null
@@ -1,26 +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.
-
-rm -f bad-kasp-keydir1.conf
-rm -f bad-kasp-keydir2.conf
-rm -f bad-kasp-keydir3.conf
-rm -f bad-kasp-keydir4.conf
-rm -f bad-kasp-keydir5.conf
-rm -f bad-tsig.conf
-rm -f checkconf.out*
-rm -f diff.out*
-rm -f good-kasp.conf.in
-rm -f good-server-christmas-tree.conf
-rm -f good.conf good.conf.raw good.conf.out badzero.conf *.out
-rm -rf keys
-rm -rf test.keydir
index 3a348ba2f8e4a6d7518c48ac9f603fce60a507c3..c94a9fa9fa2b4f8b59ee6bbef0d735f47446f6e4 100644 (file)
@@ -9,6 +9,28 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.out",
+        "bad-kasp-keydir1.conf",
+        "bad-kasp-keydir2.conf",
+        "bad-kasp-keydir3.conf",
+        "bad-kasp-keydir4.conf",
+        "bad-kasp-keydir5.conf",
+        "bad-tsig.conf",
+        "badzero.conf",
+        "checkconf.out*",
+        "diff.out*",
+        "good-kasp.conf.in",
+        "good-server-christmas-tree.conf",
+        "good.conf",
+        "good.conf.raw",
+        "keys",
+    ]
+)
+
 
 def test_checkconf(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/checkds/clean.sh b/bin/tests/system/checkds/clean.sh
deleted file mode 100644 (file)
index ec51f99..0000000
+++ /dev/null
@@ -1,28 +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.
-
-set -e
-
-rm -f dig.out*
-rm -f ns*/named.conf ns*/named.memstats ns*/named.run*
-rm -f ns*/*.jnl ns*/*.jbk
-rm -f ns*/K*.private ns*/K*.key ns*/K*.state
-rm -f ns*/*.keyname
-rm -f ns*/dsset-*
-rm -f ns*/*.db ns*/*.jnl ns*/*.jbk ns*/*.db.signed ns*/*.db.infile
-rm -f ns*/keygen.out.* ns*/settime.out.* ns*/signer.out.*
-rm -f ns*/managed-keys.bind*
-rm -f ns*/trusted.conf
-rm -f ns*/*.mkeys
-rm -f ns*/zones
-rm -f ./*.out
index 3fd30e1c0b89893e6f6784d58c3842a69b7b97ff..7fed52690721d2bb09b4c723efb816e6e6ba24c5 100755 (executable)
@@ -11,6 +11,7 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+
 from typing import NamedTuple, Tuple
 
 import os
@@ -29,9 +30,29 @@ import dns.rdataclass
 import dns.rdatatype
 
 
-pytestmark = pytest.mark.skipif(
-    sys.version_info < (3, 7), reason="Python >= 3.7 required [GL #3001]"
-)
+pytestmark = [
+    pytest.mark.skipif(
+        sys.version_info < (3, 7), reason="Python >= 3.7 required [GL #3001]"
+    ),
+    pytest.mark.extra_artifacts(
+        [
+            "*.out",
+            "ns*/*.db",
+            "ns*/*.db.infile",
+            "ns*/*.db.signed",
+            "ns*/*.jnl",
+            "ns*/*.jbk",
+            "ns*/*.keyname",
+            "ns*/dsset-*",
+            "ns*/K*",
+            "ns*/keygen.out*",
+            "ns*/settime.out*",
+            "ns*/signer.out*",
+            "ns*/trusted.conf",
+            "ns*/zones",
+        ]
+    ),
+]
 
 
 def has_signed_apex_nsec(zone, response):
diff --git a/bin/tests/system/checknames/clean.sh b/bin/tests/system/checknames/clean.sh
deleted file mode 100644 (file)
index b7b4a63..0000000
+++ /dev/null
@@ -1,26 +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.
-
-rm -f ns*/named.conf
-rm -f dig.out.ns?.test*
-rm -f nsupdate.out.test*
-rm -f ns1/*.example.db
-rm -f ns1/*.update.db
-rm -f ns1/*.update.db.jnl
-rm -f ns4/*.update.db
-rm -f ns4/*.update.db.jnl
-rm -f ns5/*.update.db
-rm -f ns5/*.update.db.jnl
-rm -f */named.memstats
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
index e0e035b439b40ceeedafa3d4127ce58570eaa152..326a3473e7e43f38b9ebca0905c13c407e16dab3 100644 (file)
@@ -9,6 +9,22 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.ns*.test*",
+        "nsupdate.out.*",
+        "ns1/*.example.db",
+        "ns1/*.update.db",
+        "ns1/*.update.db.jnl",
+        "ns4/*.update.db",
+        "ns4/*.update.db.jnl",
+        "ns5/*.update.db",
+        "ns5/*.update.db.jnl",
+    ]
+)
+
 
 def test_checknames(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/checkzone/clean.sh b/bin/tests/system/checkzone/clean.sh
deleted file mode 100644 (file)
index ee6a112..0000000
+++ /dev/null
@@ -1,16 +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.
-
-rm -f test.* good1.db.raw named-compilezone
-rm -f zones/bad-tsig.db
-rm -f zones/zone1_*.txt
index 87613cbb268c035b08c30b9dea429b9758379a19..26134aa700eaf711308b7a9cb2e3dfa192e9a1c0 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "good1.db.raw",
+        "named-compilezone",
+        "test.*",
+        "zones/bad-tsig.db",
+        "zones/zone1_*.txt",
+    ]
+)
+
 
 def test_checkzone(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/cipher-suites/clean.sh b/bin/tests/system/cipher-suites/clean.sh
deleted file mode 100644 (file)
index c81c6a1..0000000
+++ /dev/null
@@ -1,26 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./*/named.run.prev
-rm -f ./dig.out.*
-rm -f ./gnutls-cli.*
-rm -f ./sslyze.log.*
-rm -f ./*/example*.db
-rm -rf ./headers.*
index 78095ba7197fa2ae2b21c7d8de3f9712e845ee5e..65a4b8259123fbb614f4eb7ff21cd96b67c93a95 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/example*.db",
+    ]
+)
+
 
 def test_cipher_suites(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/cookie/clean.sh b/bin/tests/system/cookie/clean.sh
deleted file mode 100644 (file)
index 0a76278..0000000
+++ /dev/null
@@ -1,23 +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.
-
-rm -f ns*/named.conf
-rm -f dig.out.*
-rm -f named.run.*
-rm -f rndc.out.*
-rm -f ns1/named_dump.db*
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.run.prev
-rm -f ans*/ans.run ans*/ans.log
index 2f1d029925b053c54b5eb3931bbc75f1aa50721d..768f8601ed1f80274d8af2a066a2dc6cfbd97031 100644 (file)
@@ -9,6 +9,19 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "named.run.*",
+        "rndc.out.*",
+        "ans*/ans.run",
+        "ans*/query.log",
+        "ns1/named_dump.db*",
+    ]
+)
+
 
 def test_cookie(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/cpu/clean.sh b/bin/tests/system/cpu/clean.sh
deleted file mode 100644 (file)
index cff7c61..0000000
+++ /dev/null
@@ -1,16 +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.
-
-set -e
-
-rm -f ./named.run.*
index 264dc27b0eb6cb1735f08f3cb5bb5e526f736d87..f2f30c6abd4091b1a95f21881d15e8c3817ea28a 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "named.run.*",
+        "ns1/managed-keys.*",
+    ]
+)
+
 
 def test_cpu(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/database/clean.sh b/bin/tests/system/database/clean.sh
deleted file mode 100644 (file)
index eda32d0..0000000
+++ /dev/null
@@ -1,16 +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.
-
-rm -f ns1/named.conf ns1/named.run ns1/named.memstats
-rm -f dig.out.*
-rm -f ns*/managed-keys.bind*
index b48469e3fbab5b3a3d52584cb9f7a6e0a8d2a8fb..62b9105f1e26f7f04004fbc1457c816cb7ddffd5 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+    ]
+)
+
 
 def test_database(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/digdelv/clean.sh b/bin/tests/system/digdelv/clean.sh
deleted file mode 100644 (file)
index 61574ad..0000000
+++ /dev/null
@@ -1,37 +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.
-
-set -e
-
-rm -f ./anchor.* ./*/anchor.*
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./ans*/ans.run
-rm -f ./ans*/query.log
-rm -f ./delv.out.test*
-rm -f ./dig.out.*test*
-rm -f ./dig.out.mm.*
-rm -f ./dig.out.mn.*
-rm -f ./dig.out.nm.*
-rm -f ./dig.out.nn.*
-rm -f ./host.out.test*
-rm -f ./ns*/managed-keys.bind*
-rm -f ./ns*/K* ./ns*/keyid ./ns*/keydata
-rm -f ./ns1/root.db
-rm -f ./ns*/dsset-*
-rm -f ./ns2/example.db
-rm -f ./ns2/example.tld.db
-rm -f ./nslookup.out.test*
-rm -f ./nsupdate.out.test*
-rm -f ./yamlget.out.*
index 2973c26a9f514a46ef2980e8345d3dabf6722278..5767bc1a6e77e82a529aa0d88c6ff5a1a4276868 100644 (file)
@@ -9,6 +9,30 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "delv.out.*",
+        "dig.out.*",
+        "host.out.*",
+        "nslookup.out.*",
+        "nsupdate.out.*",
+        "yamlget.out.*",
+        "ans*/ans.run",
+        "ans*/query.log",
+        "ns*/anchor.*",
+        "ns*/dsset-*",
+        "ns*/keydata",
+        "ns*/keyid",
+        "ns*/K*.key",
+        "ns*/K*.private",
+        "ns1/root.db",
+        "ns2/example.db",
+        "ns2/example.tld.db",
+    ]
+)
+
 
 def test_digdelv(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/dispatch/clean.sh b/bin/tests/system/dispatch/clean.sh
deleted file mode 100644 (file)
index 608ec5c..0000000
+++ /dev/null
@@ -1,16 +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.
-
-rm -f ns*/named.run ns*/named.conf ns*/named.pid ns*/managed-keys.bind*
-rm -f ans*/ans.run ans*/ans.pid
-rm -f ns*/named.memstats
index 5dbab1e820776a51cb0118d9f52cb3d839b80f26..0b78fb8e0a6bb8b9c00e4dedf1f5111d9c7826b2 100644 (file)
@@ -17,6 +17,12 @@ import isctest
 pytest.importorskip("dns")
 import dns.message
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ans*/ans.run",
+    ]
+)
+
 
 def test_connreset():
     msg = dns.message.make_query(
diff --git a/bin/tests/system/dlzexternal/clean.sh b/bin/tests/system/dlzexternal/clean.sh
deleted file mode 100644 (file)
index 4c0fc59..0000000
+++ /dev/null
@@ -1,25 +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.
-
-#
-# Clean up after dlzexternal tests.
-#
-
-rm -f ns1/update.txt
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns1/ddns.key
-rm -f dig.out*
-rm -f ns1/session.key
-rm -f ns*/managed-keys.bind*
index 1c0f7e5a298a8be2a1c682d1bb68d7ef296c523f..e64ecda6a6434709495ec8056cb73923e6c07d88 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns1/ddns.key",
+        "ns1/update.txt",
+    ]
+)
+
 
 def test_dlzexternal(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/dns64/clean.sh b/bin/tests/system/dns64/clean.sh
deleted file mode 100644 (file)
index 4255105..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.
-
-rm -f ns*/named.conf
-rm -f ns1/K*
-rm -f ns1/signed.db*
-rm -f ns1/dsset-signed.
-rm -f */named.memstats
-rm -f */named.run
-rm -f dig.out.*
-rm -f ns*/managed-keys.bind*
index 7eb152c7f435cab31fcdea16e3574382d9208fe3..a7af9cfe5ea04083467e78ecf8885f8b6e687fa4 100644 (file)
@@ -9,6 +9,17 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns1/K*",
+        "ns1/dsset-signed.",
+        "ns1/signed.db*",
+    ]
+)
+
 
 def test_dns64(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/dnssec/clean.sh b/bin/tests/system/dnssec/clean.sh
deleted file mode 100644 (file)
index 9a274bd..0000000
+++ /dev/null
@@ -1,118 +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.
-
-set -e
-
-rm -f ./K* ./*/K* ./*/keyset-* ./*/dsset-* ./*/signedkey-* ./*/*.signed
-rm -f ./*/example.bk
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run ./*/named.run.prev
-rm -f ./*/named.secroots
-rm -f ./*/tmp* ./*/*.jnl ./*/*.bk ./*/*.jbk
-rm -f ./*/trusted.conf ./*/managed.conf ./*/revoked.conf
-rm -f ./Kexample.* ./Kkeygen* ./keygen*.err*
-rm -f ./ans10/query.log ./ans10/ans.run
-rm -f ./canonical?.*
-rm -f ./delv.out*
-rm -f ./delve.out*
-rm -f ./dig.out.*
-rm -f ./dnssectools.out*
-rm -f ./dsfromkey.out.*
-rm -f ./keygen.err
-rm -f ./named.secroots.test*
-rm -f ./ns*/*.nta
-rm -f ./ns*/managed-keys.bind ./ns*/managed-keys.bind.jnl ./ns*/*.mkeys*
-rm -f ./ns1/managed.key.id
-rm -f ./ns1/root.db ./ns2/example.db ./ns2/managed.db ./ns2/trusted.db
-rm -f ./ns1/trusted.keys
-rm -f ./ns2/algroll.db
-rm -f ./ns2/badparam.db ./ns2/badparam.db.bad
-rm -f ./ns2/cdnskey-update.secure.db
-rm -f ./ns2/cdnskey-update.secure.id
-rm -f ./ns2/cdnskey-x.secure.db
-rm -f ./ns2/cdnskey.secure.db
-rm -f ./ns2/cds-auto.secure.db ./ns2/cds-auto.secure.db.jnl
-rm -f ./ns2/cds-update.secure.db ./ns2/cds-update.secure.db.jnl
-rm -f ./ns2/cds-update.secure.id
-rm -f ./ns2/cds.secure.db ./ns2/cds-x.secure.db
-rm -f ./ns2/in-addr.arpa.db
-rm -f ./ns2/nsec3chain-test.db
-rm -f ./ns2/settime.out.*
-rm -f ./ns2/single-nsec3.db
-rm -f ./ns2/too-many-iterations.db
-rm -f ./ns2/updatecheck-kskonly.secure.*
-rm -f ./ns3/NSEC ./ns3/NSEC3
-rm -f ./ns3/auto-nsec.example.db ./ns3/auto-nsec3.example.db
-rm -f ./ns3/badds.example.db
-rm -f ./ns3/dname-at-apex-nsec3.example.db
-rm -f ./ns3/dnskey-nsec3-unknown.example.db
-rm -f ./ns3/dnskey-nsec3-unknown.example.db.tmp
-rm -f ./ns3/dnskey-unknown.example.db
-rm -f ./ns3/dnskey-unknown.example.db.tmp
-rm -f ./ns3/dnskey-unsupported-2.example.db
-rm -f ./ns3/dnskey-unsupported-2.example.db.tmp
-rm -f ./ns3/dnskey-unsupported.example.db
-rm -f ./ns3/dnskey-unsupported.example.db.tmp
-rm -f ./ns3/dynamic.example.db ./ns3/dynamic.example.db.signed.jnl
-rm -f ./ns3/expired.example.db ./ns3/update-nsec3.example.db
-rm -f ./ns3/expiring.example.db
-rm -f ./ns3/future.example.db ./ns3/trusted-future.key
-rm -f ./ns3/inline.example.db.signed
-rm -f ./ns3/kskonly.example.db
-rm -f ./ns3/lower.example.db ./ns3/upper.example.db ./ns3/upper.example.db.lower
-rm -f ./ns3/managed-future.example.db
-rm -f ./ns3/multiple.example.db ./ns3/nsec3-unknown.example.db ./ns3/nsec3.example.db
-rm -f ./ns3/nsec3.nsec3.example.db
-rm -f ./ns3/nsec3.optout.example.db
-rm -f ./ns3/occluded.example.db
-rm -f ./ns3/optout-unknown.example.db ./ns3/optout.example.db
-rm -f ./ns3/optout.nsec3.example.db
-rm -f ./ns3/optout.optout.example.db
-rm -f ./ns3/revkey.example.db
-rm -f ./ns3/rsasha1-1024.example.tmp
-rm -f ./ns3/rsasha1.example.tmp
-rm -f ./ns3/rsasha256.example.db ./ns3/rsasha512.example.db
-rm -f ./ns3/secure.below-cname.example.db
-rm -f ./ns3/secure.example.db ./ns3/*.managed.db ./ns3/*.trusted.db
-rm -f ./ns3/secure.nsec3.example.db
-rm -f ./ns3/secure.optout.example.db
-rm -f ./ns3/siginterval.conf
-rm -f ./ns3/siginterval.example.db
-rm -f ./ns3/split-dnssec.example.db
-rm -f ./ns3/split-smart.example.db
-rm -f ./ns3/ttlpatch.example.db ./ns3/ttlpatch.example.db.signed
-rm -f ./ns3/ttlpatch.example.db.patched
-rm -f ./ns3/unsecure.example.db ./ns3/bogus.example.db ./ns3/keyless.example.db
-rm -f ./ns3/unsupported.managed.db.tmp ./ns3/unsupported.trusted.db.tmp
-rm -f ./ns4/named_dump.db*
-rm -f ./ns6/optout-tld.db
-rm -f ./ns7/multiple.example.bk ./ns7/nsec3.example.bk ./ns7/optout.example.bk
-rm -f ./ns7/split-rrsig.db ./ns7/split-rrsig.db.unsplit
-rm -f ./nsupdate.out*
-rm -f ./python.out.*
-rm -f ./rndc.out.*
-rm -f ./signer/*.db
-rm -f ./signer/*.signed.post*
-rm -f ./signer/*.signed.pre*
-rm -f ./signer/example.db.after ./signer/example.db.before
-rm -f ./signer/example.db.changed
-rm -f ./signer/general/*.jnl
-rm -f ./signer/general/dsset*
-rm -f ./signer/general/signed.zone
-rm -f ./signer/general/signer.err.*
-rm -f ./signer/general/signer.out.*
-rm -f ./signer/nsec3param.out
-rm -f ./signer/signer.err.*
-rm -f ./signer/signer.out.*
-rm -f ./signing.out*
index 65c3d4341fd7a5a33edbd6b5436b9045a8eb6d7d..bc2dd05ed30d19a9eaf21c45693febf0aae1324f 100644 (file)
@@ -9,6 +9,153 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "K*",
+        "canonical*",
+        "delv.out*",
+        "dig.out.*",
+        "dnssectools.out.*",
+        "dsfromkey.out.*",
+        "keygen*.err*",
+        "named.secroots.*",
+        "nsupdate.out.*",
+        "python.out.*",
+        "rndc.out.*",
+        "signing.out.*",
+        "*/K*",
+        "*/dsset-*",
+        "*/managed.conf",
+        "*/trusted.conf",
+        "*/*.bk",
+        "*/*.jnl",
+        "*/*.jbk",
+        "*/*.signed",
+        "*/*.mkeys*",
+        "ans*/ans.run",
+        "ans*/query.log",
+        "ns1/managed.key.id",
+        "ns1/root.db",
+        "ns1/trusted.keys",
+        "ns2/algroll.db",
+        "ns2/badparam.db",
+        "ns2/badparam.db.bad",
+        "ns2/cdnskey-update.secure.db",
+        "ns2/cdnskey-update.secure.id",
+        "ns2/cdnskey-x.secure.db",
+        "ns2/cdnskey.secure.db",
+        "ns2/cds-update.secure.db",
+        "ns2/cds-update.secure.id",
+        "ns2/cds-x.secure.db",
+        "ns2/cds.secure.db",
+        "ns2/example.db",
+        "ns2/in-addr.arpa.db",
+        "ns2/lazy-ksk.db",
+        "ns2/managed.db",
+        "ns2/nsec3chain-test.db",
+        "ns2/settime.out.updatecheck-kskonly.secure.ksk",
+        "ns2/settime.out.updatecheck-kskonly.secure.zsk",
+        "ns2/single-nsec3.db",
+        "ns2/too-many-iterations.db",
+        "ns2/trusted.db",
+        "ns2/updatecheck-kskonly.secure.ksk.id",
+        "ns2/updatecheck-kskonly.secure.ksk.key",
+        "ns2/updatecheck-kskonly.secure.zsk.id",
+        "ns2/updatecheck-kskonly.secure.zsk.id2",
+        "ns2/updatecheck-kskonly.secure.zsk.id3",
+        "ns2/updatecheck-kskonly.secure.zsk.key",
+        "ns3/NSEC",
+        "ns3/NSEC3",
+        "ns3/auto-nsec.example.db",
+        "ns3/auto-nsec3.example.db",
+        "ns3/badds.example.db",
+        "ns3/bogus.example.db",
+        "ns3/disabled.managed.db",
+        "ns3/disabled.trusted.db",
+        "ns3/dname-at-apex-nsec3.example.db",
+        "ns3/dnskey-nsec3-unknown.example.db",
+        "ns3/dnskey-nsec3-unknown.example.db.tmp",
+        "ns3/dnskey-unknown.example.db",
+        "ns3/dnskey-unknown.example.db.tmp",
+        "ns3/dnskey-unsupported-2.example.db",
+        "ns3/dnskey-unsupported.example.db",
+        "ns3/dnskey-unsupported.example.db.tmp",
+        "ns3/dynamic.example.db",
+        "ns3/enabled.managed.db",
+        "ns3/enabled.trusted.db",
+        "ns3/example.bk",
+        "ns3/expired.example.db",
+        "ns3/expiring.example.db",
+        "ns3/future.example.db",
+        "ns3/keyless.example.db",
+        "ns3/kskonly.example.db",
+        "ns3/lower.example.db",
+        "ns3/managed-future.example.db",
+        "ns3/multiple.example.db",
+        "ns3/nsec3-unknown.example.db",
+        "ns3/nsec3.example.db",
+        "ns3/nsec3.nsec3.example.db",
+        "ns3/nsec3.optout.example.db",
+        "ns3/nsec3chain-test.bk",
+        "ns3/occluded.example.db",
+        "ns3/optout-unknown.example.db",
+        "ns3/optout.example.db",
+        "ns3/optout.nsec3.example.db",
+        "ns3/optout.optout.example.db",
+        "ns3/revkey.example.db",
+        "ns3/revoked.managed.db",
+        "ns3/revoked.trusted.db",
+        "ns3/rfc2335.example.bk",
+        "ns3/rsasha256.example.db",
+        "ns3/rsasha512.example.db",
+        "ns3/secure.below-cname.example.db",
+        "ns3/secure.example.db",
+        "ns3/secure.managed.db",
+        "ns3/secure.nsec3.example.db",
+        "ns3/secure.optout.example.db",
+        "ns3/secure.trusted.db",
+        "ns3/siginterval.conf",
+        "ns3/siginterval.example.db",
+        "ns3/split-dnssec.example.db",
+        "ns3/split-smart.example.db",
+        "ns3/trusted-future.key",
+        "ns3/ttlpatch.example.db",
+        "ns3/ttlpatch.example.db.patched",
+        "ns3/unsupported.managed.db",
+        "ns3/unsupported.managed.db.tmp",
+        "ns3/unsupported.trusted.db",
+        "ns3/unsupported.trusted.db.tmp",
+        "ns3/update-nsec3.example.db",
+        "ns3/update-nsec3.example.db.signed",
+        "ns3/upper.example.db",
+        "ns3/upper.example.db.lower",
+        "ns4/managed.conf",
+        "ns4/managed-keys.bind",
+        "ns4/named.secroots",
+        "ns4/named_dump.db.*",
+        "ns5/revoked.conf",
+        "ns5/trusted.conf",
+        "ns6/optout-tld.db",
+        "ns7/split-rrsig.db",
+        "ns7/split-rrsig.db.unsplit",
+        "signer/example.db",
+        "signer/example.db.after",
+        "signer/example.db.before",
+        "signer/example.db.changed",
+        "signer/example2.db",
+        "signer/example3.db",
+        "signer/general/dsset-*",
+        "signer/general/signed.zone",
+        "signer/general/signer.out.*",
+        "signer/nsec3param.out",
+        "signer/prepub.db",
+        "signer/signer.err.*",
+        "signer/signer.out.*",
+    ]
+)
+
 
 def test_dnssec(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/dnstap/clean.sh b/bin/tests/system/dnstap/clean.sh
deleted file mode 100644 (file)
index d17322c..0000000
+++ /dev/null
@@ -1,29 +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.
-
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.run.prev
-rm -f */named.stats
-rm -f dig.out*
-rm -f dnstap.*
-rm -f fstrm_capture.out.*
-rm -f ns*/dnstap.out
-rm -f ns*/dnstap.out.save
-rm -f ns*/dnstap.out.save.?
-rm -f ns*/managed-keys.bind*
-rm -f ns2/dnstap.out.*
-rm -f ns2/example.db ns2/example.db.jnl
-rm -f ns3/dnstap.out.*
-rm -f ydump.out
index 2b2185a6f331c8713ac0385252fcf6e5762a1636..6326ef06f877de1519f720f14a184b1ebc70fe92 100644 (file)
@@ -22,6 +22,14 @@ import dns.message
 
 pytest.importorskip("dns", minversion="2.0.0")
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dnstap.out.*",
+        "ns*/dnstap.out*",
+        "ns2/example.db",
+    ]
+)
+
 
 def run_rndc(server, rndc_command):
     """
index 8094f0d6c8ae1e5f985501029f3aaa1d056b9a1a..5d4d7a9e9e96fab7795e6f5ede20e2f567316dcd 100644 (file)
@@ -9,6 +9,22 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out*",
+        "dnstap.hex*",
+        "dnstap.out*",
+        "fstrm_capture.out.*",
+        "nsupdate.out*",
+        "ydump.out*",
+        "ns*/dnstap.out*",
+        "ns2/example.db",
+        "ns2/example.db.jnl",
+    ]
+)
+
 
 def test_dnstap(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/doth/clean.sh b/bin/tests/system/doth/clean.sh
deleted file mode 100644 (file)
index c81c6a1..0000000
+++ /dev/null
@@ -1,26 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./*/named.run.prev
-rm -f ./dig.out.*
-rm -f ./gnutls-cli.*
-rm -f ./sslyze.log.*
-rm -f ./*/example*.db
-rm -rf ./headers.*
index 5ddb708fd2a3d40d61fbc068816397ffcea17ad5..8770206fa824bb5e9bbf39065c7a867af06860a8 100644 (file)
@@ -25,6 +25,13 @@ import dns.name
 import dns.rdataclass
 import dns.rdatatype
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "gnutls-cli.*",
+        "ns*/example*.db",
+    ]
+)
+
 
 def test_gnutls_cli_query(gnutls_cli_executable, named_tlsport):
     # Prepare the example/SOA query which will be sent over TLS.
index ef87a06acd7aca28cb76f620bcf0afd5b6347720..69e92fab4c1d769bfe156fcaa19b00634dc75646 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "headers.*",
+        "ns*/example*.db",
+    ]
+)
+
 
 def test_doth(run_tests_sh):
     run_tests_sh()
index a904e7c12e54e13a44de2cf94bdde73a90def58d..33d916abf2b587b86517f697635f96b107dfba5e 100644 (file)
@@ -15,9 +15,17 @@ import os
 import pathlib
 import subprocess
 
-import isctest
 import pytest
 
+import isctest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "sslyze.log.*",
+        "ns*/example*.db",
+    ]
+)
+
 
 def is_pid_alive(pid):
     try:
diff --git a/bin/tests/system/dsdigest/clean.sh b/bin/tests/system/dsdigest/clean.sh
deleted file mode 100644 (file)
index ba7d9c7..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.
-
-rm -f */K* */dsset-* */*.signed */trusted.conf
-rm -f ns1/root.db
-rm -f ns1/signer.err
-rm -f ns2/good.db ns2/bad.db
-rm -f */named.conf
-rm -f */named.run
-rm -f */named.memstats
-rm -f ns*/managed-keys.bind*
index 3788003e276b589acb8b0f8a4e38c8e96894fd1e..f741a21147c1e25b40bc1d62b704a088de8c18e7 100644 (file)
 # information regarding copyright ownership.
 
 import dns.message
+import pytest
 
 import isctest
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns*/K*",
+        "ns*/dsset-*",
+        "ns*/trusted.conf",
+        "ns*/*.signed",
+        "ns1/root.db",
+        "ns2/bad.db",
+        "ns2/good.db",
+    ]
+)
+
 
 def test_dsdigest_good():
     """Check that validation with enabled digest types works"""
diff --git a/bin/tests/system/dyndb/clean.sh b/bin/tests/system/dyndb/clean.sh
deleted file mode 100644 (file)
index cb8ae94..0000000
+++ /dev/null
@@ -1,25 +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.
-
-#
-# Clean up after dyndb tests.
-#
-rm -f */named.conf
-rm -f */named.run
-rm -f ns1/named.memstats
-rm -f ns1/update.txt
-rm -f added.a.out.*
-rm -f added.ptr.out.*
-rm -f deleted.a.out.*
-rm -f deleted.ptr.out.*
-rm -f ns*/managed-keys.bind*
index ca8f7a1e5bcc3f5b14a774e43ac35e66271c4c1c..dab651d007cde428b31013321a931a5d96dcdb03 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "added.*",
+        "deleted.*",
+        "ns1/update.txt",
+    ]
+)
+
 
 def test_dyndb(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/ecdsa/clean.sh b/bin/tests/system/ecdsa/clean.sh
deleted file mode 100644 (file)
index 7cc30b6..0000000
+++ /dev/null
@@ -1,26 +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.
-
-set -e
-
-rm -f ./dig.out*
-rm -f ns*/*.signed
-rm -f ns*/K*
-rm -f ns*/dsset-*
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/root.db
-rm -f ns*/signer.err
-rm -f ns*/trusted.conf
index 98b9eeec05b1df0752e03a596bb167a8e00f9701..b264f6484d26e6e887be37e50487962a7d1e3751 100644 (file)
@@ -9,6 +9,20 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/trusted.conf",
+        "ns1/K*",
+        "ns1/dsset-*",
+        "ns1/root.db",
+        "ns1/root.db.signed",
+        "ns1/signer.err",
+    ]
+)
+
 
 def test_ecdsa(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/eddsa/clean.sh b/bin/tests/system/eddsa/clean.sh
deleted file mode 100644 (file)
index 38be2c9..0000000
+++ /dev/null
@@ -1,27 +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.
-
-set -e
-
-rm -f ./dig.out*
-rm -f ns*/*.signed
-rm -f ns*/K*
-rm -f ns*/dsset-*
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/root.db
-rm -f ns*/signer.err
-rm -f ns*/trusted.conf
-rm -f ns*/example.com.db
index 6646e367910860d0de16882d5fdffa39ad15a1b9..587748ffb5f08022dab9854ca33da81609722845 100644 (file)
@@ -9,6 +9,22 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/*.signed",
+        "ns*/K*",
+        "ns*/dsset-*",
+        "ns*/signer.err",
+        "ns*/trusted.conf",
+        "ns1/root.db",
+        "ns2/example.com.db",
+        "ns3/example.com.db",
+    ]
+)
+
 
 def test_eddsa(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/ednscompliance/clean.sh b/bin/tests/system/ednscompliance/clean.sh
deleted file mode 100644 (file)
index aeb90ba..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.
-
-rm -f dig.out*
-rm -f ns*/named.conf
-rm -f ns*/named.run
-rm -f ns*/named.memstats
-rm -f ns*/managed-keys.bind*
index 8eea611c18be1f0ffba2c9902ecf3ad7664ba575..cdd2f30163617f48ce196e7386a5554d75b5f671 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out*",
+    ]
+)
+
 
 def test_ednscompliance(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/emptyzones/clean.sh b/bin/tests/system/emptyzones/clean.sh
deleted file mode 100644 (file)
index d84a129..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.
-
-rm -f ns1/named.conf
-rm -f ns*/named.run
-rm -f ns*/named.memstats
-rm -f dig.out.test*
-rm -f ns*/managed-keys.bind*
index 66dc9dc75d7595efe3beca5c7e15bc5f624aaa72..3d4039d5090829077e2a751f96cfaec548c49079 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+    ]
+)
+
 
 def test_emptyzones(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/enginepkcs11/clean.sh b/bin/tests/system/enginepkcs11/clean.sh
deleted file mode 100644 (file)
index 63d8a52..0000000
+++ /dev/null
@@ -1,41 +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.
-
-# shellcheck source=conf.sh
-. ../conf.sh
-
-set -e
-
-rm -f dig.out.*
-rm -f dsset-*
-rm -f keyfromlabel.err.* keyfromlabel.out.*
-rm -f pkcs11-tool.err.* pkcs11-tool.out.*
-rm -f signer.out.*
-rm -f ns*/*.kskid1 ns*/*.kskid2 ns*/*.zskid1 ns/*.zskid2
-rm -f ns*/dig.out.*
-rm -f ns*/K*
-rm -f ns*/keygen.out.*
-rm -f ns*/named.conf ns1/named.run ns1/named.memstats
-rm -f ns*/pin
-rm -f ns*/update.cmd.*
-rm -f ns*/update.log.*
-rm -f ns*/verify.out.*
-rm -f ns*/zone.*.jnl ns1/zone.*.jbk
-rm -f ns1/*.example.db ns1/*.example.db.signed
-rm -f ns1/*.kasp.db ns1/*.kasp.db.signed
-rm -f ns1/*.split.db ns1/*.split.db.signed
-rm -f ns2/*.views.db ns1/*.views.db.signed
-rm -rf ./ns1/keys/
-rm -rf ./ns2/keys/
-
-OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-enginepkcs11" >/dev/null 2>&1 || echo_i "softhsm2-enginepkcs11 token not found for cleaning"
index 9ef2d1e0dc73fcb100eebf2c402c897a32f0a89a..81de061d06071722aa09a11508e8007aa5878f87 100644 (file)
@@ -18,6 +18,7 @@ set -e
 
 $SHELL clean.sh
 
+OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-enginepkcs11" >/dev/null 2>&1 || true
 OPENSSL_CONF= softhsm2-util --init-token --free --pin 1234 --so-pin 1234 --label "softhsm2-enginepkcs11" | awk '/^The token has been initialized and is reassigned to slot/ { print $NF }'
 
 printf '%s' "${HSMPIN:-1234}" >ns1/pin
index 908c65cedce13d9f6f6d2823e3c785522ebc7e07..4bad00add4f05c9bafe06e3f125aa281965cbd50 100644 (file)
@@ -9,8 +9,47 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "dsset-*",
+        "keyfromlabel.err.*",
+        "keyfromlabel.out.*",
+        "pkcs11-tool.err.*",
+        "pkcs11-tool.out.*",
+        "signer.out.*",
+        "ns*/dig.out.*",
+        "ns*/K*",
+        "ns*/keygen.out.*",
+        "ns*/update.cmd.*",
+        "ns*/update.log.*",
+        "ns*/verify.out.*",
+        "ns*/pin",
+        "ns*/zone.*.jbk",
+        "ns*/zone.*.jnl",
+        "ns*/*.kskid1",
+        "ns*/*.kskid2",
+        "ns*/*.zskid1",
+        "ns*/*.zskid2",
+        "ns1/keys",
+        "ns1/*.example.db",
+        "ns1/*.example.db.signed",
+        "ns1/*.kasp.db",
+        "ns1/*.kasp.db.signed",
+        "ns1/*.split.db",
+        "ns1/*.split.db.signed",
+        "ns1/*.weird.db",
+        "ns1/*.weird.db.signed",
+        "ns2/keys",
+        "ns2/*.view*.db",
+        "ns2/*.view*.db.signed",
+    ]
+)
+
 
 @isctest.mark.flaky(max_runs=3)  # GL#4605
 def test_enginepkcs11(run_tests_sh):
diff --git a/bin/tests/system/fetchlimit/clean.sh b/bin/tests/system/fetchlimit/clean.sh
deleted file mode 100644 (file)
index 20bbd60..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.
-
-rm -f */named.conf */named.memstats */ans.run */named.recursing */named.run */named.run.prev
-rm -f ans4/norespond
-rm -f burst.input.*
-rm -f dig.out*
-rm -f wait_for_message.*
-rm -f ns*/managed-keys.bind*
-rm -f ns3/named.stats ns3/named.stats.prev ns3/named_dump.db
-rm -f ns5/named.stats ns5/named.stats.prev
index 04d3e3bf3969ec383f21eb2e34cddeefb4165b82..39dddf30622eb0ebe9ea732dcc1c6b7cb3d7ae11 100644 (file)
@@ -9,6 +9,19 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "wait_for_message.*",
+        "ans*/ans.run",
+        "ns3/named.stats",
+        "ns3/named.stats.prev",
+        "ns5/named.stats",
+    ]
+)
+
 import isctest.mark
 
 
diff --git a/bin/tests/system/filter-aaaa/clean.sh b/bin/tests/system/filter-aaaa/clean.sh
deleted file mode 100644 (file)
index 213f196..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.
-
-rm -f ns1/K*
-rm -f ns1/*.signed
-rm -f ns1/signer.err
-rm -f ns1/dsset-*
-
-rm -f */named.run
-rm -f */named.conf
-rm -f */named.memstats
-
-rm -f ns4/K*
-rm -f ns4/*.signed
-rm -f ns4/signer.err
-rm -f ns4/dsset-*
-
-rm -f dig.out.*
-rm -f ns*/managed-keys.bind*
-
-rm -f ns*/trusted.conf
-rm -f ns*/keygen.out
index bc6a90df732b156cfee9cc95d6d41dbf97f89cb3..6e1df65811a78869f12d2653feb6c41a5a6b9108 100644 (file)
@@ -9,6 +9,23 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/trusted.conf",
+        "ns1/K*",
+        "ns1/dsset-*",
+        "ns1/*.signed",
+        "ns1/signer.err",
+        "ns4/K*",
+        "ns4/dsset-*",
+        "ns4/*.signed",
+        "ns4/signer.err",
+    ]
+)
+
 
 def test_filter_aaaa(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/formerr/clean.sh b/bin/tests/system/formerr/clean.sh
deleted file mode 100644 (file)
index 886771b..0000000
+++ /dev/null
@@ -1,36 +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.
-
-rm -f badnsec3owner.out
-rm -f badrecordname.out
-rm -f dupans.out
-rm -f dupquestion.out
-rm -f keyclass.out
-rm -f malformeddeltype.out
-rm -f malformedrrsig.out
-rm -f nametoolong.out
-rm -f noquestions.out
-rm -f optwrongname.out
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f qtypeasanswer.out
-rm -f questionclass.out
-rm -f shortquestion.out
-rm -f shortrecord.out
-rm -f tsignotlast.out
-rm -f tsigwrongclass.out
-rm -f twoquestionnames.out
-rm -f twoquestiontypes.out
-rm -f wrongclass.out
index 73638561fbf37c430de707434f5ee69b57447d3e..a091546d51cc945492eca1279c971272088b191a 100644 (file)
@@ -9,6 +9,32 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "badnsec3owner.out",
+        "badrecordname.out",
+        "dupans.out",
+        "dupquestion.out",
+        "keyclass.out",
+        "malformeddeltype.out",
+        "malformedrrsig.out",
+        "nametoolong.out",
+        "noquestions.out",
+        "optwrongname.out",
+        "qtypeasanswer.out",
+        "questionclass.out",
+        "shortquestion.out",
+        "shortrecord.out",
+        "tsignotlast.out",
+        "tsigwrongclass.out",
+        "twoquestionnames.out",
+        "twoquestiontypes.out",
+        "wrongclass.out",
+    ]
+)
+
 
 def test_formerr(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/forward/clean.sh b/bin/tests/system/forward/clean.sh
deleted file mode 100644 (file)
index bf9cc7b..0000000
+++ /dev/null
@@ -1,31 +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.
-
-#
-# Clean up after forward tests.
-#
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run ./*/named.run.prev ./*/ans.run
-rm -f ./*/named_dump.db
-rm -f ./ans*/query.log
-rm -f ./statschannel.out.*
-rm -f ./dig.out.*
-rm -f ./ns*/managed-keys.bind*
-rm -f ./ns*/trusted.conf
-rm -f ./ns1/K* ./ns1/dsset-*
-rm -f ./ns1/root.db ./ns1/root.db.signed
-rm -f ns2/named-tls.conf
-rm -f ns2/options-tls.conf
-rm -f ns4/named-tls.conf
-rm -f ns4/options-tls.conf
index 4380a498bf151e8ba5ff232e646dbda381e589f2..9701cb733c1c5f7f9aa91141729a7e473eb44bcd 100644 (file)
@@ -9,6 +9,28 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "statschannel.out.*",
+        "ans*/ans.run",
+        "ans*/query.log",
+        "ns*/trusted.conf",
+        "ns1/K*",
+        "ns1/dsset-*",
+        "ns1/root.db",
+        "ns1/root.db.signed",
+        "ns2/named-tls.conf",
+        "ns2/options-tls.conf",
+        "ns3/trusted.conf",
+        "ns4/named-tls.conf",
+        "ns4/options-tls.conf",
+        "ns9/named_dump.db",
+    ]
+)
+
 
 def test_forward(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/geoip2/clean.sh b/bin/tests/system/geoip2/clean.sh
deleted file mode 100644 (file)
index 0a512ff..0000000
+++ /dev/null
@@ -1,19 +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.
-
-rm -f ns2/named.conf
-rm -f ns2/example*.db
-rm -f dig.out.* rndc.out.*
-rm -f ns?/named.run
-rm -f ns?/named.memstats
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index 7cac6a8af80bbda06b4731ae7dd21de46a4ff6b0..e0dc60bd01a07a1840811ac238870e3a60dd2b5f 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "ns2/example*.db",
+    ]
+)
+
 
 def test_geoip2(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/glue/clean.sh b/bin/tests/system/glue/clean.sh
deleted file mode 100644 (file)
index 92036f2..0000000
+++ /dev/null
@@ -1,25 +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.
-
-#
-# Clean up after glue tests.
-#
-
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f ns*/K*
-rm -f ns*/dsset-*
-rm -f ns*/managed-keys.bind*
-rm -f ns*/tc-test-signed.db
-rm -f ns*/tc-test-signed.db.signed
index 9d9a8e4a5226a41032500e68423bb0ae750626bb..f346998dc078bf08a0ea6057a461ebe9ab841471 100644 (file)
@@ -9,14 +9,23 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+
 import dns.message
+import pytest
 
 import isctest
 
-import pytest
-
 pytest.importorskip("dns", minversion="2.0.0")
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns1/*",
+        "ns1/dsset-*",
+        "ns1/tc-test-signed.db",
+        "ns1/tc-test-signed.db.signed",
+    ]
+)
+
 
 def test_glue_full_glue_set():
     """test that a ccTLD referral gets a full glue set from the root zone"""
diff --git a/bin/tests/system/hooks/clean.sh b/bin/tests/system/hooks/clean.sh
deleted file mode 100644 (file)
index 83463eb..0000000
+++ /dev/null
@@ -1,16 +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.
-
-rm -f */named.run
-rm -f */named.conf
-rm -f */named.memstats
diff --git a/bin/tests/system/host/clean.sh b/bin/tests/system/host/clean.sh
deleted file mode 100644 (file)
index 5cd0fa0..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f ns1/example.db
-rm -f host.out*
-rm -f host.err*
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
index 754d4f36d4309524c4bbfaec07fa08fa5091c7c2..15300ed932544f704b70cfd9f562d0bbbd768051 100644 (file)
@@ -15,8 +15,6 @@ set -e
 
 . ../conf.sh
 
-$SHELL clean.sh
-
 $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 >ns1/example.db
 
 copy_setports ns1/named.conf.in ns1/named.conf
index 56da3b1f2141a3a44f88835ce9b975b1d6971e8d..b605160eab3138f1cc07cb738e12dcb5908324b1 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "host.err*",
+        "host.out*",
+        "ns1/example.db",
+    ]
+)
+
 
 def test_host(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/idna/clean.sh b/bin/tests/system/idna/clean.sh
deleted file mode 100644 (file)
index 2d6707c..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.
-
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.conf
-rm -f dig.out.*
-rm -f ns*/managed-keys.bind*
index 82a640ceae564cc0e72653efb1759cc6f72f4e03..f4a9ed06f913ec8a599b5141a0a715cbd977c5a1 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+    ]
+)
+
 
 def test_idna(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/include-multiplecfg/clean.sh b/bin/tests/system/include-multiplecfg/clean.sh
deleted file mode 100644 (file)
index 6e1dbca..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.
-
-#
-# Clean up after allow query tests.
-#
-
-rm -f ns*/named.conf
-rm -f */named.memstats
-rm -f ns*/named.run ns*/named.run.prev
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
diff --git a/bin/tests/system/inline/clean.sh b/bin/tests/system/inline/clean.sh
deleted file mode 100644 (file)
index 5fb2e83..0000000
+++ /dev/null
@@ -1,27 +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.
-
-rm -rf ./*/*.jbk \
-  ./*/*.nzd ./*/*.nzd-lock ./*/*.nzf \
-  ./*/named.conf ./*/named.memstats ./*/named.run* \
-  ./*/trusted.conf \
-  ./K* ./*/K* \
-  ./checkecdsa \
-  ./freeze.test* thaw.test* \
-  ./import.key \
-  ././ns*/managed-keys.bind* ./ns*/*.mkeys* \
-  ./*/dsset-* ./*/nzf-* \
-  ./*/*.db ./*/*.db.signed ./*/*.db.jnl ./*/*.db.signed.jnl \
-  ./*.out ./*.out* ./*/*.out ./*/*.out* \
-  ./*/*.bk ./*/*.bk.jnl ./*/*.bk.signed ./*/*.bk.signed.jnl \
-  ns3/a-file ns3/removedkeys ns3/delayedkeys.conf
index f7520b8792f543eefa55d5e101319144c3434a43..094e9607f242310d10d81e6d3adb1e5aa5369153 100644 (file)
@@ -9,6 +9,33 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "K*",
+        "*.out*",
+        "freeze.test*",
+        "import.key",
+        "journalprint.out.*",
+        "thaw.test*",
+        "*/*.out*",
+        "ns*/K*",
+        "ns*/dsset-*",
+        "ns*/*.db",
+        "ns*/*.nzd",
+        "ns*/*.nzf",
+        "ns*/K*",
+        "ns*/trusted.conf",
+        "ns*/*.bk",
+        "ns*/*.jbk",
+        "ns*/*.jnl",
+        "ns*/*.signed",
+        "ns3/delayedkeys.conf",
+        "ns3/removedkeys",
+    ]
+)
+
 
 def test_inline(run_tests_sh):
     run_tests_sh()
index 596b756933ee342069e392abc536fff6d266b785..aefeb55a3b753a1cc9b3a4391171dfa7fe34c7c3 100755 (executable)
 import glob
 import struct
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "K*",
+        "*.out*",
+        "*/*.out*",
+        "ns*/K*",
+        "ns*/dsset-*",
+        "ns*/*.bk",
+        "ns*/*.db",
+        "ns*/*.jbk",
+        "ns*/*.jnl",
+        "ns*/*.nzd",
+        "ns*/*.signed",
+        "ns*/trusted.conf",
+        "ns3/delayedkeys.conf",
+        "ns3/removedkeys",
+    ]
+)
+
 
 class RawFormatHeader(dict):
     """
diff --git a/bin/tests/system/integrity/clean.sh b/bin/tests/system/integrity/clean.sh
deleted file mode 100644 (file)
index 941fccf..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.
-
-rm -f dig.out.test*
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
index 7316af3c149fc12e6cb13337b45b88c29888e3b5..f8ac3a55aed649849eae3a8a25f8f2e105321944 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+    ]
+)
+
 
 def test_integrity(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/ixfr/clean.sh b/bin/tests/system/ixfr/clean.sh
deleted file mode 100644 (file)
index 7144593..0000000
+++ /dev/null
@@ -1,25 +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.
-
-rm -f stats.*
-rm -f ns1/*.db ns1/*.jnl
-rm -f ns3/*.jnl ns3/mytest*.db ns3/subtest*.db
-rm -f ns4/*.jnl ns4/*.db
-rm -f ns5/*.jnl ns5/*.db
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run */named.run.prev
-rm -f */ans.run
-rm -f dig.out.test* dig.out1.test* dig.out2.test* dig.out3.test*
-rm -f ns3/large.db
-rm -f ns*/managed-keys.bind* ns*/*.mkeys
index 2c7fc28792ad13ad23f1c062eafdc0715f1746fd..171a0c6d2dbd7224eeb226aaf4cc7dfe7c07e4ca 100644 (file)
@@ -9,6 +9,26 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out*",
+        "stats.*",
+        "ans*/ans.run",
+        "ns*/*.jnl",
+        "ns1/named.run.prev*",
+        "ns1/myftp.db",
+        "ns3/large.db",
+        "ns3/mytest*.db",
+        "ns3/subtest*.db",
+        "ns4/mytest.db",
+        "ns4/subtest.db",
+        "ns5/mytest.db",
+        "ns5/subtest.db",
+    ]
+)
+
 
 def test_ixfr(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/journal/clean.sh b/bin/tests/system/journal/clean.sh
deleted file mode 100644 (file)
index adab870..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.
-
-rm -f */*.db */*.jnl
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f dig.out*
-rm -f journalprint.out.*
-rm -f ns1/managed-keys.bind
-rm -f ns2/managed-keys.bind
-rm -f tmp.jnl
index e492e12b521952935de6812ba721776d6d034599..3f506ef774b778564ddc1a684b5bfc36b844fa42 100644 (file)
@@ -9,6 +9,20 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "journalprint.out.*",
+        "tmp.jnl",
+        "ns*/*.db",
+        "ns*/*.jnl",
+        "ns1/managed-keys.bind",
+        "ns2/managed-keys.bind",
+    ]
+)
+
 
 def test_journal(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/kasp/clean.sh b/bin/tests/system/kasp/clean.sh
deleted file mode 100644 (file)
index 08acb23..0000000
+++ /dev/null
@@ -1,38 +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.
-
-set -e
-
-rm -f ./keygen.*
-rm -f ./K*.private ./K*.key ./K*.state ./K*.cmp
-rm -rf ./keys/
-rm -f dig.out* rrsig.out.* keyevent.out.* verify.out.* zone.out.*
-rm -f ns*/named.conf ns*/named.memstats ns*/named.run*
-rm -f ns*/named-fips.conf
-rm -f ns*/policies/*.conf
-rm -f ns*/*.jnl ns*/*.jbk
-rm -f ns*/K*.private ns*/K*.key ns*/K*.state
-rm -f ns*/dsset-* ns*/*.db ns*/*.db.signed
-rm -f ns*/keygen.out.* ns*/settime.out.* ns*/signer.out.*
-rm -f ns*/managed-keys.bind
-rm -f ns*/*.mkeys
-rm -f ns*/zones ns*/*.db.infile
-rm -f ns*/*.zsk1 ns*/*.zsk2
-rm -f ns3/legacy-keys.*
-rm -rf ns3/keys/
-rm -f *.created published.test* retired.test*
-rm -f rndc.dnssec.*.out.* rndc.zonestatus.out.*
-rm -f python.out.*
-rm -f created.key-* unused.key-*
-rm -f ns3/ksk/K* ns3/zsk/K*
-rm -rf ./ns3/ksk/ ./ns3/zsk/
index d01125d0c13380415b27040e1625f30e111ffbcb..64b9eac2fd9bd0820c3260539d567cacbd2b92c8 100644 (file)
@@ -9,6 +9,57 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "K*.private",
+        "K*.key",
+        "K*.state",
+        "K*.cmp",
+        "*.created",
+        "dig.out*",
+        "keyevent.out.*",
+        "keygen.out.*",
+        "keys",
+        "published.test*",
+        "python.out.*",
+        "retired.test*",
+        "rndc.dnssec.*.out.*",
+        "rndc.zonestatus.out.*",
+        "rrsig.out.*",
+        "created.key-*",
+        "unused.key-*",
+        "verify.out.*",
+        "zone.out.*",
+        "ns*/K*.private",
+        "ns*/K*.key",
+        "ns*/K*.state",
+        "ns*/*.db",
+        "ns*/*.db.infile",
+        "ns*/*.db.signed",
+        "ns*/*.jbk",
+        "ns*/*.jnl",
+        "ns*/dsset-*",
+        "ns*/keygen.out.*",
+        "ns*/keys",
+        "ns*/ksk",
+        "ns*/ksk/K*",
+        "ns*/zsk",
+        "ns*/zsk",
+        "ns*/zsk/K*",
+        "ns*/named-fips.conf",
+        "ns*/settime.out.*",
+        "ns*/signer.out.*",
+        "ns*/zones",
+        "ns*/policies/*.conf",
+        "ns*/*.zsk1",
+        "ns*/*.zsk2",
+        "ns3/legacy-keys.*",
+        "ns3/dynamic-signed-inline-signing.kasp.db.signed.signed",
+    ]
+)
+
 
 def test_kasp(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/keepalive/clean.sh b/bin/tests/system/keepalive/clean.sh
deleted file mode 100644 (file)
index b891173..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f dig.out.*
-rm -f output
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/named.conf
-rm -f ns*/named.stats
-rm -f ns*/managed-keys.bind*
index a2433c4029f6c9aabd898d4376cfefbd69cd3d3d..892e761b92c27c603fccd8ef49458b1a3be95781 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "output",
+        "ns2/named.stats",
+    ]
+)
+
 
 def test_keepalive(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/keyfromlabel/clean.sh b/bin/tests/system/keyfromlabel/clean.sh
deleted file mode 100644 (file)
index 1a5adb1..0000000
+++ /dev/null
@@ -1,27 +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.
-
-# shellcheck source=conf.sh
-. ../conf.sh
-
-set -e
-
-rm -f K*
-rm -f pin
-rm -f dsset-*
-rm -f *.example.db *.example.db.signed
-rm -f keyfromlabel.out.*
-rm -f pkcs11-tool.out.*
-rm -f signer.out.*
-
-OPENSSL_CONF= softhsm2-util --delete-token --token "softhsm2-keyfromlabel" >/dev/null 2>&1 || echo_i "softhsm2-keyfromlabel token not found for cleaning"
index 9cbf56e125dd6a20ed9a428d0d7a46e5152f995c..93e7154fa52bceb0b4f928942117b08c3255e49e 100644 (file)
@@ -9,6 +9,21 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.example.db",
+        "*.example.db.signed",
+        "K*",
+        "dsset-*",
+        "keyfromlabel.out.*",
+        "pin",
+        "pkcs11-tool.out.*",
+        "signer.out.*",
+    ]
+)
+
 
 def test_keyfromlabel(run_tests_sh):
     run_tests_sh()
index 8fcdbdb7d8550a1c20a4391a6352c370a706ba03..d2b3e86c17c728b718290f5ecce9a37f0c289e8c 100644 (file)
@@ -16,12 +16,71 @@ import shutil
 import time
 from typing import List, Optional
 
+import pytest
+
 import isctest
 from isctest.kasp import (
     Key,
     KeyTimingMetadata,
 )
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "K*",
+        "common.test.*",
+        "future.test.*",
+        "in-the-middle.test.*",
+        "ksk-roll.test.*",
+        "last-bundle.test.*",
+        "past.test.*",
+        "two-tone.test.*",
+        "unlimited.test.*",
+        "ns1/K*",
+        "ns1/_default.nzd",
+        "ns1/_default.nzf",
+        "ns1/common.test.db",
+        "ns1/common.test.db.jbk",
+        "ns1/common.test.db.signed",
+        "ns1/common.test.db.signed.jnl",
+        "ns1/common.test.skr.2",
+        "ns1/future.test.db",
+        "ns1/future.test.db.jbk",
+        "ns1/future.test.db.signed",
+        "ns1/future.test.skr.1",
+        "ns1/in-the-middle.test.db",
+        "ns1/in-the-middle.test.db.jbk",
+        "ns1/in-the-middle.test.db.signed",
+        "ns1/in-the-middle.test.db.signed.jnl",
+        "ns1/in-the-middle.test.skr.1",
+        "ns1/keydir",
+        "ns1/ksk-roll.test.db",
+        "ns1/ksk-roll.test.db.jbk",
+        "ns1/ksk-roll.test.db.signed",
+        "ns1/ksk-roll.test.db.signed.jnl",
+        "ns1/ksk-roll.test.skr.1",
+        "ns1/last-bundle.test.db",
+        "ns1/last-bundle.test.db.jbk",
+        "ns1/last-bundle.test.db.signed",
+        "ns1/last-bundle.test.db.signed.jnl",
+        "ns1/last-bundle.test.skr.1",
+        "ns1/offline",
+        "ns1/past.test.db",
+        "ns1/past.test.db.jbk",
+        "ns1/past.test.db.signed",
+        "ns1/past.test.skr.1",
+        "ns1/two-tone.test.db",
+        "ns1/two-tone.test.db.jbk",
+        "ns1/two-tone.test.db.signed",
+        "ns1/two-tone.test.db.signed.jnl",
+        "ns1/two-tone.test.skr.1",
+        "ns1/unlimited.test.db",
+        "ns1/unlimited.test.db.jbk",
+        "ns1/unlimited.test.db.signed",
+        "ns1/unlimited.test.db.signed.jnl",
+        "ns1/unlimited.test.unlimited.skr.1",
+    ]
+)
+
 
 def between(value, start, end):
     if value is None or start is None or end is None:
diff --git a/bin/tests/system/legacy/clean.sh b/bin/tests/system/legacy/clean.sh
deleted file mode 100644 (file)
index b26c0d9..0000000
+++ /dev/null
@@ -1,30 +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.
-
-rm -f dig.out.*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-
-# build.sh
-rm -f ns1/named_dump.db*
-rm -f ns6/K*
-rm -f ns6/dsset-*
-rm -f ns6/edns512.db
-rm -f ns6/signer.err
-rm -f ns7/K*
-rm -f ns7/dsset-*
-rm -f ns7/edns512-notcp.db
-rm -f ns7/signer.err
-rm -f ns7/trusted.conf
-rm -f ns*/managed-keys.bind*
index ded36f049bff4cec6611a74ec533a6d251d5d578..7d83b066f912caadcd5c4157e3b538d0d20be5e3 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+    ]
+)
+
 
 def test_legacy(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/limits/clean.sh b/bin/tests/system/limits/clean.sh
deleted file mode 100644 (file)
index 635a0e1..0000000
+++ /dev/null
@@ -1,20 +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.
-
-#
-# Clean up after limits tests.
-#
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
diff --git a/bin/tests/system/logfileconfig/clean.sh b/bin/tests/system/logfileconfig/clean.sh
deleted file mode 100644 (file)
index f87a3e8..0000000
+++ /dev/null
@@ -1,37 +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.
-
-#
-# Clean up after log file tests
-#
-rm -f ns1/named.conf
-rm -f ns1/named.args
-rm -f ns1/named.pid ns1/named.run ns1/named.run.prev
-rm -f ns1/named.memstats ns1/dig.out
-rm -f ns1/named_log ns1/named_pipe ns1/named_sym
-rm -rf ns1/named_dir
-rm -f ns1/named_deflog
-rm -f ns1/query_log
-rm -f ns1/named_iso8601
-rm -f ns1/named_iso8601_utc
-rm -f ns1/rndc.out.test*
-rm -f ns1/dig.out.test*
-rm -f ns1/named_vers
-rm -f ns1/named_vers.*
-rm -f ns1/named_ts
-rm -f ns1/named_ts.*
-rm -f ns1/named_inc
-rm -f ns1/named_inc.*
-rm -f ns1/named_unlimited
-rm -f ns1/named_unlimited.*
-rm -f ns*/managed-keys.bind*
index 655a8eeb5a96221c12f491c171d03e6c05276141..dde400b7b9679e8bd1d897b84a5a6739c97e3edb 100644 (file)
@@ -9,6 +9,27 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "ns1/named.args",
+        "ns1/named_deflog",
+        "ns1/named_inc*",
+        "ns1/named_iso8601",
+        "ns1/named_iso8601_utc",
+        "ns1/named_log",
+        "ns1/named_pipe",
+        "ns1/named_sym",
+        "ns1/named_ts*",
+        "ns1/named_unlimited*",
+        "ns1/named_vers*",
+        "ns1/query_log*",
+    ]
+)
+
 
 def test_logfileconfig(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/masterfile/clean.sh b/bin/tests/system/masterfile/clean.sh
deleted file mode 100644 (file)
index 8883a94..0000000
+++ /dev/null
@@ -1,17 +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.
-
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
diff --git a/bin/tests/system/masterformat/clean.sh b/bin/tests/system/masterformat/clean.sh
deleted file mode 100755 (executable)
index c96ad26..0000000
+++ /dev/null
@@ -1,37 +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.
-
-rm -f ./ns1/example.db.raw*
-rm -f ./ns1/example.db.compat
-rm -f ./ns1/example.db.serial.raw
-rm -f ./ns1/large.db ./ns1/large.db.raw
-rm -f ./ns1/signed.db.raw
-rm -f ./ns1/session.key
-rm -f ./ns1/signed.db.raw.jbk
-rm -f ./ns1/signed.db.raw.signed
-rm -f ./ns1/signed.db.raw.signed.jnl
-rm -f ./dig.out.*
-rm -f ./dig.out
-rm -f ./*/named.memstats
-rm -f ./*/named.conf
-rm -f ./*/named.run
-rm -f ./ns2/example.db
-rm -f ./ns2/transfer.db.*
-rm -f ./ns2/formerly-text.db
-rm -f ./ns2/db-*
-rm -f ./ns2/large.bk
-rm -f ./ns3/example.db.raw ./ns3/dynamic.db.raw
-rm -f ./baseline.txt ./text.* ./raw.*
-rm -f ./ns1/Ksigned.* ./ns1/dsset-signed. ./ns1/signed.db.signed
-rm -f ./rndc.out
-rm -f ./ns*/managed-keys.bind*
index b70f036d0885c1eedac8c56f7ce79a3297ac005c..9bd5a815bca6bf2fb9d517d434051617f0d79d75 100644 (file)
@@ -9,6 +9,38 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "baseline.txt",
+        "dig.out.*",
+        "raw.*",
+        "rndc.out*",
+        "text.*",
+        "ns*/*.raw*",
+        "ns*/*.jbk",
+        "ns*/*.jnl",
+        "ns*/*.signed",
+        "ns*/dsset-*",
+        "ns*/K*",
+        "ns1/255types.db",
+        "ns1/example.db.compat",
+        "ns1/on-limit-kasp.db",
+        "ns1/on-limit.db",
+        "ns1/over-limit.db",
+        "ns1/under-limit-kasp.db",
+        "ns1/under-limit.db",
+        "ns2/db-*",
+        "ns2/example.db",
+        "ns2/formerly-text.db",
+        "ns2/transfer.db.full",
+        "ns2/transfer.db.txt",
+        "ns2/under-limit-kasp.bk",
+        "ns2/under-limit.bk",
+    ]
+)
+
 
 def test_masterformat(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/metadata/clean.sh b/bin/tests/system/metadata/clean.sh
deleted file mode 100644 (file)
index f70aa08..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f K* dsset-* *.signed *.new
-rm -f zsk.key ksk.key parent.ksk.key parent.zsk.key
-rm -f pending.key rolling.key standby.key inact.key
-rm -f prerev.key postrev.key oldstyle.key
-rm -f keys sigs
-rm -f tmp.out
-rm -f settime1.test* settime2.test*
index 484328868ebb62c49eda54c58812bd511c20b29d..accfae22650691bb3186ef30149624b99cbd707f 100644 (file)
@@ -9,6 +9,32 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.new",
+        "*.signed",
+        "K*",
+        "dsset-*",
+        "inact.key",
+        "keys",
+        "ksk.key",
+        "oldstyle.key",
+        "parent.ksk.key",
+        "parent.zsk.key",
+        "pending.key",
+        "postrev.key",
+        "prerev.key",
+        "rolling.key",
+        "settime*.test*",
+        "sigs",
+        "standby.key",
+        "tmp.out",
+        "zsk.key",
+    ]
+)
+
 
 def test_metadata(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/mirror/clean.sh b/bin/tests/system/mirror/clean.sh
deleted file mode 100644 (file)
index 2e02183..0000000
+++ /dev/null
@@ -1,30 +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.
-
-rm -f */*.conf
-rm -f */*.db
-rm -f */*.jnl
-rm -f */*.mirror
-rm -f */*.nzd*
-rm -f */*.prev
-rm -f */*.signed
-rm -f */K*
-rm -f */db-*
-rm -f */dsset-*
-rm -f */jn-*
-rm -f */_default.nzf
-rm -f */managed-keys.bind*
-rm -f */named.memstats
-rm -f */named.run
-rm -f dig.out.*
-rm -f rndc.out.*
index f8d6b9d2479d80ccb846ba967956950f7a16e0f6..5aefe671beab08d0efb0ddc32865256458007d42 100644 (file)
@@ -9,6 +9,26 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "ns*/db-*",
+        "ns*/dsset-*",
+        "ns*/jn-*",
+        "ns*/K*",
+        "ns*/*.conf",
+        "ns*/*.db",
+        "ns*/*.jnl",
+        "ns*/*.mirror",
+        "ns*/*.nzf*",
+        "ns*/*.nzd*",
+        "ns*/*.signed",
+    ]
+)
+
 
 def test_mirror(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/mkeys/clean.sh b/bin/tests/system/mkeys/clean.sh
deleted file mode 100644 (file)
index efaefb1..0000000
+++ /dev/null
@@ -1,33 +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.
-
-rm -f */K* */*.signed */trusted.conf */*.jnl */*.bk
-rm -f */island.conf
-rm -f */private.conf
-rm -f */managed*.conf ns1/managed.key ns1/managed.key.id
-rm -f */managed-keys.bind* */named.secroots
-rm -f */named.conf
-rm -f */named.memstats */named.run */named.run.prev
-rm -f dig.out* delv.out* rndc.out* signer.out*
-rm -f dsset-. ns1/dsset-.
-rm -f ns*/managed-keys.bind*
-rm -f ns1/dsset-sub.tld.
-rm -f ns1/dsset-tld.
-rm -f ns1/named.secroots ns1/root.db.signed* ns1/root.db.tmp
-rm -f ns1/signer.out.*
-rm -f ns1/zone.key
-rm -f ns3/broken.conf
-rm -f ns4/dsset-sub.foo.
-rm -f ns5/named.args
-rm -f ns7/view1.mkeys ns7/view2.mkeys
-rm -rf ns4/nope
index 48d79acf28b39f3529249c4da95d9a7c73158f5f..b04d7884763768f2d860fde8a69cbdab300edbb3 100644 (file)
 
 import pytest
 
-pytestmark = pytest.mark.algorithm_set("ecc_default")
+pytestmark = [
+    pytest.mark.algorithm_set("ecc_default"),
+    pytest.mark.extra_artifacts(
+        [
+            "delv.*",
+            "dig.out.*",
+            "dsset-*",
+            "rndc.out.*",
+            "signer.out.*",
+            "ns*/dsset-*",
+            "ns*/*.bk",
+            "ns*/*.jnl",
+            "ns*/K*",
+            "ns*/island.conf",
+            "ns*/managed.conf",
+            "ns*/named.secroots",
+            "ns*/private.conf",
+            "ns*/signer.out.*",
+            "ns*/trusted.conf",
+            "ns*/*.signed",
+            "ns1/managed.key",
+            "ns1/managed.key.id",
+            "ns1/root.db.orig",
+            "ns1/root.db.tmp",
+            "ns1/zone.key",
+            "ns2/managed-keys.bind",
+            "ns3/broken.conf",
+            "ns3/managed-keys.bind",
+            "ns4/nope",
+            "ns5/managed-keys.bind",
+            "ns5/named.args",
+            "ns7/view1.mkeys",
+            "ns7/view2.mkeys",
+        ]
+    ),
+]
 
 
 def test_mkeys(run_tests_sh):
diff --git a/bin/tests/system/multisigner/clean.sh b/bin/tests/system/multisigner/clean.sh
deleted file mode 100644 (file)
index 393efbb..0000000
+++ /dev/null
@@ -1,43 +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.
-
-set -e
-
-rm -f *.created
-rm -f cdnskey.ns*
-rm -f cds.ns*
-rm -f secondary.cdnskey.ns*
-rm -f secondary.cds.ns*
-rm -f created.key-*
-rm -f dig.out.*
-rm -f python.out.*
-rm -f rndc.dnssec.status.out.*
-rm -f unused.key-*
-rm -f verify.out.*
-
-rm -f ns*/*.jbk
-rm -f ns*/*.jnl
-rm -f ns*/*.journal.out.test*
-rm -f ns*/*.signed
-rm -f ns*/*.signed.jnl
-rm -f ns*/*.zsk
-rm -f ns*/db-*
-rm -f ns*/K*
-rm -f ns*/keygen.out.*
-rm -f ns*/managed-keys*
-rm -f ns*/model2.secondary.db
-rm -f ns*/model2.secondary.db
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/settime.out.*
index d1020f3fccef700b22972d0521f030c062326287..06066bc843ec1c1bdf2e008fc72549b4a41954cf 100644 (file)
@@ -16,8 +16,6 @@
 
 set -e
 
-$SHELL clean.sh
-
 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
index 1419270b17f9995a084e3c5ded769112fd16b9f2..61d6c5daa41b2e9de0e2877328791215f079daa1 100644 (file)
@@ -9,6 +9,31 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.created",
+        "cdnskey.ns*",
+        "cds.ns*",
+        "dig.out.*",
+        "rndc.dnssec.status.out.*",
+        "secondary.cdnskey.ns*",
+        "secondary.cds.ns*",
+        "verify.out.*",
+        "ns*/K*",
+        "ns*/db-*",
+        "ns*/keygen.out.*",
+        "ns*/*.jbk",
+        "ns*/*.jnl",
+        "ns*/*.zsk",
+        "ns*/*.signed",
+        "ns*/*.journal.out.*",
+        "ns*/settime.out.*",
+        "ns*/model2.secondary.db",
+    ]
+)
+
 
 def test_multisigner(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/names/clean.sh b/bin/tests/system/names/clean.sh
deleted file mode 100644 (file)
index 8864732..0000000
+++ /dev/null
@@ -1,19 +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.
-
-rm -f dig.*.test*
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/named.pid
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index ebeed2ff561dc1719df5fa73a66fa02112b6b71e..25e188e697564d314944d8c983c8423558b942ad 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.*.test*",
+    ]
+)
+
 
 def test_names(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/notify/clean.sh b/bin/tests/system/notify/clean.sh
deleted file mode 100644 (file)
index fe2156b..0000000
+++ /dev/null
@@ -1,38 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.port
-rm -f ./*/named.run ./*/named.run.prev
-rm -f awk.out.ns?.test*
-rm -f dig.out.?.ns5.test*
-rm -f dig.out.ns2.test*
-rm -f dig.out.ns3.test*
-rm -f dig.out.ns4.test*
-rm -f log.out
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
-rm -f ns2/example.db
-rm -f ns2/x21.db*
-rm -f ns3/example.bk
-rm -f ns4/x21.bk*
-rm -f ns5/x21.bk-b
-rm -f ns5/x21.bk-b.jnl
-rm -f ns5/x21.bk-c
-rm -f ns5/x21.bk-c.jnl
-rm -f ns5/x21.db.jnl
-rm -f tmp
index 105b2d8238af26b526e25f956dd09f5aeb148704..ff8e9df2c72093802c74bc0734e2e4a9e7ffe712 100644 (file)
@@ -9,6 +9,30 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "awk.out.*",
+        "dig.out.*",
+        "ns2/example.db",
+        "ns2/named-tls.conf",
+        "ns2/options-tls.conf",
+        "ns2/x21.db*",
+        "ns3/example.bk",
+        "ns3/named-tls.conf",
+        "ns3/options-tls.conf",
+        "ns4/named.port",
+        "ns4/x21.bk",
+        "ns4/x21.bk.jnl",
+        "ns5/x21.bk-b",
+        "ns5/x21.bk-b.jnl",
+        "ns5/x21.bk-c",
+        "ns5/x21.bk-c.jnl",
+        "ns5/x21.db.jnl",
+    ]
+)
+
 
 def test_notify(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/nsec3/clean.sh b/bin/tests/system/nsec3/clean.sh
deleted file mode 100644 (file)
index 8714dfe..0000000
+++ /dev/null
@@ -1,23 +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.
-
-set -e
-
-rm -f created.key-* *.created unused.key-*
-rm -f dig.out.* rndc.reload.* rndc.signing.* update.out.* verify.out.*
-rm -f ns*/*.jnl ns*/*.jbk ns*/managed-keys.bind
-rm -f ns*/K*.private ns*/K*.key ns*/K*.state
-rm -f ns*/dsset-* ns*/*.db ns*/*.db.signed
-rm -f ns*/keygen.out.* ns*/settime.out.*
-rm -f ns*/named.conf ns*/named.memstats ns*/named.run*
-rm -f ns3/named-fips.conf
index 16df54112db317aa301e88932e262e0de82304de..90476f2518a11048bf31c8d1a217278189f395d1 100644 (file)
@@ -9,6 +9,28 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.created",
+        "dig.out.*",
+        "rndc.reload.*",
+        "rndc.signing.*",
+        "update.out.*",
+        "verify.out.*",
+        "ns*/dsset-**",
+        "ns*/K*",
+        "ns*/settime.out.*",
+        "ns*/*.db",
+        "ns*/*.jbk",
+        "ns*/*.jnl",
+        "ns*/*.signed",
+        "ns*/keygen.out.*",
+        "ns3/named-fips.conf",
+    ]
+)
+
 
 def test_nsec3(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/nslookup/clean.sh b/bin/tests/system/nslookup/clean.sh
deleted file mode 100644 (file)
index 1cace4d..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f ns1/example.db
-rm -f nslookup.out*
-rm -f nslookup.err*
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
index 9553a82aeef4baccbf47d0e1b38b88bfff5f4b45..0b7584498c2e8c2a4b686b3a4ddffd247701165d 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "nslookup.err*",
+        "nslookup.out*",
+        "ns1/example.db",
+    ]
+)
+
 
 def test_nslookup(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/nsupdate/clean.sh b/bin/tests/system/nsupdate/clean.sh
deleted file mode 100644 (file)
index a5f47ca..0000000
+++ /dev/null
@@ -1,77 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f */*.jnl
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run */ans.run
-rm -f */named.run.prev
-rm -f Kxxx.*
-rm -f check.out.*
-rm -f dig.out.*
-rm -f jp.out.ns3.*
-rm -f keygen.out.*
-rm -f nextpart.out.*
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
-rm -f ns1/example.db ns1/unixtime.db ns1/yyyymmddvv.db ns1/update.db ns1/other.db ns1/keytests.db
-rm -f ns1/legacy157.key ns1/legacy161.key ns1/legacy162.key ns1/legacy163.key ns1/legacy164.key ns1/legacy165.key
-rm -f ns1/many.test.db
-rm -f ns1/maxjournal.db
-rm -f ns1/md5.key ns1/sha1.key ns1/sha224.key ns1/sha256.key ns1/sha384.key
-rm -f ns1/sample.db
-rm -f ns1/sha512.key ns1/ddns.key
-rm -f ns1/tls.conf
-rm -f ns1/tls.options
-rm -f ns10/_default.tsigkeys
-rm -f ns10/example.com.db
-rm -f ns10/in-addr.db
-rm -f ns2/example.bk
-rm -f ns2/sample.db
-rm -f ns2/update.bk ns2/update.alt.bk
-rm -f ns3/*.signed
-rm -f ns3/K*
-rm -f ns3/delegation.test.db
-rm -f ns3/dnskey.test.db
-rm -f ns3/dsset-*
-rm -f ns3/example.db
-rm -f ns3/many.test.bk
-rm -f ns3/multisigner.test.db
-rm -f ns3/nsec3param.test.db
-rm -f ns3/relaxed.db
-rm -f ns3/too-big.test.db
-rm -f ns5/local.db
-rm -f ns6/2.0.0.2.ip6.addr.db
-rm -f ns6/in-addr.db
-rm -f ns7/_default.tsigkeys
-rm -f ns7/example.com.db
-rm -f ns7/in-addr.db
-rm -f ns8/_default.tsigkeys
-rm -f ns8/example.com.db
-rm -f ns8/in-addr.db
-rm -f ns9/_default.tsigkeys
-rm -f ns9/denyname.example.db
-rm -f ns9/example.com.db
-rm -f ns9/in-addr.db
-rm -f nsupdate.alg-*
-rm -f nsupdate.out*
-rm -f perl.update_test.out
-rm -f policy.expected.*
-rm -f policy.log*
-rm -f typelist.out.*
-rm -f update.in.*
-rm -f update.out.*
-rm -f verylarge
index 305f1a191f48fbc4508bd3bb1856a2cfdc5095f9..735b6a78e3da90db0970710049b5fda3a54aef0c 100644 (file)
 
 import platform
 
+import pytest
+
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "Kxxx*",
+        "dig.out.*",
+        "nextpart.out.*",
+        "nsupdate.*out*",
+        "policy.expected.*",
+        "policy.log*",
+        "perl.update_test.out",
+        "typelist.out.*",
+        "update.in.*",
+        "verylarge",
+        "ans*/ans.run",
+        "ns*/*.jnl",
+        "ns*/*.jnl",
+        "ns1/ddns.key",
+        "ns1/example.db",
+        "ns1/keytests.db",
+        "ns1/legacy*.key",
+        "ns1/many.test.db",
+        "ns1/maxjournal.db",
+        "ns1/md5.key",
+        "ns1/other.db",
+        "ns1/sample.db",
+        "ns1/sha*.key",
+        "ns1/tls.conf",
+        "ns1/tls.options",
+        "ns1/unixtime.db",
+        "ns1/update.db",
+        "ns1/yyyymmddvv.db",
+        "ns2/example.bk",
+        "ns2/sample.db",
+        "ns2/update.alt.bk",
+        "ns2/update.bk",
+        "ns3/dsset-*",
+        "ns3/K*",
+        "ns3/*.signed",
+        "ns3/delegation.test.db",
+        "ns3/dnskey.test.db",
+        "ns3/example.db",
+        "ns3/multisigner.test.db",
+        "ns3/nsec3param.test.db",
+        "ns3/relaxed.db",
+        "ns3/too-big.test.db",
+        "ns5/local.db",
+        "ns6/2.0.0.2.ip6.addr.db",
+        "ns6/in-addr.db",
+        "ns7/_default.tsigkeys",
+        "ns7/example.com.db",
+        "ns7/in-addr.db",
+        "ns8/_default.tsigkeys",
+        "ns8/example.com.db",
+        "ns8/in-addr.db",
+        "ns9/_default.tsigkeys",
+        "ns9/denyname.example.db",
+        "ns9/example.com.db",
+        "ns9/in-addr.db",
+        "ns10/_default.tsigkeys",
+        "ns10/example.com.db",
+        "ns10/in-addr.db",
+    ]
+)
+
 
 MAX_RUNS = 2 if platform.system() == "FreeBSD" else 1  # GL#3846
 
diff --git a/bin/tests/system/nzd2nzf/clean.sh b/bin/tests/system/nzd2nzf/clean.sh
deleted file mode 100644 (file)
index 9b826ca..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.
-
-rm -f ./*/named.conf
-rm -f ./*/named.run
-rm -f ./*/named.memstats
-rm -f dig.out.*
-rm -f rndc.out*
-rm -f ns*/*.nzf
-rm -f ns*/*.nzd ns*/*.nzd-lock
-rm -f ns*/managed-keys.bind*
index b0304516d029f5576d8e9f992ddf20a10a903b60..a42addd3800174ebf249490fa750a8fbaab08d22 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/*.nzd",
+        "ns*/*.nzf*",
+    ]
+)
+
 
 def test_nzd2nzf(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/padding/clean.sh b/bin/tests/system/padding/clean.sh
deleted file mode 100644 (file)
index 190863a..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f dig.out.*
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/named.stats
-rm -f ns*/named.stats.prev
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
index a2eec7cd6056297d17ce8850b6b05abfbdd63837..1d23191dffe72c2f8facf65902303acdd881c36c 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns2/named.stats*",
+    ]
+)
+
 
 def test_padding(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/pending/clean.sh b/bin/tests/system/pending/clean.sh
deleted file mode 100644 (file)
index a75013f..0000000
+++ /dev/null
@@ -1,26 +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.
-
-rm -rf */*.signed
-rm -rf */*.jnl
-rm -rf */K*
-rm -rf */dsset-*
-rm -rf */named.memstats
-rm -rf */named.run
-rm -rf */trusted.conf
-rm -rf ns1/root.db
-rm -rf ns2/example.db
-rm -rf ns2/example.com.db
-rm -rf nsupdate.out.test
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
index 54b5afb27153482be11ee1231cfe302b9baba989..9f901944c1c401e7b07faf00f47540f836bfd364 100644 (file)
@@ -9,6 +9,23 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "nsupdate.out.*",
+        "ns*/dsset-*",
+        "ns*/K*",
+        "ns*/*.jnl",
+        "ns*/*.signed",
+        "ns*/trusted.conf",
+        "ns*/K*",
+        "ns1/root.db",
+        "ns2/example.com.db",
+        "ns2/example.db",
+    ]
+)
+
 
 def test_pending(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/pipelined/clean.sh b/bin/tests/system/pipelined/clean.sh
deleted file mode 100644 (file)
index 31983f5..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.
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run*
-rm -f raw* output* ./*.out.*
-rm -f ns*/managed-keys.bind*
index 2d7fb928eebb3eb68b11bf09850a198e273c9bb2..7efe483da4304a656bd1d4a90d1e2fdf8fdbf28d 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "output*",
+        "raw*",
+        "ans*/ans.run",
+    ]
+)
+
 
 def test_pipelined(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/proxy/clean.sh b/bin/tests/system/proxy/clean.sh
deleted file mode 100644 (file)
index e8d1b95..0000000
+++ /dev/null
@@ -1,24 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./*/named.run.prev
-rm -f ./dig.out.*
-rm -f ./*/example.db
-rm -rf ./headers.*
index 87e1a99b5230b5d79229de7ff5c68fa17434ef09..98239f282df304208e8d4131181792e157cbf9ee 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/example.db",
+    ]
+)
+
 
 def test_proxy(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/qmin/clean.sh b/bin/tests/system/qmin/clean.sh
deleted file mode 100644 (file)
index 5d7d603..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f */named.memstats
-rm -f */named.run */named.run.prev
-rm -f ans*/query.log*
-rm -f dig.out.*
-rm -f named.run.*
-rm -f ns*/named.conf
-rm -f query*.log
index 0faeebd0e92aeb7d26935face6e1ac5efb551ded..2d9f90b4dba5186341e03ffff55b633735835726 100644 (file)
@@ -9,8 +9,20 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "named.run.*",
+        "query*.log",
+        "ans*/ans.run",
+        "ans*/query.log*",
+    ]
+)
+
 
 # The qmin test is inherently unstable, see GL #904 for details.
 @isctest.mark.flaky(max_runs=3)
diff --git a/bin/tests/system/reclimit/clean.sh b/bin/tests/system/reclimit/clean.sh
deleted file mode 100644 (file)
index 8922aa6..0000000
+++ /dev/null
@@ -1,23 +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.
-
-rm -f dig.out*
-rm -f ans?/ans.run
-rm -f ans2/ans.limit
-rm -f ans4/ans.limit
-rm -f ns?/named.memstats
-rm -f ns?/named.run
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
-rm -f ns*/signed.db*
-rm -f ns*/*.db.signed
index 447c9488e0befd716da980bd66f26a030b4d602b..6a0ab3155698bc1aea2b58eddf4b6dfe12f7d219 100644 (file)
@@ -9,8 +9,22 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "dsset-signed.",
+        "ans*/ans.limit",
+        "ans*/ans.run",
+        "ns1/K*",
+        "ns1/signed.db",
+        "ns1/signed.db.signed",
+    ]
+)
+
 
 # The reclimit is known to be quite unstable. GL #1587
 @isctest.mark.flaky(max_runs=2)
diff --git a/bin/tests/system/redirect/clean.sh b/bin/tests/system/redirect/clean.sh
deleted file mode 100644 (file)
index d8c1207..0000000
+++ /dev/null
@@ -1,37 +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.
-
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.stats
-rm -f dig.out.*
-rm -f ns1/K*
-rm -f ns1/dsset-nsec3.
-rm -f ns1/dsset-signed.
-rm -f ns1/nsec3.db*
-rm -f ns1/signed.db*
-rm -f ns2/*.db
-rm -f ns3/K*
-rm -f ns3/dsset-nsec3.
-rm -f ns3/dsset-signed.
-rm -f ns3/nsec3.db*
-rm -f ns3/signed.db*
-rm -f ns4/*.db
-rm -f ns5/dsset-*
-rm -f ns5/K* ns5/sign.ns5.*
-rm -f ns5/root.db ns5/root.db.signed
-rm -f ns5/signed.db ns5/signed.db.signed
-rm -f ns6/signed.db.signed
-rm -f rndc.out
-rm -f ns*/managed-keys.bind*
index 9009391236c25431ba8be3dfe18c20034e206c1d..5f20aad6f266a322fe03c7decaf97d64d9dd1ad1 100644 (file)
@@ -9,6 +9,38 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns1/K*",
+        "ns1/*.signed",
+        "ns1/dsset-nsec3.",
+        "ns1/dsset-signed.",
+        "ns1/nsec3.db",
+        "ns1/signed.db",
+        "ns2/example.db",
+        "ns2/named.stats",
+        "ns2/redirect.db",
+        "ns3/K*",
+        "ns3/*.signed",
+        "ns3/dsset-nsec3.",
+        "ns3/dsset-signed.",
+        "ns3/nsec3.db",
+        "ns3/signed.db",
+        "ns4/example.db",
+        "ns4/named.stats",
+        "ns5/K*",
+        "ns5/dsset-*",
+        "ns5/*.signed",
+        "ns5/root.db",
+        "ns5/sign.ns5.*",
+        "ns5/signed.db",
+        "ns6/signed.db.signed",
+    ]
+)
+
 
 def test_redirect(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/resolver/clean.sh b/bin/tests/system/resolver/clean.sh
deleted file mode 100644 (file)
index 1d98651..0000000
+++ /dev/null
@@ -1,39 +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.
-
-#
-# Clean up after resolver tests.
-#
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run ./*/named.run.prev
-rm -f ./*/ans.run
-rm -f ./*/*.jdb
-rm -f dig.out dig.out.* dig.*.out.*
-rm -f dig.*.foo.*
-rm -f dig.*.bar.*
-rm -f dig.*.prime.*
-rm -f nextpart.out.*
-rm -f ns4/tld.db
-rm -f ns6/K*
-rm -f ns6/example.net.db.signed ns6/example.net.db
-rm -f ns6/ds.example.net.db.signed ns6/ds.example.net.db
-rm -f ns6/dsset-ds.example.net*
-rm -f ns6/dsset-example.net* ns6/example.net.db.signed.jnl
-rm -f ns6/named.stats*
-rm -f ns6/to-be-removed.tld.db ns6/to-be-removed.tld.db.jnl
-rm -f ns7/server.db ns7/server.db.jnl
-rm -f resolve.out.*.test*
-rm -f .digrc
-rm -f ns5/trusted.conf
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index d8de300aa0263b53e54eb48056472bdb510c7f53..6e5a7967df24c6278afdd1818f19718cf5f1cc5f 100644 (file)
@@ -9,6 +9,35 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        ".digrc",
+        "dig*.out*",
+        "dig.*.foo.*",
+        "dig.*.bar.*",
+        "dig.*.prime.*",
+        "nextpart.out.*",
+        "ans*/ans.run",
+        "ans*/query.log",
+        "ns4/tld.db",
+        "ns5/trusted.conf",
+        "ns6/K*",
+        "ns6/ds.example.net.db",
+        "ns6/ds.example.net.db.signed",
+        "ns6/dsset-ds.example.net.",
+        "ns6/dsset-example.net.",
+        "ns6/example.net.db",
+        "ns6/example.net.db.signed",
+        "ns6/example.net.db.signed.jnl",
+        "ns6/to-be-removed.tld.db",
+        "ns6/to-be-removed.tld.db.jnl",
+        "ns7/server.db",
+        "ns7/server.db.jnl",
+    ]
+)
+
 
 def test_resolver(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/rndc/clean.sh b/bin/tests/system/rndc/clean.sh
deleted file mode 100644 (file)
index 3b959f5..0000000
+++ /dev/null
@@ -1,36 +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.
-
-rm -f dig.out.*.test*
-rm -f ns*/*.nta
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run ns*/named.run.prev
-rm -f ns2/named.stats
-rm -f ns2/named_dump.db*
-rm -f ns2/nil.db ns2/other.db ns2/static.db ns2/*.jnl
-rm -f ns2/secondkey.conf
-rm -f ns2/session.key
-rm -f ns3/named_dump.db*
-rm -f ns4/*.nta
-rm -f ns4/example.db ns4/example.db.jnl
-rm -f ns4/key?.conf
-rm -f ns6/huge.zone.db
-rm -f ns7/include.db ns7/test.db ns7/*.jnl
-rm -f ns7/named_dump.db*
-rm -f nsupdate.out.*.test*
-rm -f nsupdate.out.test*
-rm -f python.out.*.test*
-rm -f rndc.out.*.test*
-rm -f rndc.out.test*
index 3860ec602f62d59efcf8c765cf911a395efebb7c..c195a0db10dd5f8dcb2a06f5f2d70b9365cfcf84 100644 (file)
@@ -20,6 +20,20 @@ import isctest
 pytest.importorskip("dns")
 import dns.message
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns2/nil.db",
+        "ns2/other.db",
+        "ns2/secondkey.conf",
+        "ns2/static.db",
+        "ns4/example.db",
+        "ns4/key*.conf",
+        "ns6/huge.zone.db",
+        "ns7/include.db",
+        "ns7/test.db",
+    ]
+)
+
 
 def test_cve_2023_3341(control_port):
     depth = 4500
index ac6a4dc93078527ada9cd242475fd425e631a72e..c7ab0079834c1e25527e9478a6bef1042844def7 100644 (file)
@@ -9,6 +9,31 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
 
-def test_rndc(run_tests_sh):
-    run_tests_sh()
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "nsupdate.out.*",
+        "rndc.out.*",
+        "ns2/*.jnl",
+        "ns2/named.stats",
+        "ns2/named_dump.db.*",
+        "ns2/nil.db",
+        "ns2/other.db",
+        "ns2/secondkey.conf",
+        "ns2/static.db",
+        "ns3/all.nta",
+        "ns3/named_dump.db.*",
+        "ns3/none.nta",
+        "ns4/example.db",
+        "ns4/example.db.jnl",
+        "ns4/key*.conf",
+        "ns4/normal.nta",
+        "ns4/view with a space.nta",
+        "ns6/huge.zone.db",
+        "ns7/include.db",
+        "ns7/test.db",
+        "ns7/test.db.jnl",
+    ]
+)
diff --git a/bin/tests/system/rootkeysentinel/clean.sh b/bin/tests/system/rootkeysentinel/clean.sh
deleted file mode 100644 (file)
index e9cd3cc..0000000
+++ /dev/null
@@ -1,26 +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.
-
-rm -f dig.out.ns?.test*
-rm -f */dsset-*
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f */trusted.conf
-rm -f ns1/K.*
-rm -f ns1/root.db
-rm -f ns1/root.db.signed
-rm -f ns2/Kexample.*
-rm -f ns2/example.db
-rm -f ns2/example.db.signed
-rm -f ns*/managed-keys.bind*
index d1090d097252bc0fe745e266e4d81364853738b9..2e66b580d92acdb2bb2bd4c28ea0e8bb36ce6a3c 100644 (file)
@@ -9,6 +9,22 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns*/dsset-*",
+        "ns*/trusted.conf",
+        "ns1/K*",
+        "ns1/root.db",
+        "ns1/root.db.signed",
+        "ns2/Kexample*",
+        "ns2/example.db",
+        "ns2/example.db.signed",
+    ]
+)
+
 
 def test_rootkeysentinel(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/rpz/clean.sh b/bin/tests/system/rpz/clean.sh
deleted file mode 100644 (file)
index 9fb73f6..0000000
+++ /dev/null
@@ -1,31 +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.
-
-rm -f ns*/*.key ns*/*.private
-rm -f ns2/tld2s.db */bl.tld2.db */bl.tld2s.db
-rm -f ns3/bl*.db ns3/fast-expire.db ns*/empty.db
-rm -f ns3/manual-update-rpz.db
-rm -f ns3/mixed-case-rpz.db
-rm -f ns5/example.db ns5/bl.db ns5/fast-expire.db ns5/expire.conf
-rm -f ns8/manual-update-rpz.db
-rm -f */policy2.db
-rm -f */*.jnl
-rm -f proto.* dsset-* trusted.conf dig.out* nsupdate.tmp ns*/*tmp
-rm -f ns5/requests ns5/*.perf
-rm -f */named.memstats */*.run */*.run.prev */named.stats */session.key
-rm -f */*.log */*core */*.pid
-rm -f ns*/named.lock
-rm -f ns*/named.conf
-rm -f ns*/*switch
-rm -f ns*/managed-keys.bind*
-rm -f tmp
index 1d551b53a090f0590810fbd012492e54164dfcca..685713870916b61fbdc6695737b3f979b8cebd0d 100644 (file)
@@ -9,6 +9,56 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out*",
+        "dnsrps.cache",
+        "dnsrps.conf",
+        "dnsrps.zones",
+        "proto.*",
+        "trusted.conf",
+        "ns2/K*",
+        "ns2/bl.tld2.db",
+        "ns2/tld2s.db",
+        "ns3/bl-2.db",
+        "ns3/bl-cname.db",
+        "ns3/bl-disabled.db",
+        "ns3/bl-drop.db",
+        "ns3/bl-garden.db",
+        "ns3/bl-given.db",
+        "ns3/bl-no-op.db",
+        "ns3/bl-nodata.db",
+        "ns3/bl-nxdomain.db",
+        "ns3/bl-passthru.db",
+        "ns3/bl-tcp-only.db",
+        "ns3/bl-wildcname.db",
+        "ns3/bl.db",
+        "ns3/bl.tld2.db",
+        "ns3/fast-expire.db",
+        "ns3/manual-update-rpz.db",
+        "ns3/mixed-case-rpz.db",
+        "ns3/named.conf.tmp",
+        "ns3/named.stats",
+        "ns5/bl.db",
+        "ns5/empty.db",
+        "ns5/empty.db.jnl",
+        "ns5/example.db",
+        "ns5/expire.conf",
+        "ns5/fast-expire.db",
+        "ns5/named.stats",
+        "ns5/policy2.db",
+        "ns5/policy2.db.jnl",
+        "ns5/rpz-switch",
+        "ns6/bl.tld2s.db",
+        "ns6/empty.db",
+        "ns6/named.stats",
+        "ns7/policy2.db",
+        "ns8/manual-update-rpz.db",
+    ]
+)
+
 
 def test_rpz(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/rpzextra/clean.sh b/bin/tests/system/rpzextra/clean.sh
deleted file mode 100644 (file)
index 50fe41b..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f ns*/*.jnl
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run
-rm -f ns*/rpz*.txt
-rm -rf __pycache__
-rm -f ns3/*-rpz-external.local.db
index bf2fe94c6b4d6d25121d92589da583cd939c9a10..359b7aab437fab289cff6536c5d80be4f3faa5be 100644 (file)
@@ -20,6 +20,13 @@ from isctest.compat import dns_rcode
 
 import dns.message
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns3/*-rpz-external.local.db",
+        "ns3/rpz*.txt",
+    ]
+)
+
 
 @pytest.mark.parametrize(
     "qname,source,rcode",
diff --git a/bin/tests/system/rpzrecurse/clean.sh b/bin/tests/system/rpzrecurse/clean.sh
deleted file mode 100644 (file)
index b8cbe17..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.
-
-# Clean up after rpz tests.
-
-rm -f dig.out.*
-
-rm -f ns*/named.memstats
-rm -f ns*/*.run
-rm -f ns*/*core *core
-rm -f ns*/named.conf
-
-rm -f ns2/*.local
-rm -f ns2/*.queries
-rm -f ns2/named.[0-9]*.conf
-rm -f ns2/named.conf.header
-
-rm -f ns3/named.conf
-rm -f ns3/named.run.prev
-
-rm -f ns*/session.key
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index 903ac4982097807937ddd8152d6ad533d6bedb27..983c6c3c331a0bb2696252739500ab71bb4a6bc9 100644 (file)
@@ -9,6 +9,21 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "dnsrps.cache",
+        "dnsrps.conf",
+        "ans*/ans.run",
+        "ns2/*.queries",
+        "ns2/*.local",
+        "ns2/named.*.conf",
+        "ns2/named.conf.header",
+    ]
+)
+
 
 def test_rpzrecurse(run_tests_sh):
     run_tests_sh()
index 0bdde9ea4ac43b2be84b7f1cd7f1c1cbf42209d1..e7883539b06da0dfc95f7ac8c5b23be660e63a7a 100644 (file)
 
 import os
 
-import isctest
 import pytest
 
+import isctest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "tempzone",
+    ]
+)
+
 
 @pytest.mark.parametrize(
     "option,expected_result",
diff --git a/bin/tests/system/rrl/clean.sh b/bin/tests/system/rrl/clean.sh
deleted file mode 100644 (file)
index 2d41aca..0000000
+++ /dev/null
@@ -1,20 +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.
-
-# Clean up after rrl tests.
-
-rm -f */named.memstats */named.run */named.stats */log-* */session.key
-rm -f dig.out* *mdig.out*
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.conf
-rm -f ns3/bl*.db */*.jnl */*.core */*.pid
index c32305b5d71aea56e4aea0d9d6f942a533570d39..99be723c93fcc8ca210827b414b42907d6e85aa0 100644 (file)
@@ -9,8 +9,19 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*mdig.out*",
+        "dig.out.*",
+        "ns*/log-*",
+        "ns2/named.stats",
+    ]
+)
+
 
 # The rrl is known to be quite unstable. GL #172
 @isctest.mark.flaky(max_runs=2)
diff --git a/bin/tests/system/rrsetorder/clean.sh b/bin/tests/system/rrsetorder/clean.sh
deleted file mode 100644 (file)
index ce58c84..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.
-
-rm -f dig.out.test*
-rm -f dig.out.cyclic dig.out.fixed dig.out.random dig.out.nomatch dig.out.none
-rm -f dig.out.0 dig.out.1 dig.out.2 dig.out.3
-rm -f dig.out.cyclic2
-rm -f ns2/root.bk
-rm -f ns?/named.run ns?/named.core
-rm -f */named.memstats
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
index e413f979673e2289278d38e67affb68b8e07ab9c..f23dd096a5b395e2bd68ffb0e788c6d6896cce6a 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns2/root.bk",
+    ]
+)
+
 
 def test_rrsetorder(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/rsabigexponent/clean.sh b/bin/tests/system/rsabigexponent/clean.sh
deleted file mode 100644 (file)
index c2554f2..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.
-
-rm -f K* */K* */dsset-*. */*.signed */trusted.conf */tmp*
-rm -f ns*/dsset-example
-rm -f ns*/named.run
-rm -f ns*/named.memstats
-rm -f ns1/root.db
-rm -f ns2/signer.err
-rm -f dig.out.*
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
index c0c288e6523287a3de4f80b160888da864f52238..571fe2fe132704eef378352d5e51ad0810147d54 100644 (file)
@@ -17,6 +17,19 @@ import pytest
 
 import isctest
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "options.conf",
+        "ns*/dsset-*",
+        "ns*/K*",
+        "ns*/trusted.conf",
+        "ns*/*.signed",
+        "ns1/root.db",
+        "ns2/signer.err",
+    ]
+)
+
 CHECKCONF = os.environ["CHECKCONF"]
 
 
diff --git a/bin/tests/system/runtime/clean.sh b/bin/tests/system/runtime/clean.sh
deleted file mode 100644 (file)
index e61a7af..0000000
+++ /dev/null
@@ -1,25 +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.
-
-[ -d ns2/nope ] && chmod 755 ns2/nope
-
-rm -f *.pid
-rm -f */named*.run
-rm -f */named.memstats
-rm -f kill*.out
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named*.pid
-rm -f ns2/named.conf ns2/named-alt*.conf
-rm -f rndc.out*
-rm -rf ns2/nope
-rm -rf ns2/tmp.*
index 089690e2562721fda8e5b29829e1b792501a4f5a..dee5d643ef06d05fa27aba38c66b9dd861c0f72e 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "rndc.out.*",
+        "ns2/named-alt*.conf",
+        "ns2/named*.run",
+        "ns2/nope",
+        "ns2/tmp.*",
+    ]
+)
+
 
 def test_runtime(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/serve-stale/clean.sh b/bin/tests/system/serve-stale/clean.sh
deleted file mode 100644 (file)
index b4a0d50..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.
-
-rm -f dig.out*
-rm -f ns*/named.conf
-rm -f ns*/root.bk
-rm -f rndc.out.test*
-rm -f */named.run */named.memstats
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named_dump*
-rm -f ns*/named.stats*
-rm -f ns*/named.run.prev
index 3e6d3a198198b61fea4c3ad982f4955a03c07aaf..18b84e8b791c7bcdaaa2a18e99ccc0b06b9f0988 100644 (file)
@@ -9,6 +9,20 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "ans*/ans.run",
+        "ns*/named.stats*",
+        "ns*/named_dump*",
+        "ns*/named.stats*",
+        "ns*/root.bk",
+    ]
+)
+
 
 def test_serve_stale(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/sfcache/clean.sh b/bin/tests/system/sfcache/clean.sh
deleted file mode 100644 (file)
index 2d380fc..0000000
+++ /dev/null
@@ -1,26 +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.
-
-set -e
-
-rm -f ./*/K*.key ./*/K*.private ./*/*.signed ./*/*.db ./*/dsset-*
-rm -f ./*/managed.conf ./*/trusted.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.conf
-rm -f ./*/named.run ./*/named.run.prev
-rm -f ./dig.*
-rm -f ./rndc.*
-rm -f ./sfcache.*
-rm -f ./ns*/managed-keys.bind*
-rm -f ./ns5/named.run.part*
-rm -f ./ns5/named_dump*
index d323b395c4fb420bde332a74334276968fa0274c..043c5269ce6ffb7a9e38240f8709a0362d1cd557 100644 (file)
@@ -9,6 +9,25 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "sfcache.*",
+        "ns*/*.db",
+        "ns*/*.signed",
+        "ns*/dsset-*",
+        "ns*/K*.key",
+        "ns*/K*.private",
+        "ns*/managed.conf",
+        "ns*/trusted.conf",
+        "ns5/named.run.*",
+        "ns5/named_dump*",
+    ]
+)
+
 
 def test_sfcache(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/shutdown/clean.sh b/bin/tests/system/shutdown/clean.sh
deleted file mode 100644 (file)
index 0f949a4..0000000
+++ /dev/null
@@ -1,19 +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.
-
-rm -f ns*/*.jnl
-rm -f ns*/named.memstats
-rm -f ns*/rpz*.txt
-rm -f */named.conf
-rm -f */named.run
-rm -rf __pycache__
index 93c4c3c704f3ac4d7dc6db1542a858280051804a..3c168a65560c205e5fce99e0b24ee7471ca34bcc 100755 (executable)
@@ -26,6 +26,13 @@ import dns.exception
 
 import isctest
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "resolver/named.conf",
+        "resolver/named.run",
+    ]
+)
+
 
 def do_work(named_proc, resolver_ip, instance, kill_method, n_workers, n_queries):
     """Creates a number of A queries to run in parallel
diff --git a/bin/tests/system/smartsign/clean.sh b/bin/tests/system/smartsign/clean.sh
deleted file mode 100644 (file)
index 7acfdfa..0000000
+++ /dev/null
@@ -1,14 +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.
-
-rm -f K* dsset-* *.signed dnskey.sigs other.sigs dsset.out
index e291b64eec7ba6ab49d68d1e934ba63ae9b9b406..68b0bf4ea557b3b064ff17e97a908adf55c3acf2 100644 (file)
@@ -9,6 +9,19 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.signed",
+        "K*",
+        "dnskey.sigs",
+        "dsset-*",
+        "dsset.out",
+        "other.sigs",
+    ]
+)
+
 
 def test_smartsign(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/sortlist/clean.sh b/bin/tests/system/sortlist/clean.sh
deleted file mode 100644 (file)
index afbae2d..0000000
+++ /dev/null
@@ -1,17 +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.
-
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.conf
-rm -f ns*/managed-keys.bind*
diff --git a/bin/tests/system/spf/clean.sh b/bin/tests/system/spf/clean.sh
deleted file mode 100644 (file)
index c0ca9eb..0000000
+++ /dev/null
@@ -1,17 +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.
-
-rm -f ns1/named.run
-rm -f ns1/named.memstats
-rm -f ns*/named.conf
-rm -f ns*/managed-keys.bind*
diff --git a/bin/tests/system/staticstub/clean.sh b/bin/tests/system/staticstub/clean.sh
deleted file mode 100755 (executable)
index 50202e2..0000000
+++ /dev/null
@@ -1,27 +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.
-
-rm -f tmp
-rm -f dig.out.*
-rm -f ns*/named.conf
-rm -f ns3/example.db
-rm -f ns3/undelegated.db
-rm -f ns4/sub.example.db
-rm -f ns?/named.memstats
-rm -f ns?/named.run
-rm -f ns?/named_dump.db
-rm -rf */*.signed
-rm -rf */K*
-rm -rf */dsset-*
-rm -rf */trusted.conf
-rm -f ns*/managed-keys.bind*
index 52c661c3e80f215c668d64ac77f3e2ec955d8212..208326732eadf599cae06f1e68ccefc047d67547 100644 (file)
@@ -9,6 +9,22 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "tmp",
+        "ns*/trusted.conf",
+        "ns*/dsset-*",
+        "ns*/K*",
+        "ns*/*.signed",
+        "ns3/example.db",
+        "ns3/undelegated.db",
+        "ns4/sub.example.db",
+    ]
+)
+
 
 def test_staticstub(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/statistics/clean.sh b/bin/tests/system/statistics/clean.sh
deleted file mode 100644 (file)
index ac11bce..0000000
+++ /dev/null
@@ -1,31 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ns3/example.bk
-rm -f ns3/internal.bk
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f */ans.run
-rm -f */named.stats
-rm -f */named.stats-stage*
-rm -f dig.out*
-rm -f curl.out.*
-rm -f stats*out
-rm -f ns*/managed-keys.bind*
-rm -f xsltproc.out.*
-rm -f named.stats.* ns*/named.stats.* ns*/named.recursing
index d87688f0dceb13e1e289f23a5e90888137739df3..48d403074004d079065d34fab02b5c785d582cf6 100644 (file)
@@ -9,6 +9,21 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "curl.out.*",
+        "dig.out.*",
+        "named.stats.*",
+        "stats.xml.out",
+        "xsltproc.out.*",
+        "ans*/ans.run",
+        "ns*/statistics-channels.conf",
+        "ns*/named.recursing",
+    ]
+)
+
 
 def test_statistics(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/statschannel/clean.sh b/bin/tests/system/statschannel/clean.sh
deleted file mode 100644 (file)
index d1ce8d2..0000000
+++ /dev/null
@@ -1,35 +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.
-
-rm -f ./Kdnssec*
-rm -f bind9.xsl.1 bind9.xsl.2 bind9.xsl.3
-rm -f compressed.headers regular.headers compressed.out regular.out
-rm -f dig.out*
-rm -f nc.out* curl.out* header.in*
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.conf
-rm -f ns*/named.memstats
-rm -f ns*/named.run*
-rm -f ns*/named.stats
-rm -f ns*/signzone.out.*
-rm -f ns2/*.db.signed* ns2/dsset-*. ns2/*.jbk
-rm -f ns2/Kdnssec* ns2/dnssec.*.id
-rm -f ns2/Kmanykeys* ns2/manykeys.*.id
-rm -f ns2/dnssec.db.signed* ns2/dsset-dnssec.
-rm -f ns3/*.db
-rm -f traffic traffic.out.* traffic.json.* traffic.xml.*
-rm -f xml.*mem json.*mem
-rm -f xml.*stats json.*stats
-rm -f zones zones.out.* zones.json.* zones.xml.* zones.expect.*
-rm -f xfrins xfrins.*
-rm -rf ./__pycache__
index ef4696cdcf6794a84533fd7fa266d0ffd9a0abec..62f8bcab14e7a106c2ced5ea330d99b0341d00e2 100755 (executable)
@@ -20,9 +20,28 @@ import isctest.mark
 pytest.register_assert_rewrite("generic")
 import generic
 
-pytestmark = isctest.mark.have_json_c
 requests = pytest.importorskip("requests")
 
+pytestmark = [
+    isctest.mark.have_json_c,
+    pytest.mark.extra_artifacts(
+        [
+            "ns2/*.jnl",
+            "ns2/*.signed",
+            "ns2/dsset-*",
+            "ns2/K*",
+            "ns2/dnssec.db.signed",
+            "ns2/dnssec.*.id",
+            "ns2/manykeys.*.id",
+            "ns2/signzone.out.*",
+            "ns3/_default.nzd",
+            "ns3/example-tcp.db",
+            "ns3/example-tls.db",
+            "ns3/example.db",
+        ]
+    ),
+]
+
 
 # JSON helper functions
 def fetch_zones_json(statsip, statsport):
index 85d5d14acf642a822ccaaf11bbef5c6794d8e86d..2f7a826aa4bb1f4c6440809ee101b8430d2c9f74 100644 (file)
@@ -9,6 +9,43 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "K*",
+        "bind9.xsl.1",
+        "bind9.xsl.2",
+        "compressed.headers",
+        "compressed.out",
+        "curl.*",
+        "dig.out.*",
+        "header.in*",
+        "json.*",
+        "nc.out*",
+        "regular.headers",
+        "regular.out",
+        "xfrins*",
+        "xml.*mem",
+        "xml.*stats",
+        "zones*",
+        "ns2/*.jnl",
+        "ns2/*.signed",
+        "ns2/dsset-*",
+        "ns2/K*",
+        "ns2/dnssec.*.id",
+        "ns2/manykeys.*.id",
+        "ns2/named.stats",
+        "ns2/signzone.out.*",
+        "ns3/_default.nzf*",
+        "ns3/_default.nzd*",
+        "ns3/example-new.db",
+        "ns3/example-tcp.db",
+        "ns3/example-tls.db",
+        "ns3/example.db",
+    ]
+)
+
 
 def test_statschannel(run_tests_sh):
     run_tests_sh()
index 93ba0bdb2fd7dc9d4f100bda8a90b75e16dc3a60..e301f6bf60107e24f6f30e1a038bec62cf2fa9cb 100755 (executable)
@@ -21,9 +21,27 @@ import isctest.mark
 pytest.register_assert_rewrite("generic")
 import generic
 
-pytestmark = isctest.mark.have_libxml2
 requests = pytest.importorskip("requests")
 
+pytestmark = [
+    isctest.mark.have_libxml2,
+    pytest.mark.extra_artifacts(
+        [
+            "ns2/K*",
+            "ns2/*.jnl",
+            "ns2/*.signed",
+            "ns2/dsset-*",
+            "ns2/dnssec.*.id",
+            "ns2/manykeys.*.id",
+            "ns2/signzone.out.*",
+            "ns3/_default.nzd",
+            "ns3/example-tcp.db",
+            "ns3/example-tls.db",
+            "ns3/example.db",
+        ]
+    ),
+]
+
 
 # XML helper functions
 def fetch_zones_xml(statsip, statsport):
diff --git a/bin/tests/system/stress/clean.sh b/bin/tests/system/stress/clean.sh
deleted file mode 100644 (file)
index cf460f8..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.
-
-rm -f ns?/zone*.bk
-
-rm -f ns2/zone0*.db
-rm -f ns2/zone0*.jnl
-rm -f */named.memstats
-rm -f ns*/managed-keys.bind*
-rm -f ns*/named.run
-rm -f ns*/named.conf
index f621da7c7b304b446537412e9bede82339cdafac..2d5eefd3bf137f10cff6d4aa3557fa44fef4740a 100644 (file)
@@ -13,9 +13,17 @@ import concurrent.futures
 import os
 import time
 
+import dns.update
+import pytest
+
 import isctest
 
-import dns.update
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns2/zone0*.db",
+        "ns2/zone0*.jnl",
+    ]
+)
 
 
 def rndc_loop(test_state, server):
diff --git a/bin/tests/system/stub/clean.sh b/bin/tests/system/stub/clean.sh
deleted file mode 100644 (file)
index 1198410..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.
-
-#
-# Clean up after stub tests.
-#
-rm -f dig.out.ns[35] ns3/child.example.st
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
-rm -f ns5/example.db
index 311e450687f7600c320e7318e0e2b5656514a291..7511f26bfa148e81cabefdbb65283bec5469e617 100644 (file)
@@ -9,6 +9,16 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns3/child.example.st",
+        "ns5/example.db",
+    ]
+)
+
 
 def test_stub(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/synthfromdnssec/clean.sh b/bin/tests/system/synthfromdnssec/clean.sh
deleted file mode 100644 (file)
index bd86173..0000000
+++ /dev/null
@@ -1,50 +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.
-
-set -e
-
-rm -f ./*/named.memstats
-rm -f ./*/named.conf
-rm -f ./*/named.run
-rm -f ./*/named.run.prev
-rm -f ./*/named.stats
-rm -f ./dig.out.*
-rm -f ./ns1/K*+*+*.key
-rm -f ./ns1/K*+*+*.private
-rm -f ./ns1/dsset-*
-rm -f ./ns1/example.db
-rm -f ./ns1/example.db.signed
-rm -f ./ns1/insecure.example.db
-rm -f ./ns1/insecure.example.db.signed
-rm -f ./ns1/dnamed.db
-rm -f ./ns1/dnamed.db.signed
-rm -f ./ns1/minimal.db
-rm -f ./ns1/minimal.db.signed
-rm -f ./ns1/root.db
-rm -f ./ns1/root.db.signed
-rm -f ./ns1/soa-without-dnskey.db
-rm -f ./ns1/soa-without-dnskey.db.signed
-rm -f ./ns1/trusted.conf
-rm -f ./ns2/named_dump.db
-rm -f ./ns*/managed-keys.bind*
-rm -f ./nodata.out ./insecure.nodata.out
-rm -f ./nxdomain.out ./insecure.nxdomain.out
-rm -f ./wild.out ./insecure.wild.out
-rm -f ./wildcname.out ./insecure.wildcname.out
-rm -f ./wildnodata1nsec.out ./insecure.wildnodata1nsec.out
-rm -f ./wildnodata2nsec.out ./insecure.wildnodata2nsec.out
-rm -f ./wildnodata2nsecafterdata.out ./insecure.wildnodata2nsecafterdata.out
-rm -f ./minimal.nxdomain.out
-rm -f ./black.out
-rm -f ./xml.out*
-rm -f ./json.out*
index 5cbf8488ae2cb3d1b1f6cc389bc709a1951f26d2..4a2918e27b8fc27ba3d1555b82a6345a6bd60d4b 100644 (file)
@@ -9,6 +9,50 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "black.out",
+        "dig.out.*",
+        "insecure.nodata.out",
+        "insecure.nxdomain.out",
+        "insecure.wild.out",
+        "insecure.wildcname.out",
+        "insecure.wildnodata1nsec.out",
+        "insecure.wildnodata2nsec.out",
+        "insecure.wildnodata2nsecafterdata.out",
+        "json.out*",
+        "minimal.nxdomain.out",
+        "nodata.out",
+        "nxdomain.out",
+        "wild.out",
+        "wildcname.out",
+        "wildnodata1nsec.out",
+        "wildnodata2nsec.out",
+        "wildnodata2nsecafterdata.out",
+        "xml.out*",
+        "ns*/named.stats",
+        "ns*/statistics-channels.conf",
+        "ns1/K*+*+*.key",
+        "ns1/K*+*+*.private",
+        "ns1/dnamed.db",
+        "ns1/dnamed.db.signed",
+        "ns1/dsset-*",
+        "ns1/example.db",
+        "ns1/example.db.signed",
+        "ns1/insecure.example.db",
+        "ns1/insecure.example.db.signed",
+        "ns1/minimal.db",
+        "ns1/minimal.db.signed",
+        "ns1/root.db",
+        "ns1/root.db.signed",
+        "ns1/soa-without-dnskey.db",
+        "ns1/soa-without-dnskey.db.signed",
+        "ns1/trusted.conf",
+    ]
+)
+
 
 def test_synthfromdnssec(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/tcp/clean.sh b/bin/tests/system/tcp/clean.sh
deleted file mode 100644 (file)
index 4a25e92..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.
-
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./*/named.conf
-rm -f ./*/named.stats*
-rm -f ans6/ans.run*
-rm -f dig.out*
-rm -f rndc.out*
-rm -f ns*/managed-keys.bind*
index b1d797c3210017c6942692c4a9f82e2adec66011..0e0c9fc0e5044fd10e19909d42be80bae61ddf07 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "rndc.out.*",
+        "ans*/ans.run",
+        "ans*/ans.run.prev",
+        "ns*/named.stats.*",
+    ]
+)
+
 
 def test_tcp(run_tests_sh):
     run_tests_sh()
index e09a267ac4667a2b2be15c10117de1ab4a3095a5..02c7d093bee6c48433b910f3498e3708f68dbfe8 100644 (file)
@@ -23,6 +23,11 @@ pytest.importorskip("dns", minversion="2.0.0")
 import dns.message
 import dns.query
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ans*/ans.run",
+    ]
+)
 
 TIMEOUT = 10
 
diff --git a/bin/tests/system/timeouts/clean.sh b/bin/tests/system/timeouts/clean.sh
deleted file mode 100644 (file)
index 01f3750..0000000
+++ /dev/null
@@ -1,20 +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.
-
-rm -f ./ns*/managed-keys.bind*
-rm -f ./ns*/named.conf
-rm -f ./ns*/named.memstats
-rm -f ./ns*/named.run*
-rm -f ./ns*/named.stats
-rm -rf ./__pycache__
-rm -f ./ns*/large.db
index c4d45b104d5d06a920cf2c0bd40586e0130a5ae0..cdee7a2e70ac8b060cdee6c5e5b425a841a87dff 100644 (file)
@@ -28,6 +28,11 @@ import dns.rdatatype
 
 import isctest.mark  # pylint: disable=import-error
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns1/large.db",
+    ]
+)
 
 TIMEOUT = 10
 
diff --git a/bin/tests/system/transport-acl/clean.sh b/bin/tests/system/transport-acl/clean.sh
deleted file mode 100644 (file)
index e8d1b95..0000000
+++ /dev/null
@@ -1,24 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./*/named.run.prev
-rm -f ./dig.out.*
-rm -f ./*/example.db
-rm -rf ./headers.*
index 400c85996eadcab9d2d5150c0727812e72c46aec..50069bb9e83c1b7914f866fe90b9c246ef29dfef 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns1/example.db",
+    ]
+)
+
 
 def test_transport_acl(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/transport-change/clean.sh b/bin/tests/system/transport-change/clean.sh
deleted file mode 100644 (file)
index e8d1b95..0000000
+++ /dev/null
@@ -1,24 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./*/named.run.prev
-rm -f ./dig.out.*
-rm -f ./*/example.db
-rm -rf ./headers.*
index d86446389efc19bca6cc15264cd856c533fff4a7..a4370b670ec161435fcc1d82058c4420e8716a08 100644 (file)
@@ -9,6 +9,15 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns1/example.db",
+    ]
+)
+
 
 def test_transport_change(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/tsig/clean.sh b/bin/tests/system/tsig/clean.sh
deleted file mode 100644 (file)
index 709333c..0000000
+++ /dev/null
@@ -1,26 +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.
-
-#
-# Clean up after tsig tests.
-#
-
-rm -f dig.out.*
-rm -f */named.memstats
-rm -f */named.conf
-rm -f ns1/named-fips.conf
-rm -f */named.run
-rm -f Kexample.net.*
-rm -f keygen.out?
-rm -f ns*/managed-keys.bind*
-rm -f packet.out
index 8cf5d7b713b218376ba40c6388049517a0aa6a7c..1a45e51ec03456e3c763006b060c1861562a5fa4 100644 (file)
@@ -23,6 +23,13 @@ import dns.message
 import dns.query
 import dns.tsigkeyring
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ans*/ans.run",
+        "ns1/named-fips.conf",
+    ]
+)
+
 TIMEOUT = 10
 
 
index b421852c84a177ca01360d3690f125deffe68f26..4c0a800bb590f3a601dce162a119c04dd69473bd 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "keygen.out*",
+        "packet.out",
+        "ans*/ans.run",
+        "ns1/named-fips.conf",
+    ]
+)
+
 
 def test_tsig(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/tsiggss/clean.sh b/bin/tests/system/tsiggss/clean.sh
deleted file mode 100644 (file)
index 3c4fcf2..0000000
+++ /dev/null
@@ -1,27 +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.
-
-#
-# Clean up after tsiggss tests.
-#
-
-rm -f ns1/*.jnl ns1/update.txt ns1/auth.sock
-rm -f ns1/*.db ns1/K*.key ns1/K*.private
-rm -f ns1/_default.tsigkeys
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f authsock.pid
-rm -f ns1/core
-rm -f nsupdate.out*
-rm -f ns*/managed-keys.bind*
index 796da8fbc96b79e45f59b59ba1523c5f2b9b4bd4..0d0ed03d7c948d370e45062d64d74a7c72a443cf 100755 (executable)
@@ -33,6 +33,13 @@ import dns.rdataclass
 import dns.rdatatype
 import dns.rrset
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns1/K*",
+        "ns1/example.nil.db",
+    ]
+)
+
 
 class CraftedTKEYQuery:
     """
index 926a9a9e6cd37d7ababfe8989575541b757aa659..7dc8bc849edbd3b4f77b89ee1db1eb212b8fb7be 100644 (file)
@@ -9,6 +9,21 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "authsock.pid",
+        "nsupdate.out*",
+        "ns1/K*",
+        "ns1/_default.tsigkeys",
+        "ns1/auth.sock",
+        "ns1/example.nil.db",
+        "ns1/example.nil.db.jnl",
+        "ns1/update.txt",
+    ]
+)
+
 
 def test_tsiggss(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/ttl/clean.sh b/bin/tests/system/ttl/clean.sh
deleted file mode 100644 (file)
index 3bb41d9..0000000
+++ /dev/null
@@ -1,17 +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.
-
-rm -f ./*/named.conf
-rm -f ./*/named.memstats
-rm -f ./*/named.run
-rm -f ./ns*/managed-keys.bind*
diff --git a/bin/tests/system/unknown/clean.sh b/bin/tests/system/unknown/clean.sh
deleted file mode 100644 (file)
index e444d04..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.
-
-rm -f dig.out* check.out
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f */*.bk
-rm -f */*.bk.*
-rm -f ns3/Kexample.*
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index fe1f4512b9c5ee1e4c651a4150af938a9fe28714..40b4a0103b762d2efe37adee702fa833e91c3220 100644 (file)
@@ -9,6 +9,21 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "check.out",
+        "dig.out.*",
+        "ns2/example-in.bk",
+        "ns3/K*",
+        "ns3/example-in.bk",
+        "ns3/example-in.bk.jbk",
+        "ns3/example-in.bk.signed",
+        "ns3/example-in.bk.signed.jnl",
+    ]
+)
+
 
 def test_unknown(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/upforwd/clean.sh b/bin/tests/system/upforwd/clean.sh
deleted file mode 100644 (file)
index d56c942..0000000
+++ /dev/null
@@ -1,35 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f dig.out.ns1* dig.out.ns2 dig.out.ns1 dig.out.ns3 dig.out.ns1.after
-rm -f ns1/*.jnl ns2/*.jnl ns3/*.jnl ns1/example.db ns2/*.bk ns3/*.bk
-rm -f ns3/noprimary1.db
-rm -f ns3/dnstap.out*
-rm -f ns3/dnstap.conf
-rm -f dnstap.out*
-rm -f dnstapread.out*
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.conf
-rm -f */ans.run
-rm -f Ksig0.example2.*
-rm -f keyname keyname.err
-rm -f ns1/example2.db
-rm -f ns1/example2-toomanykeys.db
-rm -f ns*/managed-keys.bind*
-rm -f nsupdate.out.*
-rm -f ns*/named.run.prev
index 9b2a26364ea8157f207bfb460c4a9488fcdf07c4..41b58227c4db0d89a7c764d326abc181a6e17b19 100644 (file)
@@ -13,6 +13,26 @@ import pytest
 
 import isctest.mark
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "Ksig0.example2*",
+        "dig.out.*",
+        "dnstap.out.*",
+        "dnstapread.out*",
+        "keyname*",
+        "nsupdate.out.*",
+        "ans*/ans.run",
+        "ns*/*.bk",
+        "ns*/*.jnl",
+        "ns1/example.db",
+        "ns1/example2-toomanykeys.db",
+        "ns1/example2.db",
+        "ns3/dnstap.conf",
+        "ns3/dnstap.out",
+        "ns3/noprimary1.db",
+    ]
+)
+
 
 @pytest.mark.xfail(reason="GL #4996", condition=isctest.mark.with_dnstap())
 def test_upforwd(run_tests_sh):
index be5e6ef74131fdcc2d1e8a569135858b29ad2b0f..ae82dee1c53dde5a365e1fb0a71da86fc777bb47 100644 (file)
@@ -16,6 +16,19 @@ import pytest
 
 import isctest
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "verify.out.*",
+        "zones/K*",
+        "zones/dsset-*",
+        "zones/*.bad",
+        "zones/*.good",
+        "zones/*.out*",
+        "zones/*.tmp",
+        "zones/updated*",
+    ]
+)
+
 VERIFY = os.environ.get("VERIFY")
 
 
diff --git a/bin/tests/system/views/clean.sh b/bin/tests/system/views/clean.sh
deleted file mode 100644 (file)
index 3bb3629..0000000
+++ /dev/null
@@ -1,37 +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.
-
-set -e
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f ns*/named.conf
-rm -f ns3/example.bk dig.out.ns?.?
-rm -f ns2/example.db ns3/internal.bk
-rm -f -- */*.jnl
-rm -f -- */named.memstats
-rm -f -- */named.run */named.run.prev
-rm -f ns2/external/K*
-rm -f ns2/external/inline.db.jbk
-rm -f ns2/external/inline.db.signed
-rm -f ns2/external/inline.db.signed.jnl
-rm -f ns2/internal/K*
-rm -f ns2/internal/inline.db.jbk
-rm -f ns2/internal/inline.db.signed
-rm -f ns2/internal/inline.db.signed.jnl
-rm -f ns2/zones.conf
-rm -f ns2/db.* ns2/K*
-rm -f dig.out.external dig.out.internal
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index bfaacf489703537204690cf948b92a2a16edd801..4e2d29e70d8ed05645ed14e9d7f1fdd4349df849 100644 (file)
@@ -9,6 +9,28 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns2/K*",
+        "ns2/db.*",
+        "ns2/*.jnl",
+        "ns2/example.db",
+        "ns2/zones.conf",
+        "ns2/external/K*",
+        "ns2/external/inline.db.jbk",
+        "ns2/external/inline.db.signed",
+        "ns2/external/inline.db.signed.jnl",
+        "ns2/internal/K*",
+        "ns2/internal/inline.db.jbk",
+        "ns2/internal/inline.db.signed",
+        "ns2/internal/inline.db.signed.jnl",
+        "ns3/internal.bk",
+    ]
+)
+
 
 def test_views(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/wildcard/clean.sh b/bin/tests/system/wildcard/clean.sh
deleted file mode 100644 (file)
index 11af62d..0000000
+++ /dev/null
@@ -1,27 +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.
-
-rm -f ns*/named.run
-rm -f ns*/named.conf
-rm -f ns1/K*
-rm -f ns1/*.db
-rm -f ns1/*.signed
-rm -f ns1/dsset-*
-rm -f ns1/keyset-*
-rm -f ns1/trusted.conf
-rm -f ns1/private.nsec.conf
-rm -f ns1/private.nsec3.conf
-rm -f ns1/signer.err
-rm -f */named.memstats
-rm -f dig.out.ns*.test*
-rm -f ns*/managed-keys.bind*
index 89a9fef605d3f831c3de319d113e158b9e345870..db01be0e1e2c1c1bb38488b93ecae062ad6adf83 100644 (file)
@@ -9,6 +9,29 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out.*",
+        "ns1/K*",
+        "ns1/dsset-*",
+        "ns1/*.signed",
+        "ns1/allwild.db",
+        "ns1/example.db",
+        "ns1/nestedwild.db",
+        "ns1/nsec.db",
+        "ns1/nsec3.db",
+        "ns1/private.nsec.conf",
+        "ns1/private.nsec.db",
+        "ns1/private.nsec3.conf",
+        "ns1/private.nsec3.db",
+        "ns1/root.db",
+        "ns1/signer.err",
+        "ns1/trusted.conf",
+    ]
+)
+
 
 def test_wildcard(run_tests_sh):
     run_tests_sh()
index 71a84e567f11bc34498646db663b82e2328e03b7..37a4d15b2d83769f847ba06faec0e986544fff46 100755 (executable)
@@ -11,7 +11,6 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
-
 """
 Example property-based test for wildcard synthesis.
 Verifies that otherwise-empty zone with single wildcard record * A 192.0.2.1
@@ -54,6 +53,26 @@ import isctest.check
 import isctest.name
 import isctest.query
 
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns1/K*",
+        "ns1/dsset-*",
+        "ns1/*.signed",
+        "ns1/allwild.db",
+        "ns1/example.db",
+        "ns1/nestedwild.db",
+        "ns1/nsec.db",
+        "ns1/nsec3.db",
+        "ns1/private.nsec.conf",
+        "ns1/private.nsec.db",
+        "ns1/private.nsec3.conf",
+        "ns1/private.nsec3.db",
+        "ns1/root.db",
+        "ns1/signer.err",
+        "ns1/trusted.conf",
+    ]
+)
+
 
 # labels of a zone with * A 192.0.2.1 wildcard
 SUFFIX = dns.name.from_text("allwild.test.")
diff --git a/bin/tests/system/xfer/clean.sh b/bin/tests/system/xfer/clean.sh
deleted file mode 100644 (file)
index 3cbcba5..0000000
+++ /dev/null
@@ -1,40 +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.
-
-#
-# Clean up after zone transfer tests.
-#
-
-rm -f */ans.run
-rm -f */named.conf
-rm -f */named.memstats
-rm -f */named.run
-rm -f */named.run.prev
-rm -f axfr.out
-rm -f dig.out.*
-rm -f ns*/managed-keys.bind*
-rm -f ns1/dot-fallback.db
-rm -f ns1/edns-expire.db
-rm -f ns1/ixfr-too-big.db ns1/ixfr-too-big.db.jnl
-rm -f ns1/sec.db ns2/sec.db
-rm -f ns2/example.db ns2/tsigzone.db ns2/example.db.jnl ns2/dot-fallback.db
-rm -f ns2/mapped.db
-rm -f ns3/example.bk ns3/xfer-stats.bk ns3/tsigzone.bk ns3/example.bk.jnl
-rm -f ns3/mapped.bk
-rm -f ns3/primary.bk ns3/primary.bk.jnl
-rm -f ns4/*.db ns4/*.jnl
-rm -f ns6/*.db ns6/*.bk ns6/*.jnl
-rm -f ns7/*.db ns7/*.bk ns7/*.jnl
-rm -f ns8/large.db ns8/small.db
-rm -f stats.*
-rm -f wait_for_message.*
index c83d6e96927f6a500df7a022975698e76e87aea0..d217b0becf484a29e22cd0fce42ae91a8ecc4718 100644 (file)
@@ -9,6 +9,55 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "axfr.out",
+        "dig.out.*",
+        "stats.*",
+        "wait_for_message.*",
+        "ans*/ans.run",
+        "ns1/dot-fallback.db",
+        "ns1/edns-expire.db",
+        "ns1/ixfr-too-big.db",
+        "ns1/ixfr-too-big.db.jnl",
+        "ns1/ixfr-too-many-diffs.db.jnl",
+        "ns1/sec.db",
+        "ns2/dot-fallback.db",
+        "ns2/example.db",
+        "ns2/example.db.jnl",
+        "ns2/mapped.db",
+        "ns2/sec.db",
+        "ns2/tsigzone.db",
+        "ns3/example.bk",
+        "ns3/example.bk.jnl",
+        "ns3/mapped.bk",
+        "ns3/primary.bk",
+        "ns3/primary.bk.jnl",
+        "ns3/tsigzone.bk",
+        "ns3/xfer-stats.bk",
+        "ns4/nil.db",
+        "ns4/root.db",
+        "ns6/axfr-max-idle-time.bk",
+        "ns6/axfr-max-transfer-time.bk",
+        "ns6/axfr-rndc-retransfer-force.bk",
+        "ns6/edns-expire.bk",
+        "ns6/ixfr-too-big.bk",
+        "ns6/ixfr-too-big.bk.jnl",
+        "ns6/ixfr-too-many-diffs.bk",
+        "ns6/primary.db",
+        "ns6/primary.db.jnl",
+        "ns6/sec.bk",
+        "ns7/edns-expire.bk",
+        "ns7/primary2.db",
+        "ns7/sec.bk",
+        "ns7/sec.bk.jnl",
+        "ns8/large.db",
+        "ns8/small.db",
+    ]
+)
+
 
 def test_xfer(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/xferquota/clean.sh b/bin/tests/system/xferquota/clean.sh
deleted file mode 100644 (file)
index d3f3cf8..0000000
+++ /dev/null
@@ -1,25 +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.
-
-#
-# Clean up after zone transfer quota tests.
-#
-
-rm -f ns1/zone*.example.db ns1/zones.conf
-rm -f ns2/zone*.example.bk ns2/zones.conf
-rm -f dig.out.* ns2/changing.bk
-rm -f ns1/changing.db
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f ns*/managed-keys.bind*
index 3b9572f1bdc6bec12acc48fd08313d27a2d47d86..06421640c467b304073c1b39cd23dc682db866b9 100644 (file)
@@ -15,9 +15,21 @@ import re
 import shutil
 import signal
 
+import dns.message
+import pytest
+
 import isctest
 
-import dns.message
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "ns1/changing.db",
+        "ns1/zone*.example.db",
+        "ns1/zones.conf",
+        "ns2/changing.bk",
+        "ns2/zone*.example.bk",
+        "ns2/zones.conf",
+    ]
+)
 
 
 def test_xferquota(named_port, servers):
diff --git a/bin/tests/system/zero/clean.sh b/bin/tests/system/zero/clean.sh
deleted file mode 100644 (file)
index ab392ef..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.
-
-rm -f */named.conf
-rm -f */named.run
-rm -f */named.memstats
-rm -f ns2/example.db
-rm -f ns4/example.bk
-rm -f dig.out*
-rm -f query.list
-rm -f ns*/managed-keys.bind*
index 0e8ceb2626a47f8c360e3a9973e1d67925edaf79..3191f1c62a8ac5c3415f41c013051a3e3d36483e 100644 (file)
@@ -9,6 +9,18 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "dig.out*",
+        "query.list",
+        "ans*/ans.run",
+        "ns2/example.db",
+        "ns4/example.bk",
+    ]
+)
+
 
 def test_zero(run_tests_sh):
     run_tests_sh()
diff --git a/bin/tests/system/zonechecks/clean.sh b/bin/tests/system/zonechecks/clean.sh
deleted file mode 100644 (file)
index 07a5939..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.
-
-rm -f *.out
-rm -f */named.memstats
-rm -f */named.conf
-rm -f */named.run
-rm -f */*.db */*.db.signed */K*.key */K*.private */K*.state */*.jnl */dsset-*
-rm -f */signer.err
-rm -f rndc.out.*
-rm -f ns*/managed-keys.bind* ns*/*.mkeys*
index 28a7bb1c95200033bffc2148c85e75934fe0a85d..9b64d839a1e5fed18a8233cf70749ffe025ccdf8 100644 (file)
@@ -9,6 +9,25 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import pytest
+
+pytestmark = pytest.mark.extra_artifacts(
+    [
+        "*.out",
+        "rndc.out.*",
+        "ns1/K*",
+        "ns1/bigserial.db",
+        "ns1/dsset-primary.example.",
+        "ns1/duplicate.db",
+        "ns1/primary.db",
+        "ns1/primary.db.signed",
+        "ns1/reload.db",
+        "ns1/signer.err",
+        "ns1/soa.db",
+        "ns2/sec.db",
+    ]
+)
+
 
 def test_zonechecks(run_tests_sh):
     run_tests_sh()