Boost logo

Boost-Build :

From: Anatoli Sakhnik (sakhnik_at_[hidden])
Date: 2007-03-22 04:19:58


Hello!

I've just tried the boost build system v2, and I like it! But I
haven't succeeded looking for answers in the web. My current problem
is with unit testing.

Let's suppose I have a project structure:
/foo # tested prject
   Jamroot
   /test # testing code
      Jamfile

I'd like to have the /foo/test built every time I build the foo
itself. So I put the line
build-project test ;
in my Jamroot. Nice. But many tests use relative paths to local files.
So when I run bjam in the directory /foo/test, everything works well,
but when I do this within /foo, no local file is found. As I
understand, the current directory is /foo in the latter case.

What would you suggest me to the problem?

-- Anatoli Sakhnik.


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