Boost logo

Boost Users :

From: Rupert Bruce (rupert_at_[hidden])
Date: 2008-04-18 12:42:18


Ovanes Markarian wrote:
> Hello *,
>
> I have a question regarding testing. I would like to test my
> implementation how it bahaves in multi-threaded environment within
> different compilation units. Does anyone have ideas how I can generate
> from my c++ project (no perl or other scripting tools) (possibly with
> preprocessor ??) multiple compilation units in an automated way.
>
>
> Many thanks,
> Ovanes
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Your C++ code can simply write a testcase.cpp file for you. I use this
for testing modifications to a model - I have an old but dependable
model which writes test cases when I set a flag in my properties file.
Most of the file is static strings, the parts that change are input
parameters and results. I then rebuild (make automatically picks up the
extra cpp files) the new model and the test cases are run at startup.
BTW, I use UnitTest++ because it works and I haven't had a need to change...

Cheers
Rupert



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net