tests: Use LOG_COMPILER to run valgrind.

This commit is contained in:
Richard W.M. Jones
2016-02-22 12:52:55 +00:00
parent dd7be596f5
commit b9a97718f7
4 changed files with 11 additions and 7 deletions

View File

@@ -105,7 +105,8 @@ clean-local:
endif
TESTS_ENVIRONMENT = $(top_builddir)/run --test $(VG)
TESTS_ENVIRONMENT = $(top_builddir)/run --test
LOG_COMPILER = $(VG)
test_progs_bc = \
t/guestfs_010_load.bc \
@@ -164,7 +165,7 @@ if HAVE_OCAMLOPT
endif
check-valgrind:
$(MAKE) VG="$(top_builddir)/run @VG@" TESTS="$(test_progs_all)" check
$(MAKE) VG="@VG@" TESTS="$(test_progs_all)" check
CLEANFILES += bindtests.tmp

View File

@@ -253,7 +253,8 @@ endif
# internal tests of utility functions. Note we don't just test what's
# in utils.c, we can test other functions as well here.
TESTS_ENVIRONMENT = $(top_builddir)/run --test $(VG)
TESTS_ENVIRONMENT = $(top_builddir)/run --test
LOG_COMPILER = $(VG)
TESTS = test-utils
check_PROGRAMS = test-utils

View File

@@ -80,7 +80,8 @@ TESTS_ENVIRONMENT = \
SKIP_TEST_COMMAND=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
SKIP_TEST_COMMAND_LINES=$(shell ldd test-command | grep -sq 'not a dynamic executable' || echo 1) \
SKIP_TEST_COMMAND=$(shell ldd test-pwd | grep -sq 'not a dynamic executable' || echo 1) \
$(top_builddir)/run --test $(VG)
$(top_builddir)/run --test
LOG_COMPILER = $(VG)
#SKIP_TEST_CHECKSUM_8=$(shell if test `find ../initramfs -name squashfs.ko | wc -l` -eq 0; then echo 1; fi)
@@ -258,4 +259,4 @@ test_add_libvirt_dom_LDADD = \
endif
check-valgrind:
$(MAKE) VG="$(top_builddir)/run @VG@" check
$(MAKE) VG="@VG@" check

View File

@@ -21,7 +21,8 @@ if HAVE_FUSE
TESTS = test-parallel-mount-local
TESTS_ENVIRONMENT = $(top_builddir)/run --test $(VG)
TESTS_ENVIRONMENT = $(top_builddir)/run --test
LOG_COMPILER = $(VG)
check_PROGRAMS = $(TESTS)
@@ -48,6 +49,6 @@ test_parallel_mount_local_LDADD = \
$(top_builddir)/gnulib/lib/libgnu.la
check-valgrind:
$(MAKE) VG="$(top_builddir)/run @VG@" check
$(MAKE) VG="@VG@" check
endif