Boost logo

Boost Testing :

Subject: Re: [Boost-testing] Boost.Locale failure killing nightly tests
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-07-16 10:55:04


>
> 1. Why does it stop testing if one library can't be build?
>
> What can be done to fix it?
>It might be more 'declarative' to have a dependency which acts more
>like a build failure if the requirements aren't available, but I don't
>know if that's possible.

Right, the trick is to add:

[ check-target-builds my_config_check : : <build>no ]

To either your project's requirements, or each test target requirements,
then those tests get skipped when the target "my_config_check" fails to
build, you can also use this to inject specific build options only when
"my_config_check" succeeds.

HTH, John.


Boost-testing list run by mbergal at meta-comm.com