|
Boost-Build : |
Subject: Re: [Boost-build] How to run python test's explicitly ?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-04-16 11:40:12
AMDG
Avi Bahra wrote:
> I am new to python, I have copied an existing jam file
> However this runs the test with the build.
> Currently I am envisioning that I will end up
> with a huge number of test to run. Hence I do
> not want to run them when building the project.
> Here is the sample jamfile
>
> ...
> ...
> # 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
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