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
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to