From: Josh Napoli (jnapoli_at_[hidden])
Date: 2007-11-18 09:26:02
Rene Rivera wrote:
> > I'd like to build and test a python extension using bjam. How can I run
> > a test against a python-extension without deleting the .pyd dependency?
> Hm, not sure how to go about preventing that at a fine grain level. But
> you can turn off the deletion with the option "--preserve-test-targets".
> > Why would you ever want to have the test rule delete the .pyd?
> To conserve disk space for testers since running Boost regression tests
Thank you for the "preserve-test-targets" hint. That will solve my problem.
Since "unit-test" does not delete libraries listed in the "source" field, the behavior of "bpl-test" would be more symmetric if it did not delete python extensions. Perhaps there should be a generic way to flag any target as a "testing artifact" that should be deleted by capture-output.
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