Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] How do run a specific test suite?
From: Ahmed Badran (ahmed.badran_at_[hidden])
Date: 2009-07-06 18:19:16


Dmitry Bufistov wrote:
> Ahmed Badran escribió:
>> Ahmed Badran wrote:
>>> Christian Henning wrote:
>>>> Hi there, I believe I once read that one can specify test suite to be
>>>> run as a command line parameter. By default all test suites are
>>>> running, but, the user should be able to specify one in the case there
>>>> are several suites.
>>>
>>> Excellent point.
>>>
>>>>
>>>> I've tried to look up that information inside the boost::test
>>>> documentation but couldn't find it. Am I wrong that such functionality
>>>> exists?
>>>>
>>>
>>> afaik, this functionality doesn't exist however you can do command
>>> line globbing:
>>>
>>> ./my_unit_tests.exe --run_test=test_feature*
>>>
>>
>> Actually thinking more about it and looking again at the
>> documentation, you can use the globbing and "/" to pick particular
>> test cases/test suites
>>
>> You can do:
>> ./my_unit_tests.exe --run_test=test_suite_1/*
>>
>> hope this is useful.
>>
>> Regards,
>> Ahmed
>
> I believe this won't execute anything. This
> ./my_unit_tests.exe --run_test=/test_suite_1*
> will do.
>
> Dmitry
>

I'm not quite sure, but the following link details different test
selection scenarios, I believe the one before the last can be used to
accomplish what Christian wants to do:

http://www.boost.org/doc/libs/1_38_0/libs/test/doc/html/utf/user-guide/runtime-config/run-by-name.html

Regards,
Ahmed


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net