From: Chris Weed (chrisweed_at_[hidden])
Date: 2007-07-15 11:53:52
> That's not so much 'skips' the run call. It's just 'run' call has no immediate
> effect. First, Jamfiles are read, and your 'reg' rule is executed. The 'run'
> rule only creates the target, it does not do anything yet. Then, all targets
> are built. This is a constant source of confusion; I meant to document this
> better but never finished the doc patch.
> To achieve what you want you probably do this:
> 1. Define new target type RUN_OUTPUT_WITH_DIFF
> 2. Define new generator:
> generators.register-standard your-module.run-with-diff : EXE : RUN_OUTPUT_WITH_DIFF ;
> 3. Implement the 'your-module.run-with-diff' rule and action by copy-pasting
> testing.capture-output and adding shell command to list files before and after
> running the command itself.
> Let me know if this works for you.
Actually, that is pretty much what I ended up doing.
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