From: Stefano Lattarini Date: Mon, 20 Jun 2011 21:52:34 +0000 (+0200) Subject: maintcheck: extend 'sc_tests_plain_*' checks X-Git-Tag: ng-0.5a~161^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c3614c6d47b4428c39a784dda7f2641cfc8f6d6;p=thirdparty%2Fautomake.git maintcheck: extend 'sc_tests_plain_*' checks * Makefile.am (sc_tests_plain_autom4te): New check. (sc_tests_plain_autoreconf): Likewise. (sc_tests_plain_autoheader): Likewise. (syntax_check_rules): Update. --- diff --git a/ChangeLog b/ChangeLog index 82aac1e27..a05e69040 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-06-21 Stefano Lattarini + + maintcheck: extend 'sc_tests_plain_*' checks + * Makefile.am (sc_tests_plain_autom4te): New check. + (sc_tests_plain_autoreconf): Likewise. + (sc_tests_plain_autoheader): Likewise. + (syntax_check_rules): Update. + 2011-06-20 Stefano Lattarini maintcheck: avoid few spurious failures diff --git a/Makefile.am b/Makefile.am index 927798659..835f00a55 100644 --- a/Makefile.am +++ b/Makefile.am @@ -136,6 +136,9 @@ sc_tests_plain_make \ sc_tests_plain_autoconf \ sc_tests_plain_autoupdate \ sc_tests_plain_automake \ +sc_tests_plain_autom4te \ +sc_tests_plain_autoheader \ +sc_tests_plain_autoreconf \ sc_tests_here_document_format \ sc_tests_Exit_not_exit \ sc_tests_automake_fails \ @@ -385,6 +388,27 @@ sc_tests_plain_automake: exit 1; \ fi +## Tests should never call autoheader directly. +sc_tests_plain_autoheader: + @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autoheader\>'; then \ + echo 'Do not run "automake" in the above tests. Use "$$AUTOHEADER" instead.' 1>&2; \ + exit 1; \ + fi + +## Tests should never call autoreconf directly. +sc_tests_plain_autoreconf: + @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autoreconf\>'; then \ + echo 'Do not run "automake" in the above tests. Use "$$AUTORECONF" instead.' 1>&2; \ + exit 1; \ + fi + +## Tests should never call autom4te directly. +sc_tests_plain_autom4te: + @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autom4te\>'; then \ + echo 'Do not run "automake" in the above tests. Use "$$AUTOM4TE" instead.' 1>&2; \ + exit 1; \ + fi + ## Tests should only use END and EOF for here documents ## (so that the next test is effective). sc_tests_here_document_format: diff --git a/Makefile.in b/Makefile.in index 10d57b90e..1c241e51c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -297,6 +297,9 @@ sc_tests_plain_make \ sc_tests_plain_autoconf \ sc_tests_plain_autoupdate \ sc_tests_plain_automake \ +sc_tests_plain_autom4te \ +sc_tests_plain_autoheader \ +sc_tests_plain_autoreconf \ sc_tests_here_document_format \ sc_tests_Exit_not_exit \ sc_tests_automake_fails \ @@ -1088,6 +1091,24 @@ sc_tests_plain_automake: exit 1; \ fi +sc_tests_plain_autoheader: + @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autoheader\>'; then \ + echo 'Do not run "automake" in the above tests. Use "$$AUTOHEADER" instead.' 1>&2; \ + exit 1; \ + fi + +sc_tests_plain_autoreconf: + @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autoreconf\>'; then \ + echo 'Do not run "automake" in the above tests. Use "$$AUTORECONF" instead.' 1>&2; \ + exit 1; \ + fi + +sc_tests_plain_autom4te: + @if grep -v '^#' $(srcdir)/tests/*.test | grep ':[ ]*autom4te\>'; then \ + echo 'Do not run "automake" in the above tests. Use "$$AUTOM4TE" instead.' 1>&2; \ + exit 1; \ + fi + sc_tests_here_document_format: @if grep '<<' $(srcdir)/tests/*.test | grep -v 'END' | grep -v 'EOF'; then \ echo 'Use here documents with "END" and "EOF" only, for greppability.' 1>&2; \