]> git.draconx.ca Git - dxcommon.git/commitdiff
Improve distribution of Autotest testsuite dependencies.
authorNick Bowler <nbowler@draconx.ca>
Sat, 8 Feb 2020 16:11:28 +0000 (11:11 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 8 Feb 2020 16:11:28 +0000 (11:11 -0500)
A fresh distribution tarball includes a generated testsuite, but
does not have the benefit of rules from automatic dependency tracking.

This means if a file included by the testsuite is modified in the
tarball, the build will not detect that testsuite is out of date
and will not try to rebuild it.

A similar scenario occurs if 'make distclean' is run after building
the test suite.

Since modern Automake uses make rules to generate the dependency stubs,
we can use the distributed testsuite dependencies record to produce
an accurate initial list of prerequisites.  And by ensuring that this
file is updated whenever the testsuite is built, we can handle the
'make distclean' case too.


No differences found