tests: extend tests on dependency tracking with VPATH
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 17 Apr 2011 12:28:17 +0000 (14:28 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 1 May 2011 16:44:31 +0000 (18:44 +0200)
commit3c91fc9a36fb802e05d47308b7e0f3ecf3bcf77a
treec46002d2b36cb85757d2772229888f3b483d415e
parentc348cde4decb1f22a2305742cadafcaf0dd70d63
tests: extend tests on dependency tracking with VPATH

* tests/depmod-tests.sh: New script, fulfilling a threefold role:
1. it is called to generate a Makefile.am snippet, containing the
   definition of proper lists of tests;
2. it is called to set up a directory containing some common data
   files and autotools-generated files used by the aforementioned
   tests (this is done for speed reasons only); and
3. it is called to properly run those tests, one at a time.
* tests/depcomp9.test: Delete, it's obsolete now.
* tests/depcomp10.test: Likewise.
* tests/Makefile.am ($(srcdir)/depmod-tests.am): Include this
snippet, which defines ...
(depmode_tests): ... this new macro, containing the list of the
newly generated `*.depmod' tests.
(TESTS_EXTENSIONS): Add `.depmod'.
(DEPMOD_LOG_COMPILER): Define.  It calls `depmod-tests.sh', so that
the "depmode tests" will be executed by passing that driver script
a proper parameter.
($(depmod_tests)): New dependency declaration (dummy, but required
in order to have make actually produce expected log files from the
`.depmod.log' suffix rule).
(TESTS): Add $(depmod_tests).
(EXTRA_DIST): Distribute depmod-tests.sh.
Other minor cosmetic changes and reorderings.
* bootstrap: Generate depmod-tests.am.
* tests/.gitignore: Updated.
ChangeLog
bootstrap
tests/.gitignore
tests/Makefile.am
tests/Makefile.in
tests/depcomp10.test [deleted file]
tests/depcomp9.test [deleted file]
tests/depmod-data.test [new file with mode: 0755]
tests/depmod-tests.sh [new file with mode: 0755]