|
Boost Users : |
Subject: Re: [Boost-users] [Boost] Command Line to run a specific Boost Test Case using BOOST_AUTO_TEST_CASE_TEMPLATE
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2013-09-11 00:26:47
Hemanth Choudary M V (RBEI/ETA1 <HemanthChoudary.MV <at> in.bosch.com>
writes:
>
>
>
> Hi,
> Â
> I would like to run this boost test case using the command line.
> Please note that the list contains data types that have 2 or more words.
> I need to know what to pass in the Command Line for ârun_test=__________
> Â
> typedef boost::mpl::list<long long,unsigned char> test_types;
> Â
> BOOST_AUTO_TEST_CASE_TEMPLATE( my_test, T, test_types )
> {
> Â Â Â BOOST_CHECK_EQUAL( sizeof(T), (unsigned)4 );
> }
You actually have 2 test cases here. To run one you'll need to do this:
test.exe --run_test="my_test<long long>"
to run all:
test.exe --run_test="my_test*"
(tested on windows with latest trunk, but I believe it should work in
release version as well).
Gennadiy
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