[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/8] maint: add framework to run syntax-check rules against gnuli
From: |
Jim Meyering |
Subject: |
[PATCH 1/8] maint: add framework to run syntax-check rules against gnulib sources |
Date: |
Tue, 17 Jan 2012 19:05:52 +0100 |
From: Jim Meyering <address@hidden>
* cfg.mk: New file, to disable all currently-failing tests.
We'll enable them one by one, as they are made to pass.
* Makefile (sc_maint): New rule.
---
ChangeLog | 5 +++++
Makefile | 7 +++++++
cfg.mk | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 68 insertions(+), 0 deletions(-)
create mode 100644 cfg.mk
diff --git a/ChangeLog b/ChangeLog
index e79e2e0..3727816 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-01-17 Jim Meyering <address@hidden>
+ maint: add framework to run syntax-check rules against gnulib sources
+ * cfg.mk: New file, to disable all currently-failing tests.
+ We'll enable them one by one, as they are made to pass.
+ * Makefile (sc_maint): New rule.
+
maint: spell file systems with two words, not one
* m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
two words, not one.
diff --git a/Makefile b/Makefile
index 85af2c3..675c8e0 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,13 @@ sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT:
" see <$$url>" 1>&2; exit 1; } || : \
else :; fi
+# Run all maint.mk syntax-check tests on gnulib's sources.
+sc_maint:
+ rm -f maint.mk; ln -s top/maint.mk maint.mk
+ $(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \
+ -f cfg.mk -f maint.mk syntax-check
+ rm -f maint.mk
+
# Files in m4/ that (exceptionally) may use AC_LIBOBJ.
# Do not include their ".m4" suffix.
allow_AC_LIBOBJ = \
diff --git a/cfg.mk b/cfg.mk
new file mode 100644
index 0000000..045d0ae
--- /dev/null
+++ b/cfg.mk
@@ -0,0 +1,56 @@
+# This file is used via the maint.mk-using rule in Makefile.
+
+local-checks-to-skip = \
+ sc_GFDL_version \
+ sc_GPL_version \
+ sc_avoid_if_before_free \
+ sc_bindtextdomain \
+ sc_cast_of_alloca_return_value \
+ sc_cast_of_argument_to_free \
+ sc_cast_of_x_alloc_return_value \
+ sc_error_message_period \
+ sc_error_message_uppercase \
+ sc_immutable_NEWS \
+ sc_m4_quote_check \
+ sc_makefile_TAB_only_indentation \
+ sc_makefile_at_at_check \
+ sc_makefile_path_separator_check \
+ sc_obsolete_symbols \
+ sc_program_name \
+ sc_prohibit_HAVE_MBRTOWC \
+ sc_prohibit_S_IS_definition \
+ sc_prohibit_always_true_header_tests \
+ sc_prohibit_always-defined_macros \
+ sc_prohibit_atoi_atof \
+ sc_prohibit_c_ctype_without_use \
+ sc_prohibit_cloexec_without_use \
+ sc_prohibit_dirent_without_use \
+ sc_prohibit_doubled_word \
+ sc_prohibit_empty_lines_at_EOF \
+ sc_prohibit_error_without_use \
+ sc_prohibit_getopt_without_use \
+ sc_prohibit_hash_pjw_without_use \
+ sc_prohibit_have_config_h \
+ sc_prohibit_intprops_without_use \
+ sc_prohibit_inttostr_without_use \
+ sc_prohibit_magic_number_exit \
+ sc_prohibit_openat_without_use \
+ sc_prohibit_path_max_allocation \
+ sc_prohibit_reversed_compare_failure \
+ sc_prohibit_safe_read_without_use \
+ sc_prohibit_signal_without_use \
+ sc_prohibit_stat_st_blocks \
+ sc_prohibit_stddef_without_use \
+ sc_prohibit_stdio--_without_use \
+ sc_prohibit_strcmp \
+ sc_prohibit_strings_without_use \
+ sc_prohibit_undesirable_word_seq \
+ sc_prohibit_xalloc_without_use \
+ sc_require_config_h \
+ sc_require_config_h_first \
+ sc_space_tab \
+ sc_texinfo_acronym \
+ sc_trailing_blank \
+ sc_two_space_separator_in_usage \
+ sc_unmarked_diagnostics \
+ sc_useless_cpp_parens
--
1.7.9.rc1.2.gccfe4
- run syntax-check rules on gnulib's own sources, Jim Meyering, 2012/01/17
- [PATCH 6/8] maint: enable sc_prohibit_cloexec_without_use, Jim Meyering, 2012/01/17
- [PATCH 5/8] maint: enable sc_prohibit_intprops_without_use, Jim Meyering, 2012/01/17
- [PATCH 8/8] maint: enable sc_trailing_blank, Jim Meyering, 2012/01/17
- [PATCH 7/8] maint: enable sc_prohibit_openat_without_use, Jim Meyering, 2012/01/17
- [PATCH 1/8] maint: add framework to run syntax-check rules against gnulib sources,
Jim Meyering <=
- [PATCH 3/8] maint: enable double-word-prohibiting rule, Jim Meyering, 2012/01/17
- [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Jim Meyering, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Bruno Haible, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Jim Meyering, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Bruno Haible, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Karl Berry, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Jim Meyering, 2012/01/18
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Paul Eggert, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Bruno Haible, 2012/01/17
- Re: [PATCH 2/8] maint: remove empty lines at EOF, but excluding modules/*, Jim Meyering, 2012/01/18