Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
mbedtls
Commits
546d86c8
Commit
546d86c8
authored
Jan 31, 2014
by
Manuel Pégourié-Gonnard
Browse files
Add an 'lcov' target for HTML coverage report
parent
6529ff0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
.gitignore
.gitignore
+1
-0
CMakeLists.txt
CMakeLists.txt
+6
-0
Makefile
Makefile
+6
-0
No files found.
.gitignore
View file @
546d86c8
...
...
@@ -3,3 +3,4 @@ CMakeFiles
CTestTestfile.cmake
cmake_install.cmake
Testing
Coverage
CMakeLists.txt
View file @
546d86c8
...
...
@@ -74,6 +74,12 @@ ADD_CUSTOM_TARGET(test-ref-config
COMMAND tests/scripts/test-ref-configs.pl
)
ADD_CUSTOM_TARGET
(
lcov
COMMAND geninfo *.gcda
COMMAND genhtml -o ../../../Coverage *.info
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/library/CMakeFiles/polarssl.dir
)
ADD_CUSTOM_TARGET
(
memcheck
COMMAND ctest -O memcheck.log -D ExperimentalMemCheck
COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null
...
...
Makefile
View file @
546d86c8
...
...
@@ -48,6 +48,7 @@ clean:
cd
library
&&
$(MAKE)
clean
&&
cd
..
cd
programs
&&
$(MAKE)
clean
&&
cd
..
cd
tests
&&
$(MAKE)
clean
&&
cd
..
find
.
\(
-name
\*
.gcno
-o
-name
\*
.gcda
-o
-name
*
.info
\)
-exec
rm
{}
+
check
:
lib
(
cd
tests
&&
$(MAKE)
&&
$(MAKE)
check
)
...
...
@@ -55,6 +56,11 @@ check: lib
test-ref-configs
:
tests/scripts/test-ref-configs.pl
lcov
:
rm
-rf
Coverage
(
cd
library
&&
geninfo
*
.gcda
)
(
cd
library
&&
genhtml
-o
../Coverage
*
.info
)
apidoc
:
mkdir
-p
apidoc
doxygen doxygen/polarssl.doxyfile
...
...
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