Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Conditional Tests] How to make tests to depend on properties of library they use
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-01-05 17:21:20


Le 05/01/13 22:33, Artyom Beilis a écrit :
>
>
>
> ----- Original Message -----
>> From: Vicente J. Botet Escriba <vicente.botet_at_[hidden]>
>>> ----- Original Message -----
>>>> From: Vicente Botet <vicente.botet_at_[hidden]>
>>>> Subject: Re: [Boost-build] [Conditional Tests] How to make tests to
>> depend on properties of library they use
>>>> Steven Watanabe-4 wrote
>>>>> AMDG
>>>>>
>>>>> On 03/22/2011 06:40 AM, Artyom wrote:
>>>>>> I have following setup.
>>>>>>
>>>>>> libs/locale/build
>>>>>>
>>>>>> uses properties
>>>>> <boost.locale.icu>
>>>>> on/off
>>>>> <boost.locale.std>
>>>>> on/off and
>>>>>> so on library boost_locale
>>>>>>
>>>>>> I want to add test suites according to these properties:
>>>>>>
>>>>>> test-suite "icu"
>>>>>> :
>>>>>> [ run test_collate.cpp ]
>>>>>> [ run test_convert.cpp ]
>>>>>> [ run test_boundary.cpp ]
>>>>>> [ run test_formatting.cpp ]
>>>>>> [ run test_generator.cpp ]
>>>>>> [ run test_icu_vs_os_timezone.cpp ]
>>>>>> : (Something run only if ../build//boost_locale has
>>>>> <boost.locale.icu>
>>>>> on )
>>>>>> ;
>>>>>>
>>>>>>
>>>>>> How can I do this?
>>>>> Something like
>>>>> <boost.locale.icu>
>>>>> off:
>>>>> <build>
>>>>> no?
>>>> Where these should be located?
>>>>
>>>> Best,
>>>> Vicente
>>>>
>>>>
>>>
>>> What do you mean?
>>>
>>>
>> I guess I've got the answer. Does the following works for your needs?
>>
>> [ run test_collate.cpp : : : <boost.locale.icu>off:<build>no ]
>>
>> Best,
>> Vicente
>>
> Ahhh... I remember that I straggled with it for a looooooooong time and
> finally changed the C++ code such that if backed is disabled
> the test just becomes empty/dummy.
>
> See for example: https://svn.boost.org/svn/boost/trunk/libs/locale/test/test_posix_collate.cpp
>
> Several few lines.
>
> So no, it does not work...
>
> Why do you ask?
>
Because I want to not run some tests.

Vicente


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