Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-04 17:43:00

Beman Dawes <bdawes_at_[hidden]> writes:

> While using testing.jam, I've made the follow mistake a number of times:
> bjam --dump-tests "-sTOOLS=gcc"
> The correct invocation is:
> bjam --dump-tests "-sTOOLS=gcc" test
> Without the "test" argument, the test programs are compiled and linked, but
> the tests not run.
> Would it be possible to change the default for testing.jam runs to "test"?

I did it that way so that people could put tests and regular targets
in the same Jamfile, and tests would not be built by default. It can
easily be overridden by sticking

DEPENDS all : test ;

In the Jamfile. I don't know which is the best default behavior.
Certainly at boost everyone is making a separate test directory, but
it's common to see

make all

which builds the products and

make test

which runs tests.

> Less attractive, but still better than silent failure would be to put out
> and error message and abort if no target is supplied.

No need for that ;-)

David Abrahams
dave_at_[hidden] *
Boost support, enhancements, training, and commercial distribution

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at