Boost logo

Boost :

Subject: Re: [boost] [test] [build] best practices for looking up data files from test executables
From: Jürgen Hunold (jhunold_at_[hidden])
Date: 2017-11-14 06:39:05


Hi!

Am Montag, 13. November 2017, 22:07:09 CET schrieb Peter Dimov via Boost:
> Stefan Seefeld wrote:
> > But using boost::test I don't have direct access to argv, or do I ? I
> > don't get to write my own main() function...

> http://www.boost.org/doc/libs/1_65_1/libs/test/doc/html/boost_test/tests_org
> anization/test_suite.html
> http://www.boost.org/doc/libs/1_65_1/libs/test/doc/html/boost_test/tests_or
> ganization/test_suite/master_test_suite.html

It is quite hidden in the latter link:

http://www.boost.org/doc/libs/1_65_1/libs/test/doc/html/boost_test/
tests_organization/test_suite/
master_test_suite.html#boost_test.tests_organization.test_suite.master_test_suite.command_line_arguments_access_in

boost::unit_test::framework::master_test_suite().argc
boost::unit_test::framework::master_test_suite().argv

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! 
* voice: ++49 4257 300       ! Fährstraße 1
* fax  : ++49 4257 300       ! 31609 Balge/Sebbenhausen
* jhunold_at_gmx.eu             ! Germany



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk