From: Jim Meyering Date: Wed, 5 Jan 2005 08:25:51 +0000 (+0000) Subject: (sc_root_tests): New rule. X-Git-Tag: v5.3.0~27 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee7a366a3d0fca083bdd4fd776347b4edd2948df;p=thirdparty%2Fcoreutils.git (sc_root_tests): New rule. (syntax-check-rules): Add it to the list. --- diff --git a/Makefile.maint b/Makefile.maint index 6643e2c5f5..46ad7b8fe6 100644 --- a/Makefile.maint +++ b/Makefile.maint @@ -2,7 +2,7 @@ # This Makefile fragment is shared between the coreutils, # CPPI, Bison, and Autoconf. -## Copyright (C) 2001-2004 Free Software Foundation, Inc. +## Copyright (C) 2001-2005 Free Software Foundation, Inc. ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -77,6 +77,7 @@ syntax-check-rules = \ sc_file_system \ sc_prohibit_atoi_atof \ sc_prohibit_jm_in_m4 \ + sc_root_tests \ sc_space_tab \ sc_sun_os_names \ sc_system_h_headers \ @@ -179,6 +180,18 @@ sc_prohibit_jm_in_m4: { echo '$(ME): do not use jm_ in m4 macro names' \ 1>&2; exit 1; } || : +sc_root_tests: + @t1=sc-root.expected; t2=sc-root.actual; \ + grep -l '^PRIV_CHECK_ARG=require-root' \ + $$($(CVS_LIST) tests) |sed s,tests,., |sort > $$t1; \ + sed -n 's, cd \([^ ]*\) .*MAKE..check TESTS=\(.*\),./\1/\2,p' \ + $(srcdir)/tests/Makefile.am |sort > $$t2; \ + diff -u $$t1 $$t2 || diff=1; \ + rm -f $$t1 $$t2; \ + test "$$diff" \ + && { echo 'tests/Makefile.am: missing check-root action'>&2; \ + exit 1; } || : + # Create a list of regular expressions matching the names # of files included from system.h. Exclude a couple. .re-list: