summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2015-04-25 15:36:11 -0700
committerJim Meyering <meyering@fb.com>2015-04-26 08:42:13 -0700
commitc1fa4920c4ada99e8804821c6261bbbc8b21966d (patch)
tree853985e280df87a47b69e6284c4fc9ddc525e465 /cfg.mk
parent599c2afbc8274d190739a623c45498b317e7f29c (diff)
downloadgrep-c1fa4920c4ada99e8804821c6261bbbc8b21966d.tar.gz
maint: sort test names in tests/Makefile.am and add syntax-check rule
* cfg.mk (sc_sorted_tests): New rule. * tests/Makefile.am (TESTS): Alphabetize.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index c68d11ca..7cf4eec2 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -101,6 +101,12 @@ sc_prohibit_emacs__indent_tabs_mode__setting:
halt='use of emacs indent-tabs-mode: setting' \
$(_sc_search_regexp)
+# Ensure that the list of test file names in tests/Makefile.am is sorted.
+sc_sorted_tests:
+ @perl -0777 -ne \
+ '/^TESTS =(.*?)^$$/ms; ($$t = $$1) =~ s/[\\\s\n]+/\n/g;print $$t' \
+ tests/Makefile.am | sort -c
+
# THANKS.in is a list of name/email pairs for people who are mentioned in
# commit logs (and generated ChangeLog), but who are not also listed as an
# author of a commit. Name/email pairs of commit authors are automatically