]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4/dovecot.m4: run-test.sh - disable valgrind for individual tests
authorPhil Carmody <phil@dovecot.fi>
Mon, 4 Jun 2018 16:58:23 +0000 (19:58 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Fri, 15 Feb 2019 12:48:56 +0000 (12:48 +0000)
OpenSSL doesn't like valgrind on my setup, so permit a local instalation
to have a list of excluded binaries that won't use valgrind in make check.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
m4/dovecot.m4

index d7f524a8425068869ca2388c20e7bb6463c4f319..2cf61bfd6ecf792c35a9b70df17dc5177f64e86e 100644 (file)
@@ -270,6 +270,17 @@ else
   noundef=""
 fi
 
+if test "\$NOCHILDREN" != ""; then
+  trace_children="--trace-children=no"
+else
+  trace_children="--trace-children=yes"
+fi
+
+skip_path="\$top_srcdir/run-test-valgrind.exclude"
+if test -r "\$skip_path" && grep -w -q "\$(basename \$[1])" "\$skip_path"; then
+  NOVALGRIND=true
+fi
+
 if test "\$NOVALGRIND" != ""; then
   \$[*]
   ret=\$?