Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
96ed5397
Commit
96ed5397
authored
Jun 11, 2018
by
yoogx
Browse files
* Add lcov script
For openaadl/ocarina#164
parent
fd170857
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/aadlv2/code_coverage/lcov.sh
0 → 100755
View file @
96ed5397
#!/bin/sh
for
i
in
"
$@
"
do
case
$i
in
--output-dir-name
=
*
)
OUTPUT_DIR
=
"
${
i
#*=
}
"
#ONLY NAME OF DIR
shift
# past argument=value
;;
*
)
# unknown option
;;
esac
done
if
[
-z
"
$OUTPUT_DIR
"
]
;
then
OUTPUT_DIR
=
./gcov_output
else
OUTPUT_DIR
=
./
$OUTPUT_DIR
fi
if
(!
test
-d
$OUTPUT_DIR
)
then
echo
"Missing path:
$OUTPUT_DIR
. Creating directory..."
mkdir
$OUTPUT_DIR
fi
lcov
-c
-i
-d
.
-o
.coverage.base
lcov
-c
-d
.
-o
.coverage.run
lcov
-d
.
-a
.coverage.base
-a
.coverage.run
-o
.coverage.total
genhtml
--no-branch-coverage
-o
$OUTPUT_DIR
.coverage.total
rm
-f
.coverage.base .coverage.run .coverage.total
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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