From 6caa4f5fa929fead3e181a2a151da4fb1953ba93 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 17 Jan 2012 17:51:40 +0100 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ Makefile | 7 +++++++ cfg.mk | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 cfg.mk diff --git a/ChangeLog b/ChangeLog index 1a6a7e364..d9ef16b47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-01-17 Jim Meyering + + 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. + 2012-01-21 Bruno Haible stdint: Add support for Android. diff --git a/Makefile b/Makefile index 85af2c3f9..675c8e03d 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 000000000..045d0aeb0 --- /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 -- 2.11.0