Boost logo

Boost-Build :

Subject: Re: [Boost-build] Latest b2 on trunk always rerunning tests
From: Edward Diener (eldiener_at_[hidden])
Date: 2013-11-06 09:04:12


On 11/6/2013 5:11 AM, Jürgen Hunold wrote:
> Hi Voloday,
>
> On Wednesday, 6. November 2013 13:21:13 Vladimir Prus wrote:
>> On 06.11.2013 13:01, Edward Diener wrote:
>>> I am using the latest b2/bjam executable from 'trunk'. What I am seeing is
>>> that when running tests for any particular Boost library, the tests are
>>> always being rerun. For instance if I go into mpl or type_traits and run
>>> 'b2 toolset=sometoolset', all the tests for that module are rerun every
>>> time. This occurs even when all tests have previously passed and there
>>> have not been any changes to the source files for the tests.
>
> Are you using svn or the git repository?

I am using svn.

>
>>> Is this a bug with the latest b2/bjam changes ? If not, how can I debug
>>> why the tests are being rerun even when no changes have been made ?
>> I don't see this on trunk, when running b2 in libs/program_options/test; I'm
>> on Ubuntu. Can you see whether the problem exists in that directory as
>> well, for you?
>
> svn trunk is okay. I fear I might have triggered this behaviour on the git
> repository with r86527:
>

I see this fix in the svn repository.

>> Author: jhunold
>> Date: 2013-10-30 15:27:44 EDT (Wed, 30 Oct 2013)
>> New Revision: 86527
>> URL: http://svn.boost.org/trac/boost/changeset/86527
>> Log:
>> Direct dependency on /boost//headers is needed to trigger forward header
>> generation.
>>
>> Modified: trunk/libs/Jamfile.v2
>> ============================================================================
>> == --- trunk/libs/Jamfile.v2 Wed Oct 30 14:23:01 2013 (r86526)
>> +++ trunk/libs/Jamfile.v2 2013-10-30 15:27:44 EDT (Wed, 30 Oct 2013)
>> (r86527) @@ -11,5 +11,5 @@
>>
>> # implicit dependency to headers staged as links in <boost-root>/boost
>>
>> project boost/libs
>>
>> - : requirements <implicit-dependency>/boost//headers
>> + : requirements <dependency>/boost//headers
>>
>> ;
>
> This eliminates the "b2 headers" step but seems to trigger full rebuilds on
> every b2 invocation.

This change is in svn on 'trunk'. However changing back to use
implicit-dependency does not fix the problem for me; only the first test
is not rerun while all the rest are rerun.


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk