summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-05 08:25:51 +0000
committerJim Meyering <jim@meyering.net>2005-01-05 08:25:51 +0000
commitee7a366a3d0fca083bdd4fd776347b4edd2948df (patch)
tree667cb9e526042c0a32578638f2a4aa59935fffcb
parent48910482b34cc13c95f7606cfb567d3b3a005ade (diff)
downloadcoreutils-ee7a366a3d0fca083bdd4fd776347b4edd2948df.tar.xz
(sc_root_tests): New rule.
(syntax-check-rules): Add it to the list.
-rw-r--r--Makefile.maint15
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: