[waffle] [PATCH] cmake: wire up check and check-func with valgrind

Emil Velikov emil.l.velikov at gmail.com
Wed Sep 10 05:23:01 PDT 2014


On 10/09/14 01:38, Emil Velikov wrote:
> Add a valgrind-* counterpart for each target. Note that the
> valgrind-check-func seems to leak like a sleeve yet I'm
> suspecting that part of it is due to cmocka :P
> 
Small update:

Thanks to Nils Gladitz we can drop the hard-coded paths by using a generator
expression like below

> +            COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_BINARY_DIR}/tests/${unittest_name}
               COMMAND ${VALGRIND_EXECUTABLE} $<TARGET_FILE:${unittest_name}>

> +        COMMAND ${VALGRIND_EXECUTABLE} ${CMAKE_BINARY_DIR}/tests/functional/gl_basic_test
           COMMAND ${VALGRIND_EXECUTABLE} $<TARGET_FILE:gl_basic_test>

Cheers,
Emil



More information about the waffle mailing list