|
Boost-Build : |
Subject: Re: [Boost-build] Current directory in unit tests
From: Juraj IvanÄiÄ (juraj.ivancic_at_[hidden])
Date: 2009-01-28 09:09:44
Ian Emmons wrote:
> On a "run" or "unit-test" target, is there are way to set the current
> working directory for the test executable? I'm thinking it might look
> something like this:
>
> path-constant testDir : .. ;
>
> run
> [ glob *.cpp ]
> /site-config//BoostUnitTest
> : # args
> : # input files
> : <include>.
> <threading>multi
> <working-directory>$(testDir)
> : ParliamentTest
> : # default build
> ;
There is <testing.launcher> feature whose value will be prepended to the
command line used to run the test.
Try this (untested)
run
[ glob *.cpp ]
/site-config//BoostUnitTest
: # args
: # input files
: <include>.
<threading>multi
<testing.launcher>"cd $(testDir) && "
: ParliamentTest
: # default build
;
HTH,
Juraj
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk