From: Mark Andrews Date: Fri, 8 Feb 2019 01:19:39 +0000 (+1100) Subject: add check-ans-prereq X-Git-Tag: v9.12.4rc1~16^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1b1286c91b3f464c56e6451e50da886869d413;p=thirdparty%2Fbind9.git add check-ans-prereq (cherry picked from commit ec2ecffef137da5635235330ce05b601f6d3a658) --- diff --git a/util/check-ans-prereq.sh b/util/check-ans-prereq.sh new file mode 100644 index 00000000000..6c21d5c59df --- /dev/null +++ b/util/check-ans-prereq.sh @@ -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} diff --git a/util/copyrights b/util/copyrights index 51d7a7de352..3c29be99b0a 100644 --- a/util/copyrights +++ b/util/copyrights @@ -4213,6 +4213,7 @@ ./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