tests: expose automake bug#14560
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 8 Jun 2013 15:36:07 +0000 (17:36 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 12 Jun 2013 08:28:17 +0000 (10:28 +0200)
commit0164f83126647476cfb3112441185accdcb157fb
tree560d0dcaef3f6933c9cce9144b60b1baea4368fc
parent2d6fec692f032ab60c27f5c22391ae87e49c53c7
tests: expose automake bug#14560

Automake needlessly generates definition of make variables related
to C compilation when two or more user-defined suffix rules are
present in a single Makefile.am.

* t/suffix-extra-c-stuff-pr14560.sh: New test, exposing the bug.
This test is still xfailing.
* t/no-extra-c-stuff.sh: New test, check for a potential related
regression.  This regression is not actually present here (so this
test passes), but it still took place in our first attempt at
fixing bug#14560 -- so this test has proven to be actually useful.
* t/no-extra-makefile-code.sh: Improve comments, and tighten the
grepping checks a little.
* t/list-of-tests.mk (handwritten_TESTS): Add the new tests.
(XFAIL_TESTS): Add the new xfailing test.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/list-of-tests.mk
t/no-extra-c-stuff.sh [new file with mode: 0644]
t/no-extra-makefile-code.sh
t/suffix-extra-c-stuff-pr14560.sh [new file with mode: 0644]