diff options
author | Jim Meyering <meyering@redhat.com> | 2012-04-04 12:34:22 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-04-04 12:34:22 +0200 |
commit | e82602833d5c79f07198b61f2f42240b3edf2ba0 (patch) | |
tree | 46600841e5288555bba96eec768c22f9f380efc5 | |
parent | 33230a19ca27d99629a7c8000f56ecce22e956fa (diff) | |
download | coreutils-e82602833d5c79f07198b61f2f42240b3edf2ba0.tar.xz |
tests: new syntax-check rule to prohibit use of `...` in tests/
* cfg.mk (sc_prohibit_test_backticks): New rule. Exempt 3 files.
-rw-r--r-- | cfg.mk | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -303,6 +303,12 @@ sc_prohibit_framework_failure: halt='use framework_failure_ instead' \ $(_sc_search_regexp) +# Prohibit the use of `...` in tests/. Use $(...) instead. +sc_prohibit_test_backticks: + @prohibit='`' in_vc_files='^tests/' \ + halt='use $$(...), not `...` in tests/' \ + $(_sc_search_regexp) + # Exempt the contents of any usage function from the following. _continued_string_col_1 = \ s/^usage .*?\n}//ms;/\\\n\w/ and print ("$$ARGV\n"),$$e=1;END{$$e||=0;exit $$e} @@ -447,3 +453,6 @@ exclude_file_name_regexp--sc_prohibit_stat_st_blocks = \ exclude_file_name_regexp--sc_prohibit_continued_string_alpha_in_column_1 = \ ^src/(system\.h|od\.c|printf\.c)$$ + +exclude_file_name_regexp--sc_prohibit_test_backticks = \ + ^tests/(init\.sh|check\.mk|misc/stdbuf)$$ |