Commit 25cc88fa authored by Guillaume Pasero's avatar Guillaume Pasero

CI: instrumentation of coverage script

parent 7d8468e0
Pipeline #2131 passed with stages
in 53 minutes and 6 seconds
...@@ -64,6 +64,7 @@ stages: ...@@ -64,6 +64,7 @@ stages:
- build/ctest_report.xml - build/ctest_report.xml
- build/cppcheck_report.xml - build/cppcheck_report.xml
- build/coverage_report.xml - build/coverage_report.xml
- build/cov_filter/*.gcov
.common-prepare: .common-prepare:
extends: .general extends: .general
......
...@@ -8,6 +8,8 @@ if [ -z "$BUILD_DIR" ]; then ...@@ -8,6 +8,8 @@ if [ -z "$BUILD_DIR" ]; then
BUILD_DIR=${OTB_DIR}/build BUILD_DIR=${OTB_DIR}/build
fi fi
ls -lh $BUILD_DIR/Modules/Core/Common/src/CMakeFiles/OTBCommon.dir/otbLogger.cxx.gcda
cd $BUILD_DIR cd $BUILD_DIR
mkdir cov_filter mkdir cov_filter
...@@ -18,7 +20,10 @@ rm *.gcov ...@@ -18,7 +20,10 @@ rm *.gcov
cd $OTB_DIR cd $OTB_DIR
echo Filtered $(ls $BUILD_DIR/cov_filter | wc -l) gcov reports echo Filtered $(ls $BUILD_DIR/cov_filter | wc -l) gcov reports
du -sh cov_filter
echo Generating $BUILD_DIR/coverage_report.xml ... 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
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