cppunit test

Frederic-Emmanuel PICCA piccaf at physics.mcgill.ca
Thu Jan 5 09:43:46 CET 2006


Nagy Thomas wrote:

>>I wrote a cppunit.py with its
>>unix/generate_cppunit.py
>>I want to execute the test after the compilation.
>>But now it is just after scons parse all the
>>sconscript and before the build
>>    
>>
>
>Until a better solution appears, here is an idea, in
>pseudo-code:
>
>"""
>if 'test' in sys.argv:
>    env['_RUNTTESTS_']=1
>
>
>
>if '_RUNTESTS_' in env:
>    run_some_unit_tests()
>else:
>    do_something_else()
>"""
>
>  
>
You mean in the generate part or the execute one ?

>Scons functions like "addPostAction" may help too,
>have a look.
>
>  
>

I can not find this method in the man page and in the source code of my 
scons version .91.

Maybe in the CVS version

>Hope this helps,
>Thomas
>  
>


More information about the Kde-buildsystem mailing list