[CMake] QTestlib CTest Integration

Mike Arthur mike at mikearthur.co.uk
Thu Jul 3 11:57:10 EDT 2008


On Thursday 03 July 2008 16:40:31 you wrote:
> So, QTestLib does a bunch of tests at one go, and produces its own
> summery sort of like what ctest does?
Yeh, I'll put the output at the bottom of this mail. I think this would not 
just help my current project but help KDE as well (which I hack on too).

> No, I would still rather have that be clean output.   However, I think
> you can do this:
Sorry, I'm still not being clear! I suck at communicating today!

I don't mean make the default "ctest -V", obviously I don't expect you to 
change CMake just because I like it like that ;)

What I meant is is there a variable I can set in my CMakeLists.txt to mean 
that "ctest -V" is called instead of "ctest".

Anyway, the output with ctest -V:

UpdateCTestConfiguration  
from :/home/mike/work/Mendeley/build/DartConfiguration.tcl
Start processing tests
UpdateCTestConfiguration  
from :/home/mike/work/Mendeley/build/DartConfiguration.tcl
Test project /home/mike/work/Mendeley/build
Constructing a list of tests
Done constructing a list of tests
Changing directory 
into /home/mike/work/Mendeley/build/src/Tests/Recognition_Tests
  1/  1 Testing Recognition_Tests
Test command: /home/mike/work/Mendeley/build/bin/Recognition_Tests
Test timeout computed to be: 9.99988e+06
********* Start testing of RecognitionUtil_Test *********
Config: Using QTest library 4.4.0, Qt 4.4.0
PASS   : RecognitionUtil_Test::initTestCase()
PASS   : RecognitionUtil_Test::GetPartsByMask_SepBySize_1()
PASS   : RecognitionUtil_Test::GetPartsByMask_SepBySize_2()
<snip>
PASS   : RecognitionUtil_Test::RemoveLineWithOneWord_4()
PASS   : RecognitionUtil_Test::cleanupTestCase()
Totals: 47 passed, 0 failed, 0 skipped
********* Finished testing of RecognitionUtil_Test *********
-- Process completed
   Passed

100% tests passed, 0 tests failed out of 1

-- 
Cheers,
Mike Arthur


More information about the CMake mailing list