maintcheck: look for problematic names of testcases
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 14 Mar 2011 11:44:53 +0000 (12:44 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 17 Mar 2011 10:42:32 +0000 (11:42 +0100)
commite36003d0cf689ab737e774ea5faa07b2375e0d0a
tree4d33dd13147b70e2027815e422fcad4d9f32e167
parent68694a871f05fcb33a3efb6aada7c084365ca272
maintcheck: look for problematic names of testcases

The configure.in stub created by default by `tests/defs' obtains
the first argument of AC_INIT from the test name, and this can
cause some supported autoconf versions to fail with a spurious
error if that test name contains the name of an m4 or m4sugar
builtin or macro (e.g., `defn' or `m4_undefine').

See for example the bug fixed by commit v1.11-287-g1325a8a.

This change add a maintainer check that warns about test names
which are possibly problematic in this regard.

* Makefile.am (sc_test_names): New maintainer-check target.
(syntax_check_rules): Add it.
(m4_builtins): New helper variable.
(TESTS): Updated according to the following renamings.
* tests/include.test: Renamed ...
* tests/hdr-vars-defined-once.test: ... to this.
* tests/sinclude.test: Renamed ...
* tests/m4-inclusion.test: ... to this, and simplified
accordingly.
* tests/include2.test: Renamed ...
* tests/dist-included-parent-dir.test: ... to this, for
consistency.
ChangeLog
Makefile.am
Makefile.in
tests/Makefile.am
tests/Makefile.in
tests/dist-included-parent-dir.test [moved from tests/include2.test with 100% similarity]
tests/hdr-vars-defined-once.test [moved from tests/include.test with 100% similarity]
tests/m4-inclusion.test [moved from tests/sinclude.test with 83% similarity]