diff options
author | Jim Meyering <meyering@fb.com> | 2015-04-25 15:36:11 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2015-04-26 08:42:13 -0700 |
commit | c1fa4920c4ada99e8804821c6261bbbc8b21966d (patch) | |
tree | 853985e280df87a47b69e6284c4fc9ddc525e465 /cfg.mk | |
parent | 599c2afbc8274d190739a623c45498b317e7f29c (diff) | |
download | grep-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.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |