Commit 3b874e2e authored by Guillaume Pasero's avatar Guillaume Pasero

CI: fix gcov prefix

parent 60dee84e
......@@ -227,6 +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
- saxon-xslt -o build/ctest_report.xml
build/Testing/`head -n 1 build/Testing/TAG`/Test.xml
......
......@@ -32,10 +32,11 @@ 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 : ${GCOV_PREFIX}")
message("GCOV_PREFIX_STRIP : ${GCOV_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