Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
207
Issues
207
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
da25b7b1
Commit
da25b7b1
authored
Jul 09, 2019
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: don't move gcov reports
parent
25cc88fa
Pipeline
#2134
passed with stages
in 52 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
CI/otb_coverage.sh
CI/otb_coverage.sh
+6
-17
No files found.
CI/otb_coverage.sh
View file @
da25b7b1
...
...
@@ -8,22 +8,11 @@ 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
echo
Generating gcov reports
in
$BUILD_DIR
...
find
$BUILD_DIR
-name
"*.gcda"
-exec
llvm-cov gcov
-p
'{}'
>
/dev/null
\;
find
.
-maxdepth
1
-regex
'.*#Modules#[a-zA-Z0-9]+#[a-zA-Z0-9]+#\(include\|src\|app\)#.*\.gcov'
-exec
mv
'{}'
cov_filter
\;
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
-k
--object-directory
=
$BUILD_DIR
/cov_filter
>
$BUILD_DIR
/coverage_report.xml
cd
$BUILD_DIR
find
$BUILD_DIR
-name
"*.gcda"
-exec
llvm-cov gcov
-p
'{}'
>
/dev/null
\;
ls
*
.gcov |
grep
-E
-v
'#Modules#[a-zA-Z0-9]+#[a-zA-Z0-9]+#(include|src|app)#'
| xargs
-L
1
rm
echo
Filtered
$(
ls
$BUILD_DIR
/
*
.gcov |
wc
-l
)
gcov reports
ls
-lh
$BUILD_DIR
/coverage_report.xml
gcovr
-r
$OTB_DIR
-x
-g
--object-directory
=
$BUILD_DIR
>
$BUILD_DIR
/coverage_report.xml
echo
Generated
$BUILD_DIR
/coverage_report.xml with
$(
grep
-c
'<class '
$BUILD_DIR
/coverage_report.xml
)
classes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment