Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-03-27 01:52:49


Khassapov, Alex wrote:

> Hi,
>
>
>
> I wonder if there's a rule I could use to run unit tets which don't
> require source, i.e. simply execute python scripts?

No. unit-test assumes that the sources is either EXE, or something
convertible to EXE. Making unit-test run whatever is passed to it
will mess up the current behaviour.

However, to get what you want you can:

1. Just use the 'make' rule.
2. Use the following:
        
        import type ;
        import generators ;

        type.register UNIT_TEST_RAW : UNIT_TEST ;
        generators.register-standard testing.unit-test : : UNIT_TEST_RAW ;
        
        unit-test-raw something : script.py ;

(This presently assumes that "." directory is in PATH)

Does this help?

- Volodya


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