Skip to content
Snippets Groups Projects
Commit 25cc88fa authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: instrumentation of coverage script

parent 7d8468e0
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ stages:
- build/ctest_report.xml
- build/cppcheck_report.xml
- build/coverage_report.xml
- build/cov_filter/*.gcov
.common-prepare:
extends: .general
......
......@@ -8,6 +8,8 @@ if [ -z "$BUILD_DIR" ]; then
BUILD_DIR=${OTB_DIR}/build
fi
ls -lh $BUILD_DIR/Modules/Core/Common/src/CMakeFiles/OTBCommon.dir/otbLogger.cxx.gcda
cd $BUILD_DIR
mkdir cov_filter
......@@ -18,7 +20,10 @@ rm *.gcov
cd $OTB_DIR
echo Filtered $(ls $BUILD_DIR/cov_filter | wc -l) gcov reports
du -sh cov_filter
echo Generating $BUILD_DIR/coverage_report.xml ...
gcovr -r $OTB_DIR -x -g --object-directory=$BUILD_DIR/cov_filter > $BUILD_DIR/coverage_report.xml
gcovr -r $OTB_DIR -x -g -k --object-directory=$BUILD_DIR/cov_filter > $BUILD_DIR/coverage_report.xml
ls -lh $BUILD_DIR/coverage_report.xml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment