diff options
Diffstat (limited to 'Makefile.maint')
-rw-r--r-- | Makefile.maint | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint index 6643e2c5f..46ad7b8fe 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: |