aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-09 05:01:44 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-09 05:01:44 +0200
commit14c6a4fba1ef8c727f316a3201ed87cdc659dc3b (patch)
tree412be589ef737736fe6795b078b9bc816ed943ce /test
parentm (diff)
downloadmds-14c6a4fba1ef8c727f316a3201ed87cdc659dc3b.tar.gz
mds-14c6a4fba1ef8c727f316a3201ed87cdc659dc3b.tar.bz2
mds-14c6a4fba1ef8c727f316a3201ed87cdc659dc3b.tar.xz
use valgrind on all mds programs
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-xtest.d/mdsinitrc8
1 files 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