|
Boost Testing : |
From: David Abrahams (dave_at_[hidden])
Date: 2007-10-03 13:24:04
on Tue Oct 02 2007, Rene Rivera <grafikrobot-AT-gmail.com> wrote:
> David Abrahams wrote:
>> on Thu Sep 13 2007, Rene Rivera <grafikrobot-AT-gmail.com> wrote:
>>
>>> Beman Dawes wrote:
>>>> In the "Running Boost Regression Tests" docs, there is no mention in the
>>>> Installation section of the need to provide a user-config.jam file. Yet
>>>> without such a file, bjam fails because a couple of the tests require
>>>> python.
>>>>
>>>> There should be a bullet item saying you need to supply a
>>>> user-config.jam file, what it should contain, and where it should go.
>>>>
>>>> The minimal contents, according to the Boost.Python docs, are:
>>>>
>>>> import toolset : using ;
>>>> using python ;
>>> I believe Dave mentioned he was going to remove the conditional which
>>> doesn't define the BPL libs if Python isn't configured.
>>
>> I mentioned what, now? What conditional?
>
> The conditional in libs/python/build/Jamfile.v2 that says:
>
> if [ python.configured ] {
> project boost/python ...
> lib boost_python ...
> }
> else
> {
> ECHO "warning: Python location is not configured" ;
> ECHO "warning: the Boost.Python library won't be built" ;
> }
Feel free to remove that for me; I don't have a very fast net
connection right now.
>> When libs/python/build/Jamfile.v2 is read by bjam, unless you have a
>> very strange installation, python will be auto-configured. Invoking
>> all our tests *should* cause bjam to read that file.
>
> Well yes. But, currently, if a tester doesn't have Python configured
> they get a total halt in testing. Without the condition they would get
> compile, link, and other errors... Probably :-)
How would the above result in a halt to testing?
> Of course I would really like to have some feedback on the "unavailable"
> target idea I posted about for cases such as these
> <http://lists.boost.org/boost-build/2007/08/17177.php>.
Makes sense to me.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com