[CMake] Zero coverage being reported on gcc/Linux builds.

Kent Williams nkwmailinglists at gmail.com
Thu Apr 26 11:04:02 EDT 2012


I've verified that the gdca files are there. And it displays coverage
on CDash -- indicating coverage reports are being pushed to the CDash
server -- but reports zero coverage.

I am using a SuperBuild/ExternalProject build system but for the
purposes of dashboards, I do the top level build, then go to the build
subdirectory for the project I'm interested in testing, make clean,
and then make Experimental.  I have to do this anyway, because the
top-level 'SuperBuild' has a bunch of stuff the program needs, but
isn't relevant to the dashboard, and because you have to go to your
application's directory for CTest to find any tests to run.

On Tue, Apr 24, 2012 at 6:32 AM, David Cole <david.cole at kitware.com> wrote:
> Ugh. You're probably doing everything right, and there's just a bug of some
> sort. Unfortunately, debugging these things is neither easy nor fun.
>
> First, look for Coverage*.log files in the Testing/ subdirectories of your
> build tree. Are there any errors mentioned in there?
>
> Next, verify that there are some *.gcda files in the build tree:
>   find . -name *.gcda
>
> There is a known/reported issue with the coverage not reporting correctly
> right now for gcc 4.7, but this is the first problem I've heard of with an
> earlier gcc...
>
>   http://public.kitware.com/Bug/view.php?id=13121
>
>
>
> On Mon, Apr 23, 2012 at 5:18 PM, Kent Williams <nkwmailinglists at gmail.com>
> wrote:
>>
>> cmake: 2.8.6
>> gcc/g++: 4.4.6-3
>> Red Hate Enterprise Linux 6.2
>>
>> I follow the instructions here: http://www.cmake.org/Wiki/CTest/Coverage
>>
>> And I have 2 different dashboards that report zero coverage:
>>
>>
>> http://testing.psychiatry.uiowa.edu/CDash/index.php?project=BRAINSStandalone
>> http://testing.psychiatry.uiowa.edu/CDash/index.php?project=ANTS
>>
>> I don't know what's going on because I remember coverage working, and
>> it's obviously doing something for other projects, e.g. ITK:
>> http://public.kitware.com/dashboard.php?name=itk
>>
>> Call me an idiot, but I can follow instructions, and following the
>> instructions I can find isn't doing the trick.
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>
>


More information about the CMake mailing list