Boost logo

Boost-Build :

Subject: [Boost-build] unit test questions
From: Nogradi, Chris (Chris.Nogradi_at_[hidden])
Date: 2011-02-09 08:33:48


I am trying to piecemeal together a solution for setting the location of a unit test's output XML file (which is different from stdout) using the run rule's args argument. However, I am unable to find an appropriate variable to use for my $(test_base_name) variable below as none of the arguments passed in seem to have the necessary information. Any suggestions? I see an example of this with the unit-test rule in the archives, should I use that instead?

rule run ( sources + : args * : input-files * : requirements * : target-name ? : default-build * )
{ $(sources) __extra_libs__ : "-o $(test_base_name)_results.xml" $(args) : $(input-files) : $(requirements) : $(target-name) : $(default-build) ;

Also, I would like to set <testing.launcher> for a new toolchain that we have developed so that it only applies when that tool is used. So far I have the solution below but this requires it to be specified in all Jamroots. Is there a way to put it in the tool.jam file and not have it affect other tools used such as msvc?

project proj : requirements <toolset>myTool:<testing.launcher>"myLauncher -c -o " ;

Thanks in advance for any help,


This e-mail and any attachments may contain confidential material for the sole use of the intended recipient. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please contact the sender and delete all copies.

Thank you for your cooperation.

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at