Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-05-22 21:08:56


"Reece Dunn" <msclrhd_at_[hidden]> writes:

> Is it possible to add the level as a parameter like how you can
> configure static/dynamic linking, e.g.:
>
> test basic : basic.cpp : <level>basic ;
> test complete : complete.cpp : <level>torture ;
>
> # basic-tests.sh
> bjam ... basic-test
>
> # full-tests.sh
> bjam ... full-test

It's easy enough to do something like that. You could just make
an additional "torture-test" target so you can do:

  bjam test

or

  bjam torture-test

or you could simply write in the Jamfile:

  if --torture in $(ARGV)
  {
     # more tests here
  }

and then:

  bjam --torture test

which would make bjam faster for the non-torture cases.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk