From f93a66780d74d38a7c86c338c893593ca241e423 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 10 Aug 2016 13:49:52 +0100 Subject: [PATCH] [Test] Some fixes for code coverage --- CMakeLists.txt | 4 ++-- circle.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index db0c0e41a..4c09a6977 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -826,8 +826,8 @@ ENDIF(NOT CMAKE_C_OPT_FLAGS) IF(ENABLE_COVERAGE) SET(CMAKE_C_OPT_FLAGS "-g -O0 -fno-strict-aliasing") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage -fprofile-arcs -ftest-coverage") - SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage -fprofile-arcs -ftest-coverage") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage") + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage") ENDIF(ENABLE_COVERAGE) SET(CMAKE_C_FLAGS "${CMAKE_C_OPT_FLAGS} ${CMAKE_C_FLAGS} ${CMAKE_C_WARN_FLAGS}") diff --git a/circle.yml b/circle.yml index f7a85c31a..234ba0bca 100644 --- a/circle.yml +++ b/circle.yml @@ -11,6 +11,7 @@ test: - cmake --build . --target install - sudo robot test/functional/cases - lcov --no-external -b . -d . -c --output-file coverage.info + - lcov -r coverage.info *.rl - ln -s src/ragel . - if [ ! -z $COVERALLS_REPO_TOKEN ]; then coveralls-lcov -t ${COVERALLS_REPO_TOKEN} coverage.info; fi post: -- 2.39.5