mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 14:35:39 +01:00
Add 'memcheck' (valgrind) target to CMake
This commit is contained in:
parent
bc4b7f08ba
commit
7669f28421
@ -46,3 +46,9 @@ add_subdirectory(programs)
|
||||
ADD_CUSTOM_TARGET(apidoc
|
||||
COMMAND doxygen doxygen/polarssl.doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
ADD_CUSTOM_TARGET(memcheck
|
||||
COMMAND ctest -R aes -O memcheck.log -D ExperimentalMemCheck
|
||||
COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null
|
||||
COMMAND rm -f memcheck.log
|
||||
)
|
||||
|
@ -1,3 +1,4 @@
|
||||
Site: localhost
|
||||
BuildName: PolarSSL-test
|
||||
CoverageCommand: /usr/bin/gcov
|
||||
MemoryCheckCommand: /usr/bin/valgrind
|
||||
|
Loading…
Reference in New Issue
Block a user