Boost logo

Boost-Build :

Subject: Re: [Boost-build] command line arguments to unit-test
From: Phillip Seaver (phil_at_[hidden])
Date: 2009-03-27 13:30:35


groups queries wrote:
> Hello,
>
> A newb question.
>
> What is correct syntax to pass a command line parameter to a
> unit-test application?, in an example rule like this:
>
> unit-test test-app : test-app.cpp : <library>liba ;
>
> I tried, in vain:
>
> unit-test test-app : test-app.cpp : <library>liba : $(filename) ;
>
> Thanks in advance.
> --
> Regards,
> - Vin -

Try using the "run" rule, which is documented on this page:
http://www.boost.org/boost-build2/doc/html/bbv2/builtins/testing.html

Phillip


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