Running tests unattended

David Faure faure at kde.org
Sat Apr 28 14:22:16 BST 2007


On Sunday 15 April 2007, Holger Freyther wrote:
> Hello,
> 
> for the EBN I want to regulary run the Unit Tests we have in kdelibs  
> but I have one big issue. It looks like kio-jobtest and kdecore- 
> servicetest will never exit. What is strange is when I run these  
> tests by hand (in the same environment) they execute and exit just fine.
> So the obvious questions are. Does it work for you? Do you run tests  
> as a different user? Do you clean the environment before running  
> tests? And do we have some kind of a upper limit/timeout for the tests?

I have the same problem even without a cron job; make test hangs, while ./jobtest works.
I believe this is a bug in ctest.
However, note that it only happens when kdeinit isn't already running and the test program
has to launch it. Somehow it all works (the test runs and passes), but when it exits, ctest
doesn't notice.
The workaround is therefore easy: run kdeinit before running the tests.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list