Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to run python test's explicitly ?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-04-22 03:27:35


On Thursday 22 April 2010 10:23:32 Евгений Шубин wrote:

> > 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)?

Exactly as Steven said. If you use:

        bjam <other options> ecf

then only ecf target is requested. Of course, if it depends on other targets those
will be made as well, but no independent targets will be built.

Does this answer the question?

- Volodya

>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>

Thanks,

--
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build: http://boost.org/boost-build2

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