From: Phil Carmody Date: Mon, 4 Jun 2018 16:58:23 +0000 (+0300) Subject: m4/dovecot.m4: run-test.sh - disable valgrind for individual tests X-Git-Tag: 2.3.5~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=764ef7e0069a434e1b41e7c8d140ca235d48a8ec;p=thirdparty%2Fdovecot%2Fcore.git m4/dovecot.m4: run-test.sh - disable valgrind for individual tests 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 --- diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index d7f524a842..2cf61bfd6e 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -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=\$?