]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Some fixes for code coverage 833/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 10 Aug 2016 12:49:52 +0000 (13:49 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 10 Aug 2016 12:57:14 +0000 (13:57 +0100)
CMakeLists.txt
circle.yml

index db0c0e41a34474564fde1d72026b06edaefb241a..4c09a6977788882eaf808a72ffe246eb71238594 100644 (file)
@@ -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}")
index f7a85c31a2a6675799f5d2c965e300e4d7c144e7..234ba0bca745ec3cf2520439157cbbd8a89a5fbf 100644 (file)
@@ -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: