From c1fa4920c4ada99e8804821c6261bbbc8b21966d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 25 Apr 2015 15:36:11 -0700 Subject: 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. --- cfg.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cfg.mk') 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 -- cgit v1.2.1