CTest: CTEST_COVERAGE_COMMAND has to be explicitly set for dashboard script
It seems unintuitive to me that if I'm using a dashboard script to be invoked via ctest -S
, I have to explicitly set CTEST_COVERAGE_COMMAND
in that script. The CMake project it builds includes the CTest
module and that module finds gcov
, then sets COVERAGE_COMMAND
to its location. Unfortunately, the dashboard script is a level outside of the configure run and never sees that value. The dashboard script invokes ctest_coverage()
, which looks for CTEST_COVERAGE_COMMAND
but that is unset in the ctest
instance driving the dashboard run. I expected it to pick up the value from the build, but it didn't. I subsequently also found that it looks to be ignoring the DartConfiguration.tcl
file as far as I can tell, and that file sets CoverageCommand
too, but since it also isn't read, it doesn't help.
It feels like the dashboard script isn't reading the files it could/should automatically. The build provides the necessary details by including the CTest
module, but the dashboard script never sees the things it sets. Shouldn't the dashboard script be pulling in this information from the build somehow, or are my expectations wrong?