$include_dir="/home/hyper-archives/boost-build/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2004-03-12 21:01:06
"Eric Niebler" <eric_at_[hidden]> writes:
> I'm having some difficulty writing my first Jamfile. I have a test in
> the boost-sandbox, and it has the following Jamfile (copied/modified
> from the filesystem test in sandbox):
>
> subproject libs/xpressive/test ;
>
> # bring in rules for testing
> import testing ;
>
> # Make tests run by default.
> DEPENDS all : test ;
>
> {
> # look in BOOST_ROOT for sources first, just in this Jamfile
> local SEARCH_SOURCE = $(BOOST_ROOT) $(SEARCH_SOURCE) ;
Don't do that.
> test-suite "xpressive"
> : [ run libs/xpressive/test/regress.cpp
> ]
> ;
Do this instead:
test-suite "xpressive"
: [ run regress.cpp ]
;
> }
>
> This mostly works, but I want to add an <include>$BOOST_ROOT directive,
> but I can't figure out where it should go. Any clues?
testing.jam shows:
run ( sources + : args * : input-files * : requirements * : name ? : default-build * )
so
[ run regress.cpp : : : <sysinclude>$(BOOST_ROOT) ]
would work. But I don't know why you want to add it, since it gets
added automatically by all the testing rules ;-).
-- Dave Abrahams Boost Consulting www.boost-consulting.com