Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to run python test's explicitly ?
From: å×ÇÅÎÉÊ ûÕÂÉÎ (shubin_evgeniy_at_[hidden])
Date: 2010-04-22 02:23:32


> AMDG
>
> > # A little "rule" (function) to clean up the syntax of declaring tests
> > # of these extension modules.
> > local rule run-test ( test-name : sources + )
> > {
> > import testing ;
> > testing.make-test run-pyd : $(sources) : : $(test-name) ;
> > }
> >
> > # Declare test targets
> > run-test ecf : ecf_ext [ glob src/Defs.py ] ;
> > run-test ecf2 : ecf_ext [ glob src/Client.py ] ;
> > run-test TestDefs : ecf_ext [ glob test/TestDefs.py ] ;
> >
> >
> > Hence I need a way of running tests, ecf,ecf2,TestDefs on the command line ?
> > Is this possible as the run-test also defines the python file to execute ?
> >
>
> You should be able to run
>
> bjam <other options> ecf ecf2 TestDefs
>
> In Christ,
> Steven Watanabe

There is one more question: how to run rules explicitly (not to run on any other target)?


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