Commit d2b3a5d4 authored by Guillaume Pasero's avatar Guillaume Pasero

CI: try fixing gcovr

parent f8d23f6e
Pipeline #2116 failed with stages
in 33 minutes and 35 seconds
......@@ -227,8 +227,7 @@ ubuntu-xdk-qa-code-coverage:
ctest -V -S CI/main_qa.cmake
-DIMAGE_NAME:string=ubuntu-18.04-llvm-qa
-DQA:BOOL=ON
- ls -lh build/cov_data
- gcovr -x -o build/coverage_report.xml build/cov_data
- gcovr -x -o build/coverage_report.xml -r . --gcov-executable="llvm-cov gcov" build
- saxon-xslt -o build/ctest_report.xml
build/Testing/`head -n 1 build/Testing/TAG`/Test.xml
CI/ctest2junit.xsl
......
......@@ -23,20 +23,9 @@
set(site_option
"CMAKE_C_COMPILER:STRING=clang
CMAKE_CXX_COMPILER:STRING=clang++
CMAKE_C_FLAGS:STRING=--coverage
CMAKE_CXX_FLAGS:STRING=--coverage
CMAKE_C_FLAGS:STRING=--coverage -fprofile-exclude-files="^/usr/include/.*$;.*/xdk/include/.*$"
CMAKE_CXX_FLAGS:STRING=--coverage -fprofile-exclude-files="^/usr/include/.*$;.*/xdk/include/.*$"
CMAKE_EXE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_MODULE_LINKER_FLAGS:STRING=-fuse-ld=lld
CMAKE_SHARED_LINKER_FLAGS:STRING=-fuse-ld=lld
")
# handle gcov setup
set(COVERAGE_OUTPUT_DIR "${CTEST_BINARY_DIRECTORY}/cov_data")
file(MAKE_DIRECTORY "${COVERAGE_OUTPUT_DIR}")
string(REGEX MATCHALL "/[^/]" _slash_matches "${COVERAGE_OUTPUT_DIR}")
list(LENGTH _slash_matches COVERAGE_PREFIX_STRIP)
set(ENV{GCOV_PREFIX} "${COVERAGE_OUTPUT_DIR}")
set(ENV{GCOV_PREFIX_STRIP} "${COVERAGE_PREFIX_STRIP}")
message("GCOV_PREFIX : $ENV{GCOV_PREFIX}")
message("GCOV_PREFIX_STRIP : $ENV{GCOV_PREFIX_STRIP}")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment