]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove bin/tests/system/clean.sh
authorMichał Kępień <michal@isc.org>
Fri, 6 Dec 2019 13:11:01 +0000 (14:11 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 6 Dec 2019 14:06:49 +0000 (15:06 +0100)
Since the role of the bin/tests/system/clean.sh script has now been
reduced to calling a given system test's clean.sh script, remove the
former altogether and replace its only use with a direct invocation of
the latter.

(cherry picked from commit bf3eeac06731ef4bb377315b8df409e9b2ad9027)

bin/tests/system/README
bin/tests/system/clean.sh [deleted file]
bin/tests/system/run.sh
util/copyrights

index 3ade087883e6b2f4b37373e33c66350583b5fabe..d7529c6448d0feafbd1a4adc990223bc5b124148 100644 (file)
@@ -242,12 +242,8 @@ If there is a requirement to re-run a test (or the entire test suite), the
 files produced by the tests should be deleted first.  Normally, these files are
 deleted if the test succeeds but are retained on error.
 
-Deletion of files produced by an individual test can be done with the command:
-
-    sh clean.sh <test-name>
-
 Deletion of the files produced by the set of tests (e.g. after the execution
-of "runall.sh") can be deleted by the command:
+of "runall.sh") can be carried out using the command:
 
     sh cleanall.sh
 
@@ -717,11 +713,10 @@ If the test fails, all these files are retained.  But if the test succeeds,
 they are cleaned up at different times:
 
 1. Files generated by the test itself are cleaned up by the test's own
-"clean.sh".  This is called from the system's "clean.sh", which in turn is
-called from "run.sh".
+"clean.sh", which is called from "run.sh".
 
-2. Files that may not be cleaned up if named exits abnormally are removed
-by the system's "clean.sh".
+2. Files that may not be cleaned up if named exits abnormally can be removed
+using the "cleanall.sh" script.
 
 3. "test.output.*" files are deleted when the test suite ends.  At this point,
 the file "testsummary.sh" is called which concatenates all the "test.output.*"
diff --git a/bin/tests/system/clean.sh b/bin/tests/system/clean.sh
deleted file mode 100644 (file)
index f75a98a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# 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 http://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-#
-# Clean up after a specified system test.
-#
-
-SYSTEMTESTTOP="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
-. $SYSTEMTESTTOP/conf.sh
-
-export SYSTEMTESTTOP
-
-if [ $# -eq 0 ]; then
-    echo "usage: $0 test-directory" >&2
-    exit 1
-fi
-
-systest=$1
-shift
-
-if [ -f $systest/clean.sh ]; then
-    ( cd $systest && $SHELL clean.sh "$@" )
-else
-    echo "Test directory $systest does not exist" >&2
-    exit 1
-fi
index f8e6903f836bf01abbeb3d3a5ffdc65e6e2e7a04..33c0037581a23163959d8af7e56df772e6719510 100755 (executable)
@@ -202,7 +202,7 @@ else
         echopass "R:$systest:PASS"
         if $clean
         then
-            $SHELL clean.sh $runall $systest "$@"
+            ( cd $systest && $SHELL clean.sh "$@" )
             if test -d ../../../.git
             then
                 git status -su --ignored $systest 2>/dev/null | \
index b5863d94c06037e3bf737dbccc4b919bf1b1b0c4..ec2514b2e69e2983a8989528c2309faa58a71953 100644 (file)
 ./bin/tests/system/checkzone/zones/test2.db    ZONE    2013,2016,2018,2019
 ./bin/tests/system/checkzone/zones/warn.inherit.origin.db      ZONE    2014,2016,2018,2019
 ./bin/tests/system/checkzone/zones/warn.inherited.owner.db     ZONE    2014,2016,2018,2019
-./bin/tests/system/clean.sh                    SH      2015,2016,2018,2019
 ./bin/tests/system/cleanall.sh                 SH      2000,2001,2004,2007,2012,2014,2015,2016,2018,2019
 ./bin/tests/system/cleanpkcs11.sh              SH      2010,2012,2014,2016,2018,2019
 ./bin/tests/system/common/controls.conf                CONF-C  2000,2001,2004,2007,2013,2016,2018,2019