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@lists.boost.org 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