Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
7d8468e0
Commit
7d8468e0
authored
Jul 08, 2019
by
Guillaume Pasero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: use a wrapper script to generate coverage report
parent
5b750421
Pipeline
#2128
passed with stages
in 52 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
CI/otb_coverage.sh
CI/otb_coverage.sh
+24
-0
No files found.
.gitlab-ci.yml
View file @
7d8468e0
...
...
@@ -227,7 +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
-
gcovr -x -o build/coverage_report.xml -r . --gcov-executable="llvm-cov gcov" build
-
./CI/otb_coverage.sh
-
saxon-xslt -o build/ctest_report.xml
build/Testing/`head -n 1 build/Testing/TAG`/Test.xml
CI/ctest2junit.xsl
...
...
CI/otb_coverage.sh
0 → 100755
View file @
7d8468e0
#!/bin/bash
# usage : call CI/otb_coverage.sh from source dir
OTB_DIR
=
"
$(
dirname
$0
)
/.."
OTB_DIR
=
"
$(
readlink
-f
$OTB_DIR
)
"
if
[
-z
"
$BUILD_DIR
"
]
;
then
BUILD_DIR
=
${
OTB_DIR
}
/build
fi
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
echo
Generating
$BUILD_DIR
/coverage_report.xml ...
gcovr
-r
$OTB_DIR
-x
-g
--object-directory
=
$BUILD_DIR
/cov_filter
>
$BUILD_DIR
/coverage_report.xml
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