svn commit: r296970 - head/lib/libxo/tests

Simon J. Gerraty sjg at juniper.net
Thu Mar 17 04:46:19 UTC 2016


Bryan Drewery <bdrewery at freebsd.org> wrote:
> Btw I recently hooked up MK_TESTS to DIRDEPS_BUILD and added them all
> (at the time) to targets/.

Hmm how did you do that?

In our build local.dirdeps.mk checks each DEP_RELDIR to see if there is
a tests/Makefile.depend.host below it, and if so adds it to the
dependency graph - but not to the dependencies of DEP_RELDIR - which
could introduced circular dependencies.
[It also has to check if ${DEP_RELDIR}/tests is listed as broken for the
current host os - not all tests can run on all build hosts]

Thus we build all the tests (and only the tests) relevant to what we are
building.

And since when building tests for "host" we run them immediately, if any
fail the build fails.

Hooking all the tests into a tests target is useful too of course.



More information about the svn-src-all mailing list