From 2a090e0667b303df59f2fd068dcb61a5afe79a96 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 30 Mar 2013 16:26:25 +0000 Subject: [PATCH] tests/guests: Add 'guests-all-good.xml{.in}' libvirt test guest set. This differs from 'guests.xml' in that there are no guests with missing disks, etc., so we can use this to test virt-alignment-scan accurately. --- .gitignore | 1 + align/test-virt-alignment-scan-guests.sh | 2 +- configure.ac | 1 + tests/guests/guests-all-good.xml.in | 224 +++++++++++++++++++++++ 4 files changed, 227 insertions(+), 1 deletion(-) create mode 100644 tests/guests/guests-all-good.xml.in diff --git a/.gitignore b/.gitignore index c6a716aa6..7c0e238bd 100644 --- a/.gitignore +++ b/.gitignore @@ -450,6 +450,7 @@ Makefile.in /tests/guests/fedora-md1.img /tests/guests/fedora-md2.img /tests/guests/guests.xml +/tests/guests/guests-all-good.xml /tests/guests/guest-aux/fedora-name.db /tests/guests/guest-aux/fedora-packages.db /tests/guests/stamp-fedora-md.img diff --git a/align/test-virt-alignment-scan-guests.sh b/align/test-virt-alignment-scan-guests.sh index 41c1eda30..b8ae50e38 100755 --- a/align/test-virt-alignment-scan-guests.sh +++ b/align/test-virt-alignment-scan-guests.sh @@ -19,7 +19,7 @@ export LANG=C guestsdir="$(cd ../tests/guests && pwd)" -libvirt_uri="test://$guestsdir/guests.xml" +libvirt_uri="test://$guestsdir/guests-all-good.xml" $VG ./virt-alignment-scan -c "$libvirt_uri" r=$? diff --git a/configure.ac b/configure.ac index f95474599..4328062b5 100644 --- a/configure.ac +++ b/configure.ac @@ -1580,6 +1580,7 @@ AC_CONFIG_FILES([Makefile tests/disk-labels/Makefile tests/guests/Makefile tests/guests/guests.xml + tests/guests/guests-all-good.xml tests/hotplug/Makefile tests/luks/Makefile tests/lvm/Makefile diff --git a/tests/guests/guests-all-good.xml.in b/tests/guests/guests-all-good.xml.in new file mode 100644 index 000000000..a8cae1933 --- /dev/null +++ b/tests/guests/guests-all-good.xml.in @@ -0,0 +1,224 @@ + + + + + blank-bootroot + 1048576 + + hvm + + + + + + + + + + + + + blank-bootrootlv + 1048576 + + hvm + + + + + + + + + + + + + blank-disk + 1048576 + + hvm + + + + + + + + + + + + + blank-fs + 1048576 + + hvm + + + + + + + + + + + + + blank-part + 1048576 + + hvm + + + + + + + + + + + + + debian + 1048576 + + hvm + + + + + + + + + + + + + fedora-btrfs + 1048576 + + hvm + + + + + + + + + + + + + fedora + 1048576 + + hvm + + + + + + + + + + + + + fedora-md1 + 1048576 + + hvm + + + + + + + + + + + + + fedora-md2 + 1048576 + + hvm + + + + + + + + + + + + + ubuntu + 1048576 + + hvm + + + + + + + + + + + + + windows + 1048576 + + hvm + + + + + + + + + + + +