Subject: Re: [Boost-build] testing an application
From: Jurko GospodnetiÄ (jurko.gospodnetic_at_[hidden])
Date: 2012-09-13 02:36:54
> I would like to incorporate a final sanity checks for the produced executable.
> Note I have tons of unit tests in place and I build and run them with
> the rules dedicated for that. This is not what I am asking for.
> What I need is to execute tests that will validate that everything was
> put together correctly.
If I understand you correctly - you want to run 'something' after
your exe gets built.
As a simple solution - have you looked at 'notfile' (if you do not
want your testing step to create a file) or 'make' (if you want your
testing step to create a file) rules? Specifying the exe as a source for
such a target and using the target's action for running whatever command
If you need this more often you could also wrap this under some
'nicer' construct - like a customized target class, generator or
whatever, but that requires a bit more effort (see tools/make.jam &
tools/notfile.jam modules to see how those targets have been implemented).
Hope this helps.
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