Sanel Zukan <sanelz <at> gmail.com>
2011-02-13 12:10:09 GMT
You can create e.g. 'tests' target and make it depends on 'all'. Just make sure
test binary ('test' target) invokes, quit with 1 if fails, so jam
could see it as failed
command. Then jam will report build as failed if tests fails too (assuming
compilation was fine).
On Sun, Feb 13, 2011 at 6:53 AM, Scott Dixon <scottd.nerd <at> gmail.com> wrote:
> Does anybody know how to invoke a unit test (e.g. an executable that runs a
> cppunit test runner) as part of a jam build and have it fail the build if
> the test fails?
> jamming mailing list - jamming <at> maillist.perforce.com
jamming mailing list - jamming <at> maillist.perforce.com