Bryan Drewery <bdrew...@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.

_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to