diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | tests/extra/Makefile.am | 7 |
3 files changed, 7 insertions, 7 deletions
@@ -429,4 +429,4 @@ Makefile.in /tools/test.img /tools/virt-*.1 /tools/virt-*.pl -/valgrind.log.* +/valgrind.log* diff --git a/configure.ac b/configure.ac index 88772605..0d582faa 100644 --- a/configure.ac +++ b/configure.ac @@ -784,6 +784,11 @@ AS_IF([test "x$VALGRIND" != "xno"],[ AC_MSG_RESULT([no]) AC_SUBST([VALGRIND_NO_VGDB],[]) fi + + # Substitute the whole valgrind command. + VG='$(VALGRIND) $(VALGRIND_NO_VGDB) --log-file=$(abs_top_builddir)/valgrind.log --leak-check=full --error-exitcode=119 --suppressions=$(abs_top_srcdir)/valgrind-suppressions' + AC_SUBST([VG]) + AM_SUBST_NOTMAKE([VG]) ]) dnl Check for OCaml (optional, for OCaml bindings and OCaml tools). diff --git a/tests/extra/Makefile.am b/tests/extra/Makefile.am index d171efe2..e5458478 100644 --- a/tests/extra/Makefile.am +++ b/tests/extra/Makefile.am @@ -63,12 +63,7 @@ EXTRA_DIST = \ test-with-upstream-libvirt.sh \ test-with-upstream-qemu.sh -VG = $(VALGRIND) \ - $(VALGRIND_NO_VGDB) \ - --log-file=$(abs_builddir)/valgrind.log \ - --leak-check=full \ - --error-exitcode=119 \ - --suppressions=$(abs_top_srcdir)/valgrind-suppressions +VG = @VG@ RUN_VG = $(abs_top_builddir)/run $(VG) libvirt_uri = qemu+unix:///system?socket=/var/run/libvirt/libvirt-sock-ro |