diff options
author | Patrick Venture <venture@google.com> | 2019-03-07 07:38:28 -0800 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2019-03-07 07:38:28 -0800 |
commit | fd4cdea449f01b910b654b78f2076cf76540619c (patch) | |
tree | ba04efaca30588839ec3324df36edd4aa69b85e3 /configure.ac | |
parent | a2efc76b21b6a0349850c9ce3a0e25f1dc4d9c0d (diff) | |
download | phosphor-ipmi-blobs-fd4cdea449f01b910b654b78f2076cf76540619c.tar.gz phosphor-ipmi-blobs-fd4cdea449f01b910b654b78f2076cf76540619c.zip |
build: enable valgrind
Enable valgrind tests.
Change-Id: Ib5ec22a19c043ef45f5274e4716e2abbae9c19da
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d6fbe00..1e906a8 100644 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,16 @@ AS_IF([test "x$enable_tests" != "xno"], [ AX_RESTORE_FLAGS_WITH_PREFIX(OLD, [LDFLAGS]) ]) +# Check for valgrind +AS_IF([test "x$enable_tests" = "xno"], [enable_valgrind=no]) +m4_foreach([vgtool], [valgrind_tool_list], + [AX_VALGRIND_DFLT(vgtool, [off])]) +AX_VALGRIND_DFLT([memcheck], [on]) +AX_VALGRIND_CHECK +AM_EXTRA_RECURSIVE_TARGETS([check-valgrind]) +m4_foreach([vgtool], [valgrind_tool_list], + [AM_EXTRA_RECURSIVE_TARGETS([check-valgrind-]vgtool)]) + # Code coverage AX_CODE_COVERAGE AM_EXTRA_RECURSIVE_TARGETS([check-code-coverage]) |