[test] How do run a specific test suite?

View: New views
9 Messages — Rating Filter:   Alert me  

[test] How do run a specific test suite?

by Christian Henning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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?

Regards,
Christian
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Ahmed Badran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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*

Regards,
Ahmed
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Ahmed Badran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Dmitry Bufistov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Ahmed Badran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Robert Ramey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here's what I do to run all the tests for a specific library - in particular
for the serialization library on my local machine.

cd c:\boostrelease\libs\serialization\test
../../../tools/regression/src/library_test.sh (or bat)

The presumes that the library_status program has been built.

Robert Ramey

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.
>
> 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?
>
> Regards,
> Christian



_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Gennadiy Rozental-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Robert Ramey <ramey <at> rrsd.com> writes:

>
> Here's what I do to run all the tests for a specific library - in particular
> for the serialization library on my local machine.
>
> cd c:\boostrelease\libs\serialization\test
> ../../../tools/regression/src/library_test.sh (or bat)

I believe he asked how to run the test suite inside the test module, not the
tests belonging to particular library inside the Boost.Build.

Gennadiy

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Gennadiy Rozental-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ahmed Badran <ahmed.badran <at> gmail.com> writes:

> 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

This is the right place to look for help on the subject.

Please let me know if you still having problems.

Gennadiy

_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users

Re: [test] How do run a specific test suite?

by Christian Henning :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks to all, this is exactly what I was looking for!

Christian
_______________________________________________
Boost-users mailing list
Boost-users@...
http://lists.boost.org/mailman/listinfo.cgi/boost-users