From 14c6a4fba1ef8c727f316a3201ed87cdc659dc3b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 9 Jun 2014 05:01:44 +0200 Subject: use valgrind on all mds programs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.d/mdsinitrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test.d/mdsinitrc b/test.d/mdsinitrc index 0c1f75f..d809c24 100755 --- a/test.d/mdsinitrc +++ b/test.d/mdsinitrc @@ -26,10 +26,14 @@ unset OLD_XDG_CONFIG_HOME if [ -z "${XDG_CONFIG_HOME}" ]; then unset XDG_CONFIG_HOME fi -mds-respawn --interval=10 \ +g= +if [ -z "${NO_VALGRIND}" ]; then + g="valgrind --leak-check=full --show-leak-kinds=all" +fi +$g mds-respawn --interval=10 \ { sleep 4s } \ { sleep 1m } \ - { mds-echo } \ + { $g mds-echo } \ & if which terminator 2>/dev/null >&2; then exec terminator -- cgit v1.2.3-70-g09d2