|
Boost : |
Subject: Re: [boost] [build][doc] Testing section and run rule
From: Dave Abrahams (dave_at_[hidden])
Date: 2010-11-03 18:53:48
On Thu, Nov 4, 2010 at 7:44 AM, Mateusz Loskot <mateusz_at_[hidden]> wrote:
> Hi,
>
> I'm looking for reference about run rule and the only thing I can find
> is this short reference:
>
> http://www.boost.org/doc/tools/build/doc/html/bbv2/reference/rules.html
>
> pointing to the Testing section which is currently blank:
>
> http://www.boost.org/doc/tools/build/doc/html/bbv2/tutorial/testing.html
>
> Would there be any chance to get this part updated?
>
> I'm looking for details about the run rule arguments:
>
> rule run (
> sources + :
> args * :
> input-files * :
> requirements * :
> target-name ? :
> default-build * )
>
> I'd appreciate if someone could explain what is the differences:
> sources vs input-files or args vs input-files.
* sources get compiled into the test executable
* The names of input-files get passed to the test executable on the
command-line and the tests will be considered outdated (and re-run) if
one of them changes
* args are other arguments to the test executable, that create no
dependency relationship.
See the libs/python/test/Jamfile.v2 for some examples.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk