p2v: Enable check-valgrind in this directory.

A couple of valgrind suppressions are required to work around memory
leaks in Gtk.
This commit is contained in:
Richard W.M. Jones
2017-03-16 21:46:14 +00:00
parent 9170513c8a
commit a73f459904
5 changed files with 21 additions and 3 deletions

View File

@@ -250,6 +250,9 @@ TESTS += \
$(SLOW_TESTS)
endif ENABLE_APPLIANCE
check-valgrind:
make VG="@VG@" check
SLOW_TESTS = \
test-virt-p2v-pxe.sh

View File

@@ -27,7 +27,7 @@ out=test-virt-p2v-cmdline.out
rm -f $out
# The Linux kernel command line.
virt-p2v --cmdline='p2v.server=localhost p2v.port=123 p2v.username=user p2v.password=secret p2v.skip_test_connection p2v.name=test p2v.vcpus=4 p2v.memory=1G p2v.disks=sda,sdb,sdc p2v.removable=sdd p2v.interfaces=eth0,eth1 p2v.o=local p2v.oa=sparse p2v.oc=qemu:///session p2v.of=raw p2v.os=/var/tmp p2v.network=em1:wired,other p2v.dump_config_and_exit' > $out
$VG virt-p2v --cmdline='p2v.server=localhost p2v.port=123 p2v.username=user p2v.password=secret p2v.skip_test_connection p2v.name=test p2v.vcpus=4 p2v.memory=1G p2v.disks=sda,sdb,sdc p2v.removable=sdd p2v.interfaces=eth0,eth1 p2v.o=local p2v.oa=sparse p2v.oc=qemu:///session p2v.of=raw p2v.os=/var/tmp p2v.network=em1:wired,other p2v.dump_config_and_exit' > $out
# For debugging purposes.
cat $out

View File

@@ -51,7 +51,7 @@ export PATH=$d:$PATH
cmdline="p2v.server=localhost p2v.name=windows p2v.disks=$f1,$f2 p2v.o=local p2v.os=$(pwd)/$d p2v.network=em1:wired,other p2v.post="
# Only use nbdkit, disable qemu-nbd.
virt-p2v --cmdline="$cmdline" --nbd=nbdkit,nbdkit-no-sa
$VG virt-p2v --cmdline="$cmdline" --nbd=nbdkit,nbdkit-no-sa
# Test the libvirt XML metadata and a disk was created.
test -f $d/windows.xml

View File

@@ -49,7 +49,7 @@ export PATH=$d:$PATH
# The Linux kernel command line.
cmdline="p2v.server=localhost p2v.name=windows p2v.disks=$f1,$f2 p2v.o=local p2v.os=$(pwd)/$d p2v.network=em1:wired,other p2v.post="
virt-p2v --cmdline="$cmdline"
$VG virt-p2v --cmdline="$cmdline"
# Test the libvirt XML metadata and a disk was created.
test -f $d/windows.xml

View File

@@ -327,6 +327,21 @@
fun:file_apprentice
}
# Gtk
{
gtk_leak
Memcheck:Leak
...
fun:gtk_init_check
}
{
gtk_leak_2
Memcheck:Leak
...
fun:gdk_display_manager_get
}
# Perl
# note: Perl leaks memory by design, this just suppresses them.
{