Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
mbedtls
Commits
53c6e96c
Commit
53c6e96c
authored
Jun 13, 2014
by
Manuel Pégourié-Gonnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Force lcov to notice files not covered at all
parent
edc3ab20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
CMakeLists.txt
CMakeLists.txt
+4
-6
Makefile
Makefile
+4
-6
No files found.
CMakeLists.txt
View file @
53c6e96c
...
...
@@ -85,9 +85,6 @@ if(ENABLE_TESTING)
COMMAND tests/scripts/test-ref-configs.pl
)
# add programs/test/selftest even though the selftest functions are
# called from the testsuites since it runs them in verbose mode,
# avoiding spurious "uncovered" printf lines
ADD_CUSTOM_TARGET
(
covtest
COMMAND make test
COMMAND programs/test/selftest
...
...
@@ -97,10 +94,11 @@ if(ENABLE_TESTING)
ADD_CUSTOM_TARGET
(
lcov
COMMAND rm -rf Coverage
COMMAND lcov --capture --directory library/CMakeFiles/polarssl.dir -o polarssl.info
COMMAND lcov --capture --initial --directory library/CMakeFiles/polarssl.dir -o files.info
COMMAND lcov --capture --directory library/CMakeFiles/polarssl.dir -o tests.info
COMMAND gendesc tests/Descriptions.txt -o descriptions
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage
polarssl
.info
COMMAND rm -f
polarssl
.info descriptions
COMMAND genhtml --title PolarSSL --description-file descriptions --keep-descriptions --legend --no-branch-coverage -o Coverage
files.info tests
.info
COMMAND rm -f
files.info tests
.info descriptions
)
ADD_CUSTOM_TARGET
(
memcheck
...
...
Makefile
View file @
53c6e96c
...
...
@@ -60,19 +60,17 @@ test-ref-configs:
# CFLAGS='--coverage' make OFLAGS='-g3 -O0'
covtest
:
make check
# add programs/test/selftest even though the selftest functions are
# called from the testsuites since it runs them in verbose mode,
# avoiding spurious "uncovered" printf lines
programs/test/selftest
(
cd
tests
&&
./compat.sh
)
(
cd
tests
&&
./ssl-opt.sh
)
lcov
:
rm
-rf
Coverage
lcov
--capture
--directory
library
-o
polarssl.info
lcov
--capture
--initial
--directory
library
-o
files.info
lcov
--capture
--directory
library
-o
tests.info
gendesc tests/Descriptions.txt
-o
descriptions
genhtml
--title
PolarSSL
--description-file
descriptions
--keep-descriptions
--legend
--no-branch-coverage
-o
Coverage
polarssl
.info
rm
-f
polarssl
.info descriptions
genhtml
--title
PolarSSL
--description-file
descriptions
--keep-descriptions
--legend
--no-branch-coverage
-o
Coverage
files.info tests
.info
rm
-f
files.info tests
.info descriptions
apidoc
:
mkdir
-p
apidoc
...
...
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