ci: Force coverage processing to continue on errors and export HTML report

This commit is contained in:
Gabriel Ferreira
2025-04-04 10:15:10 +02:00
parent 6a46166390
commit 96a6c119a6
2 changed files with 5 additions and 7 deletions

View File

@@ -33,13 +33,15 @@ if(${NS3_COVERAGE})
add_custom_target(
coverage_gcc
COMMAND lcov -o ns3.info -c --directory ${CMAKE_BINARY_DIR} ${zero_counters}
--keep-going --ignore-errors inconsistent
WORKING_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY}/coverage
DEPENDS run_test_py
)
add_custom_target(
coverage_html
COMMAND genhtml ns3.info
COMMAND genhtml --ignore-errors inconsistent --ignore-errors corrupt
ns3.info -o ./html
WORKING_DIRECTORY ${CMAKE_OUTPUT_DIRECTORY}/coverage
DEPENDS coverage_gcc
)