summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-03-07 01:24:17 +0100
committerlouiz’ <louiz@louiz.org>2017-03-07 01:26:12 +0100
commit03d608e9a71a05895c2d85933ad69f1701ca6105 (patch)
tree92e2979bd421e238e003039a98002e3fbb95f351
parentcf2d4fb6a23712615265c545f2b7b5dee576c2d2 (diff)
downloadbiboumi-03d608e9a71a05895c2d85933ad69f1701ca6105.tar.gz
biboumi-03d608e9a71a05895c2d85933ad69f1701ca6105.tar.bz2
biboumi-03d608e9a71a05895c2d85933ad69f1701ca6105.tar.xz
biboumi-03d608e9a71a05895c2d85933ad69f1701ca6105.zip
Improve the make coverage_* commands
-rw-r--r--CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index da9cf37..d6759c3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -258,13 +258,15 @@ add_custom_target(e2e_valgrind COMMAND "E2E_BIBOUMI_SUPP_DIR=${CMAKE_CURRENT_SOU
if(CMAKE_BUILD_TYPE MATCHES Debug)
include(CodeCoverage)
SETUP_TARGET_FOR_COVERAGE(coverage_check
- make
- coverage_test_suite
- check)
+ ./test_suite
+ coverage_test_suite)
+ add_dependencies(coverage_check test_suite)
+
SETUP_TARGET_FOR_COVERAGE(coverage_e2e
- make
+ python3
coverage_e2e
- e2e)
+ ${CMAKE_CURRENT_SOURCE_DIR}/tests/end_to_end/)
+ add_dependencies(coverage_e2e biboumi)
ADD_CUSTOM_TARGET(coverage
COMMAND ${LCOV_PATH} -a coverage_e2e.info -a coverage_test_suite.info -o coverage_total.info