From 03893df747c6af1132fc93def4d4f17c8c4a8c11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 21 Feb 2014 12:38:13 +0100 Subject: [PATCH] lcov cosmetics --- .gitignore | 3 +++ CMakeLists.txt | 5 +++-- Makefile | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 02b0a98c5..fdd50b245 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ CTestTestfile.cmake cmake_install.cmake Testing Coverage +*.gcno +*.gcda +library/polarssl.info diff --git a/CMakeLists.txt b/CMakeLists.txt index 0be112edd..f0df87825 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,12 +77,13 @@ ADD_CUSTOM_TARGET(test-ref-config ) ADD_CUSTOM_TARGET(lcov - COMMAND geninfo *.gcda - COMMAND genhtml -o ../../../Coverage *.info + COMMAND lcov --capture --directory . -o polarssl.info + COMMAND genhtml --title PolarSSL --legend --no-branch-coverage -o ../../../Coverage polarssl.info WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/library/CMakeFiles/polarssl.dir ) ADD_CUSTOM_TARGET(memcheck + COMMAND rm -rf Coverage COMMAND ctest -O memcheck.log -D ExperimentalMemCheck COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null COMMAND rm -f memcheck.log diff --git a/Makefile b/Makefile index 2ca3cf54e..f48fd6628 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,9 @@ test-ref-configs: lcov: rm -rf Coverage - ( cd library && geninfo *.gcda ) - ( cd library && genhtml -o ../Coverage *.info ) + ( cd library && lcov --capture --directory . -o polarssl.info ) + ( cd library && genhtml --title PolarSSL --legend --no-branch-coverage \ + -o ../Coverage polarssl.info ) apidoc: mkdir -p apidoc