summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-10 21:33:34 +0100
committerGitHub <noreply@github.com>2016-08-10 21:33:34 +0100
commit329ca0943100038132d703d035002436523d2294 (patch)
tree0307209ccd9eb31fb969c67cdc2f832d4db44f63
parent52772114053a87a683a38dd9f5f0d17f741404d2 (diff)
parentf93a66780d74d38a7c86c338c893593ca241e423 (diff)
downloadrspamd-329ca0943100038132d703d035002436523d2294.tar.gz
rspamd-329ca0943100038132d703d035002436523d2294.zip
Merge pull request #833 from fatalbanana/coverage
[WIP] Some fixes for code coverage
-rw-r--r--CMakeLists.txt4
-rw-r--r--circle.yml1
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: