]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] check: per-suffix dependencies for test cases
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 9 May 2012 08:31:46 +0000 (10:31 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 16 May 2012 08:04:59 +0000 (10:04 +0200)
commit8df5284d9b3abf09df2251ffe344fc535b017379
tree5c3ad8ce0f002c409fdea48168646fb592f0c052
parent3579ab0e2f8fb4afd324215b7b007c769f74d106
[ng] check: per-suffix dependencies for test cases

Akim Demaille asked (in automake bug#11287) for a way to specify extra
dependencies for the test cases, depending on their extension (or lack
thereof).  Now that Automake-NG uses pattern rules instead of old-fashion
suffix rules to generate '.log' and '.trs' files from test cases, doing
that is trivial.

* NG-NEWS: Update.
* doc/automake.texi: Document the new feature.
* automake.in (handle_per_suffix_test): Mark the contents of the
'${pfx}LOG_DEPENDENCIES' variable as processed (required to avoid
spurious errors).
* lib/am/check2.am (%.log, %.trs): Depend on '$(%PFX%LOG_DEPENDENCIES)'.
* t/parallel-tests-per-suffix-deps.sh: New test.
* t/parallel-tests-log-compiler-example.sh: Renamed ...
* t/parallel-tests-logvars-example.sh: ... to this, and adjusted to
be more faithful to the updated documentation.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
NG-NEWS
automake.in
doc/automake.texi
lib/am/check2.am
t/parallel-tests-logvars-example.sh [moved from t/parallel-tests-log-compiler-example.sh with 87% similarity]
t/parallel-tests-per-suffix-deps.sh [new file with mode: 0755]