diff options
author | Bernhard Voelker <mail@bernhard-voelker.de> | 2012-08-31 10:07:54 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-31 10:16:18 +0200 |
commit | c1c92bcb29b95970a81c34a1f7354f39b6d942b4 (patch) | |
tree | a3d93c9675cad106e1c1fda0b6ea3fae47f4e95f | |
parent | 4af32c62fa58570a97d705fc0340704e9faa1a1f (diff) | |
download | coreutils-c1c92bcb29b95970a81c34a1f7354f39b6d942b4.tar.xz |
build: fix syntax-check rules broken by test-added .sh/pl suffixes
* cfg.mk: We exempt a few test files that would otherwise trigger
false-positive matches in syntax-check rules. The recent change
that added a .sh or .pl suffix to each test script made it so
some of the exclusion regexps would no longer match.
Include the required \.sh suffix in each such regexp, too.
-rw-r--r-- | cfg.mk | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -156,7 +156,7 @@ sc_check-AUTHORS: LINE_LEN_MAX = 80 FILTER_LONG_LINES = \ /^[^:]*\.diff:[^:]*:@@ / d; \ - \|^[^:]*tests/misc/sha[0-9]*sum[-:]| d; \ + \|^[^:]*tests/misc/sha[0-9]*sum.*\.pl[-:]| d; \ \|^[^:]*tests/pr/|{ \|^[^:]*tests/pr/pr-tests:| !d; }; sc_long_lines: @files=$$($(VC_LIST_EXCEPT)) \ @@ -501,7 +501,7 @@ update-copyright-env = \ # List syntax-check exemptions. exclude_file_name_regexp--sc_space_tab = \ - ^(tests/pr/|tests/misc/nl$$|gl/.*\.diff$$) + ^(tests/pr/|tests/misc/nl\.sh$$|gl/.*\.diff$$) exclude_file_name_regexp--sc_bindtextdomain = ^(gl/.*|lib/euidaccess-stat)\.c$$ exclude_file_name_regexp--sc_unmarked_diagnostics = ^build-aux/cvsu$$ exclude_file_name_regexp--sc_error_message_uppercase = ^build-aux/cvsu$$ @@ -521,7 +521,7 @@ exclude_file_name_regexp--sc_prohibit_always-defined_macros = \ exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = ^tests/pr/ exclude_file_name_regexp--sc_program_name = ^(gl/.*|lib/euidaccess-stat)\.c$$ exclude_file_name_regexp--sc_file_system = \ - NEWS|^(tests/init\.cfg|src/df\.c|tests/df/df-P)$$ + NEWS|^(tests/init\.cfg|src/df\.c|tests/df/df-P\.sh)$$ exclude_file_name_regexp--sc_prohibit_always_true_header_tests = \ ^m4/stat-prog\.m4$$ exclude_file_name_regexp--sc_prohibit_fail_0 = \ @@ -536,13 +536,13 @@ exclude_file_name_regexp--sc_prohibit_tab_based_indentation = \ exclude_file_name_regexp--sc_preprocessor_indentation = \ ^(gl/lib/rand-isaac\.[ch]|gl/tests/test-rand-isaac\.c)$$ exclude_file_name_regexp--sc_prohibit_stat_st_blocks = \ - ^(src/system\.h|tests/du/2g)$$ + ^(src/system\.h|tests/du/2g\.sh)$$ 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)$$ + ^tests/(init\.sh|Makefile\.am|misc/stdbuf\.sh)$$ # Exempt test.c, since it's nominally shared, and relatively static. exclude_file_name_regexp--sc_prohibit_operator_at_end_of_line = \ |