mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Add 'make valgrind' target to run tests under valgrind.
This commit is contained in:
@@ -94,9 +94,15 @@ tests_CFLAGS = \
|
||||
tests_LDADD = $(top_builddir)/src/libguestfs.la
|
||||
|
||||
TESTS = $(check_PROGRAMS)
|
||||
TESTS_ENVIRONMENT = $(VG)
|
||||
|
||||
$(TESTS): $(INITRAMFS) $(VMLINUZ)
|
||||
|
||||
# Run the tests under valgrind.
|
||||
|
||||
valgrind:
|
||||
$(MAKE) check VG="valgrind --quiet --leak-check=full"
|
||||
|
||||
# Manual pages.
|
||||
# guestfs-actions.pod and guestfs-structs are autogenerated. There is
|
||||
# no include mechanism for POD, so we have to do it by hand.
|
||||
|
||||
@@ -44,7 +44,8 @@ guestfs_c_actions.o: guestfs_c_actions.c
|
||||
|
||||
TESTS_ENVIRONMENT = \
|
||||
LD_LIBRARY_PATH=$(abs_top_builddir)/src/.libs \
|
||||
LIBGUESTFS_PATH=$(abs_top_builddir)
|
||||
LIBGUESTFS_PATH=$(abs_top_builddir) \
|
||||
$(VG)
|
||||
|
||||
TESTS = t/guestfs_005_load t/guestfs_010_launch t/guestfs_050_lvcreate
|
||||
noinst_DATA += $(TESTS)
|
||||
|
||||
Reference in New Issue
Block a user