]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add check-ans-prereq
authorMark Andrews <marka@isc.org>
Fri, 8 Feb 2019 01:19:39 +0000 (12:19 +1100)
committerMark Andrews <marka@isc.org>
Mon, 11 Feb 2019 22:03:29 +0000 (09:03 +1100)
(cherry picked from commit ec2ecffef137da5635235330ce05b601f6d3a658)

util/check-ans-prereq.sh [new file with mode: 0644]
util/copyrights

diff --git a/util/check-ans-prereq.sh b/util/check-ans-prereq.sh
new file mode 100644 (file)
index 0000000..6c21d5c
--- /dev/null
@@ -0,0 +1,26 @@
+#!/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.
+
+status=0
+
+for testscript in bin/tests/system/*/tests.sh; do
+       testdir="$(dirname "${testscript}")"
+       prereq="${testdir}/prereq.sh"
+       if [ -e "${prereq}" ] || [ -e "${prereq}.in" ]; then
+               continue
+       fi
+       if find "${testdir}" -type d -name "ans*" | grep -Eq "/ans[0-9]+$"; then
+               echo "missing ${prereq}"
+               status=1
+       fi
+done
+
+exit ${status}
index 51d7a7de3525168fb058f33a1ff6cde7f92ac342..3c29be99b0a7da7f37089fb9c377f5463fd3df23 100644 (file)
 ./util/altbuild.sh                             SH      2000,2001,2002,2004,2007,2008,2012,2016,2017,2018,2019
 ./util/bindkeys.pl                             PERL    2009,2010,2011,2012,2014,2016,2017,2018,2019
 ./util/branchsync.sh                           SH      2013,2016,2018,2019
+./util/check-ans-prereq.sh                     SH      2019
 ./util/check-categories.sh                     SH      2015,2016,2017,2018,2019
 ./util/check-changes                           PERL    2002,2004,2007,2012,2016,2018,2019
 ./util/check-cocci                             X       2018,2019