[CMake] Coverage tests with gcov under Linux

Bill Hoffman bill.hoffman at kitware.com
Fri May 9 11:01:47 EDT 2008


Judicaël Bedouet wrote:
> Hello,
> 
> I would like to exploit gcov results with CMake and CDash.
> 

>    Using HTTP submit method
>    Drop site: http://125.xxx.xxx.xxx/CDash/submit.php?project=BDGC
>    Uploaded: /home/xxxxxxxx/Testing/20080509-1423/Build.xml
>    Uploaded: /home/xxxxxxxx/Testing/20080509-1423/Configure.xml
>    Uploaded: /home/xxxxxxxx/Testing/20080509-1423/Coverage.xml
>    Uploaded: /home/xxxxxxxx/Testing/20080509-1423/CoverageLog-0.xml
>    Uploaded: /home/xxxxxxxx/Testing/20080509-1423/Test.xml
>    Submission successful
> Errors while running CTest
> make[3]: *** [CMakeFiles/Experimental] Erreur 40
> make[2]: *** [CMakeFiles/Experimental.dir/all] Erreur 2
> make[1]: *** [CMakeFiles/Experimental.dir/rule] Erreur 2
> make: *** [Experimental] Erreur 

I did just fix a bug in 2.6.0 with coverage and ctest:

http://public.kitware.com/Bug/view.php?id=6988

However, your problem sounds different.  Does the ctest from CMake 2.4.8 
work for you?  What version of gcc/gcov are you using?  Perhaps the 
problem is a new format from gcc/gcov?

-Bill




More information about the CMake mailing list