|
Boost : |
Subject: Re: [boost] How to make tests building faster?
From: Mateusz Åoskot (mateusz_at_[hidden])
Date: 2011-12-20 19:18:35
On 20 December 2011 18:23, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> On 12/20/2011 08:23 AM, Dave Abrahams wrote:
>> on Tue Dec 20 2011, Mateusz Åoskot <mateusz-AT-loskot.net> wrote:
>>
>>> I'm trying to figure out if there is anything I could do to improve
>>> compile/link-time for tests of Boost.Geometry library.
>>> Currently, the tests follow fairly canonical approach in Boost:
>>>
>>> 1) Each .cpp file defines a single test program and all local test
>>> Â Â routines are executed from test_main()
>>
>> That's your problem right there. Â The canonical organization is
>> unfriendly to fast test times and I would not use it for my next
>> library. Â It's better to put more tests together in the same executable,
>> and more in the same translation unit.
>>
>
> That works as long as you don't have a lot
> of compile-fail tests, which must be in
> separate translation units.
I assumed it is obvious that compile-fail tests are in separate
translation units.
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk