Boost logo

Boost Users :

Subject: Re: [Boost-users] "cross-running" boost tests
From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2012-11-23 07:02:06


Ah, awesome. Thanks.

I didn't realize you could pass that on the command line. Makes sense of
course. I'm just not comfortable with boost build yet.

Tony

Sent from my BlackBerry® PlayBook™
www.blackberry.com

------------------------------
*From:* "Jürgen Hunold" <jhunold_at_gmx.eu>
*To:* "boost-users_at_[hidden]" <boost-users_at_[hidden]>
*Sent:* 23 November, 2012 2:54 AM
*Subject:* Re: [Boost-users] "cross-running" boost tests

Hi Tony,

On Thursday, 22. November 2012 15:27:46 Gottlob Frege wrote:

> That is along the right track. But I don't want to have to do that for

> every boost test file.

>

> This isn't for my own tests, I want to run the boost tests.

>

> I sort of need a global launcher that I can hook into.

Well, that is exactly the purpose of "testing.launcher".

I use this to start valgrind on all my test cases.

Jamfile syntax is:

<testing.launcher>"valgrind --leak-check=full --leak-resolution=high
--track-origins=yes --error-exitcode=1 --gen-suppressions=all"

and that would be on commandline:

 b2 testing.launcher="valgrind --leak-check=full ..."

This will start all tests with valgrind. Handy for catching memory leaks,
uninitialised variables and all the other things valgrind can detect.

You really only need to write a wrapper script which does the necessary
setup and stuff and use this as launcher skript

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-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