Allow flexible location of valgrind

This commit is contained in:
Manuel Pégourié-Gonnard 2014-12-15 10:41:53 +01:00
parent f46f128f4a
commit 3da751ea55

View file

@ -104,8 +104,10 @@ if(ENABLE_TESTING)
)
ADD_CUSTOM_TARGET(memcheck
COMMAND sed -i .bak s+/usr/bin/valgrind+`which valgrind`+ DartConfiguration.tcl
COMMAND ctest -O memcheck.log -D ExperimentalMemCheck
COMMAND tail -n1 memcheck.log | grep 'Memory checking results:' > /dev/null
COMMAND rm -f memcheck.log
COMMAND mv DartConfiguration.tcl.bak DartConfiguration.tcl
)
endif()