Hello, <br><br>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:<br><br>100% tests passed, 0 tests failed out of 17<br>Memory check project /home/brouwer/TestProject/trunk_build<br>
Memory checker (MemoryCheckCommand) not set, or cannot find the specified program.<br><br>In my CMakeCache.txt are the following lines (automatically generated):<br><br>//Path to the memory checking command, used for memory error detection.<br>
MEMORYCHECK_COMMAND:FILEPATH=/usr/bin/valgrind<br><br>If i call "which valgrind" on the command prompt, I get the following output:<br>/usr/bin/valgrind<br><br>I can not figure out what I'm missing. I'm using cmake 2.6. and call the following script:<br>
<br>ctest -V -S ../trunk_src/script/test.cmake<br><br>--------------------test.cmake ----------------------<br>SET (CTEST_SOURCE_DIRECTORY "$ENV{HOME}/TestProject/trunk_src")<br>SET (CTEST_BINARY_DIRECTORY "$ENV{HOME}/TestProject/trunk_build")<br>
<br>SET(CTEST_CMAKE_GENERATOR "Unix Makefiles")<br><br>CTEST_START("MemoryCheck")<br>CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")<br>
CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}")<br>CTEST_MEMCHECK()<br><br>-------------------------------------------------------------------<br><br>Any help would be greatly appreciated, <br><br>Iman<br><br><br>
<br>