View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012415CMakeCTestpublic2011-08-20 06:582012-03-06 08:37
ReporterAndreas Schneider. 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSopenSUSEOS Version11.4
Product VersionCMake 2.8.5 
Target VersionCMake 2.8.7Fixed in VersionCMake 2.8.7 
Summary0012415: CTest doesn't push all generated coverage files to CDash
DescriptionI have project with unit tests. I see that gcov files get created and I can see CTest creating all required files out of the gcov files in 'Testing/CoverageInfo' I just don't see it in CDash.

Look e.g. at these to pushes:
http://test.libssh.org/viewCoverage.php?buildid=4211 [^]

http://test.libssh.org/viewCoverage.php?buildid=4197 [^]

One shows pki_crypto.c one doesn't. I also miss a lot of other file where correct coverage files exists in 'Testing/CoverageInfo'.

I've attached the 'Testing' directory as a tar.gz file.
Steps To Reproducegit clone git://git.libssh.org/projects/libssh.git [^]
cd libssh/build
cmake -DWITH_TESTING=ON -DCMAKE_BUILD_TYPE=Profiling ..
make Experimental
Additional InformationYou need openssl, zlib and cmockery (for the unit tests).

http://git.cryptomilk.org/users/asn/cmockery.git/ [^]
TagsNo tags attached.
Attached Filesgz file icon testing.tar.gz [^] (940,025 bytes) 2011-08-20 06:58

 Relationships
related to 0011717closedDavid Cole gcov: handling the same file name in different directories 
related to 0012490closedDavid Cole Coverage counts 0 lines when path too long 

  Notes
(0027385)
David Cole (manager)
2011-09-06 16:19

Not enough time left to address this issue before the 2.8.6 release. Deferred until a future release.
(0027493)
David Cole (manager)
2011-09-29 17:33

Was this perhaps (it's the only thing I can find in the change logs that is coverage related...) caused by the addition of "-p" in the gcov flags for fixing 0011717 ...?

Try reverting this commit on a local CMake build, and see if the problem still occurs with the ctest build with that reverted commit, if you can:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6e02a3b2bf43f4785bb21eb1cf8bbc26ac1abc12 [^]
(0027494)
David Cole (manager)
2011-09-29 17:47

The coverage file full path is limited to 255 characters in the CDash database schema:

CREATE TABLE `coveragefile` (
  `id` int(11) NOT NULL auto_increment,
  `fullpath` varchar(255) NOT NULL default '',

Are your filenames longer than 255 characters?
(0027496)
Andreas Schneider. (developer)
2011-09-30 04:02

No, I don't have such long filenames. Look at the log files. All files and information is there. It just doesn't show up in CDash.
(0027617)
David Cole (manager)
2011-10-22 11:19
edited on: 2011-10-22 11:43

Potential fix pushed to 'next':

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f309cba455d0a946e935f66a53561ba64717faf [^]

Although, I wonder if there's some other problem processing these coverage files on the CDash side as well... I can build/submit to a local "svn trunk" instance of CDash just fine. But I can do so using either CMake 2.8.5 or the just-fixed version where I have the above-referenced commit in my source tree...

(0028829)
David Cole (manager)
2012-03-06 08:37

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-08-20 06:58 Andreas Schneider. New Issue
2011-08-20 06:58 Andreas Schneider. Status new => assigned
2011-08-20 06:58 Andreas Schneider. Assigned To => Brad King
2011-08-20 06:58 Andreas Schneider. File Added: testing.tar.gz
2011-08-22 11:42 Brad King Assigned To Brad King => David Cole
2011-09-06 16:19 David Cole Note Added: 0027385
2011-09-06 16:19 David Cole Target Version CMake 2.8.6 =>
2011-09-29 17:33 David Cole Note Added: 0027493
2011-09-29 17:47 David Cole Note Added: 0027494
2011-09-30 04:02 Andreas Schneider. Note Added: 0027496
2011-10-05 17:30 David Cole Relationship added related to 0012490
2011-10-05 17:31 David Cole Relationship added related to 0011717
2011-10-21 12:20 David Cole Target Version => CMake 2.8.7
2011-10-22 11:19 David Cole Note Added: 0027617
2011-10-22 11:19 David Cole Status assigned => resolved
2011-10-22 11:19 David Cole Fixed in Version => CMake 2.8.7
2011-10-22 11:19 David Cole Resolution open => fixed
2011-10-22 11:43 David Cole Note Edited: 0027617
2012-03-06 08:37 David Cole Note Added: 0028829
2012-03-06 08:37 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team