Hi

I'm currently using the simple way of testing in Cmake, just adding the two
following instructions at the end of my CMakeLists.txt;

enable_testing()
add_test(TestMyProgram MyProgram)

I follow this instruction : http://cmake.org/Wiki/CMake/Testing_With_CTest

and I would like to make memory checking (and eventually coverage)

In order to do it, I just add "include(CTest)" after enable_testing, and
type in a terminal

ctest -D ExperimentalMemCheck

but now, I would like to customize memchecking (I use valgrind) by setting
a suppression file and tell valgrind to produce a xml-file (that could used
in an other tool or maybe Jenkins).

So according to the documentation I add
file(TO_CMAKE_PATH "${CMAKE_SOURCE_DIR}/resources/valgrind_supp.xml"
MEMORYCHECK_SUPPRESSIONS_FILE)
set(MEMORYCHECK_COMMAND_OPTIONS "--xml=yes --xml-file=test_memcheck.xml")

It doesn't work and it doesn't even modify CMakeCache.txt

What did I miss?

Thanks in advance
--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to