Remove running tests before generating coverage
The implicit running of the test target was only a workaround and it is
also unnecessary as it does not allow to run only a subset of tests and
generate coverage of only these tests.
Change-Id: If421507317f6581079a6bf6d395b2480dfb3b048
Signed-off-by: Imre Kis <imre.kis@arm.com>
diff --git a/cmake/Coverage.cmake b/cmake/Coverage.cmake
index 5bae2df..efdba3b 100644
--- a/cmake/Coverage.cmake
+++ b/cmake/Coverage.cmake
@@ -53,14 +53,6 @@
set(TEMP_FILE temp_${_MY_PARAMS_OUTPUT_FILE})
set(OUTPUT_FILE ${_MY_PARAMS_OUTPUT_FILE})
- # This is a workaround for running test target before expecting to have coverage.
- # Currently there's no other way to set a dependency for this target.
- add_custom_command(
- OUTPUT test.stamp
- COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR} -- test
- COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/test.stamp
- )
-
# Collecting information from .gcda and .gcno files into an lcov .info file
# Mapping c-picker generated files' coverage info to the original source lines
add_custom_command(
@@ -75,7 +67,6 @@
--input ${TEMP_FILE}
--output ${OUTPUT_FILE}
--mapping-path ${CPICKER_CACHE_PATH}
- DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/test.stamp
)
endfunction()