mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 08:45:38 +01:00
Add an 'lcov' target for HTML coverage report
This commit is contained in:
parent
6529ff0b6a
commit
546d86c8ec
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ CMakeFiles
|
|||||||
CTestTestfile.cmake
|
CTestTestfile.cmake
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
Testing
|
Testing
|
||||||
|
Coverage
|
||||||
|
@ -74,6 +74,12 @@ ADD_CUSTOM_TARGET(test-ref-config
|
|||||||
COMMAND tests/scripts/test-ref-configs.pl
|
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
|
ADD_CUSTOM_TARGET(memcheck
|
||||||
COMMAND ctest -O memcheck.log -D ExperimentalMemCheck
|
COMMAND ctest -O memcheck.log -D ExperimentalMemCheck
|
||||||
COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null
|
COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null
|
||||||
|
6
Makefile
6
Makefile
@ -48,6 +48,7 @@ clean:
|
|||||||
cd library && $(MAKE) clean && cd ..
|
cd library && $(MAKE) clean && cd ..
|
||||||
cd programs && $(MAKE) clean && cd ..
|
cd programs && $(MAKE) clean && cd ..
|
||||||
cd tests && $(MAKE) clean && cd ..
|
cd tests && $(MAKE) clean && cd ..
|
||||||
|
find . \( -name \*.gcno -o -name \*.gcda -o -name *.info \) -exec rm {} +
|
||||||
|
|
||||||
check: lib
|
check: lib
|
||||||
( cd tests && $(MAKE) && $(MAKE) check )
|
( cd tests && $(MAKE) && $(MAKE) check )
|
||||||
@ -55,6 +56,11 @@ check: lib
|
|||||||
test-ref-configs:
|
test-ref-configs:
|
||||||
tests/scripts/test-ref-configs.pl
|
tests/scripts/test-ref-configs.pl
|
||||||
|
|
||||||
|
lcov:
|
||||||
|
rm -rf Coverage
|
||||||
|
( cd library && geninfo *.gcda )
|
||||||
|
( cd library && genhtml -o ../Coverage *.info )
|
||||||
|
|
||||||
apidoc:
|
apidoc:
|
||||||
mkdir -p apidoc
|
mkdir -p apidoc
|
||||||
doxygen doxygen/polarssl.doxyfile
|
doxygen doxygen/polarssl.doxyfile
|
||||||
|
Loading…
Reference in New Issue
Block a user