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 : .. ;
> [ glob *.cpp ]
> : # args
> : # input files
> : <include>.
> : 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)
[ glob *.cpp ]
: # args
: # input files
<testing.launcher>"cd $(testDir) && "
: # default build
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