cppunit test

Holger Schröder holger-kde at holgis.net
Tue Jan 10 17:22:07 CET 2006


On Thursday 05 January 2006 09:43, Frederic-Emmanuel PICCA wrote:
> 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
>
it is spelled AddPostAction with a capital beginning A, at least in my 
scons-0.96.91.

> >Hope this helps,
> >Thomas
>
> _______________________________________________
> Kde-buildsystem mailing list
> Kde-buildsystem at kde.org
> https://mail.kde.org/mailman/listinfo/kde-buildsystem

-- 
regards,

Holger Schröder



More information about the Kde-buildsystem mailing list