[CMake] Problem adding memory checks with valgrind
Iman Brouwer
iman.brouwer at gmail.com
Fri Oct 24 13:45:14 EDT 2008
Hello,
We just changed our testing platform to ctest and I'm trying to add memory
checks with valgrind. When I run the test, I get this output:
100% tests passed, 0 tests failed out of 17
Memory check project /home/brouwer/TestProject/trunk_build
Memory checker (MemoryCheckCommand) not set, or cannot find the specified
program.
In my CMakeCache.txt are the following lines (automatically generated):
//Path to the memory checking command, used for memory error detection.
MEMORYCHECK_COMMAND:FILEPATH=/usr/bin/valgrind
If i call "which valgrind" on the command prompt, I get the following
output:
/usr/bin/valgrind
I can not figure out what I'm missing. I'm using cmake 2.6. and call the
following script:
ctest -V -S ../trunk_src/script/test.cmake
--------------------test.cmake ----------------------
SET (CTEST_SOURCE_DIRECTORY "$ENV{HOME}/TestProject/trunk_src")
SET (CTEST_BINARY_DIRECTORY "$ENV{HOME}/TestProject/trunk_build")
SET(CTEST_CMAKE_GENERATOR "Unix Makefiles")
CTEST_START("MemoryCheck")
CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}")
CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")
CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}")
CTEST_MEMCHECK()
-------------------------------------------------------------------
Any help would be greatly appreciated,
Iman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081024/357067f4/attachment.htm>
More information about the CMake
mailing list