MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0009678 | CMake | CTest | public | 2009-10-07 13:55 | 2010-12-14 18:49 | |||||
Reporter | Wojciech Migda | |||||||||
Assigned To | David Cole | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | won't fix | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-6 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0009678: CTest fails to summarize code coverage using gcov for files compiled outside PROJECT_SOURCE_DIR subtree | |||||||||
Description | When the unit test binary is linked with a static library compiled from source files located outside the PROJECT_SOURCE_DIR then although the *.gcov files are generated, they are missed out from the final xml file. The attached example has a following folder structure: [DIR] code_coverage [DIR] dir_A [DIR] scr_A scr_A.c CMakeLists.txt test_bar.h test_foo.h [DIR] src_B src_B.c LastCoverage_*.log from the Testing/Temporary folder contains the an error of a form: Errors: Something went wrong. Cannot find file: /home/scr/code_coverage/src_B/src_B.c in source dir: /home/scr/code_coverage/dir_A or binary dir: /home/scr/code_coverage/dir_A Coverage.xml hen contain data for src_A library, but not for src_B. If a symbolic link to src_B is created within dir_A then the code coverage will be summarized for src_B as well. After setting CMAKE_USE_RELATIVE_PATHS to TRUE it is even worse and ctest fails to summarize any coverage. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | code_coverage.tar.gz (2,137) 2009-10-07 13:55 https://public.kitware.com/Bug/file/2538/code_coverage.tar.gz | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2009-10-07 13:55 | Wojciech Migda | New Issue | ||||||||
2009-10-07 13:55 | Wojciech Migda | File Added: code_coverage.tar.gz | ||||||||
2009-10-08 15:35 | Wojciech Migda | Note Added: 0018047 | ||||||||
2009-10-12 14:59 | David Cole | Status | new => assigned | |||||||
2009-10-12 14:59 | David Cole | Assigned To | => David Cole | |||||||
2009-10-12 15:00 | David Cole | Relationship added | related to 0005668 | |||||||
2009-10-12 15:03 | David Cole | Note Added: 0018063 | ||||||||
2009-10-12 15:03 | David Cole | Status | assigned => resolved | |||||||
2009-10-12 15:03 | David Cole | Resolution | open => won't fix | |||||||
2010-12-14 18:49 | David Cole | Note Added: 0024081 | ||||||||
2010-12-14 18:49 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|