]> 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@dovecot.fi>
Wed, 20 Jun 2018 11:46:15 +0000 (11:46 +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 e7872c5183047f4f348e4715fb95b25ddc6e1fc0..464a7a32a5230b13eafe9a7c9317c8f43f7dfae7 100644 (file)
@@ -51,6 +51,11 @@ 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=\$?