View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014061 | CMake | CTest | public | 2013-04-04 10:54 | 2016-06-10 14:31 | ||||
Reporter | Andreas Langs | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Linux | OS | OS Version | ||||||
Product Version | CMake 2.8.10.2 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014061: COVERAGE_EXTRA_FLAGS not respected when coverage is run from ctest script | ||||||||
Description | I configure my project with -DCOVERAGE_EXTRA_FLAGS:STRING="-l -p". Now if I run the coverage with ctest -D ExperimentalCoverage -VVI can see that the arguments "-l -p" are passed to the gcov executable. If I invoke the coverage with the ctest_coverage()command in a ctest script which I run with ctest -S script.cmake -VVI see that the arguments are not passed to gcov, even the default argument -l is not passed. | ||||||||
Additional Information | Running both described variants with the --debug option I see that when running without the script the function cmCTest::UpdateCTestConfiguration()is called and all values from DartConfiguration.tcl are read. Running with the script the function cmCTest::UpdateCTestConfiguration()is left early and the values from DartConfiguration.tcl are not read, in this case especially CoverageExtraFlags which holds the gcov arguments. The variable COVERAGE_EXTRA_FLAGSwas introduced with commit http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2f309cba455d0a946e935f66a53561ba64717faf [^] To fix this bug I think and addition to cmCTestCoverageCommand::InitializeHandler()needs to be made: this->CTest->SetCTestConfigurationFromCMakeVariable(this->Makefile, "CoverageExtraFlags", "CTEST_COVERAGE_EXTRA_FLAGS"); | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0042262) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-04-04 10:54 | Andreas Langs | New Issue | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0042262 | |
2016-06-10 14:28 | Kitware Robot | Status | new => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |