mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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
|
||||
|
||||
@@ -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=$?
|
||||
|
||||
@@ -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
|
||||
|
||||
224
tests/guests/guests-all-good.xml.in
Normal file
224
tests/guests/guests-all-good.xml.in
Normal file
@@ -0,0 +1,224 @@
|
||||
<!--
|
||||
libguestfs test images
|
||||
@configure_input@
|
||||
Copyright (C) 2013 Red Hat Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
To use the test guests by name, specify the following libvirt URI:
|
||||
test://$(abs_builddir)/guests-all-good.xml
|
||||
|
||||
eg:
|
||||
./run ./df/virt-df -c test://@abs_builddir@/guests-all-good.xml
|
||||
./run ./align/virt-alignment-scan -c test://@abs_builddir@/guests-all-good.xml
|
||||
|
||||
Note this differs from 'guests.xml' just in that none of these guests
|
||||
have missing disks, etc.
|
||||
-->
|
||||
<node>
|
||||
|
||||
<domain type='test'>
|
||||
<name>blank-bootroot</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/blank-bootroot.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>blank-bootrootlv</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/blank-bootrootlv.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>blank-disk</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/blank-disk.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>blank-fs</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/blank-fs.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>blank-part</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/blank-part.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>debian</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/debian.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>fedora-btrfs</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/fedora-btrfs.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>fedora</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/fedora.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>fedora-md1</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/fedora-md1.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>fedora-md2</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/fedora-md2.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>ubuntu</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/ubuntu.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
<domain type='test'>
|
||||
<name>windows</name>
|
||||
<memory>1048576</memory>
|
||||
<os>
|
||||
<type>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu'/>
|
||||
<source file='@abs_builddir@/windows.img'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
</devices>
|
||||
</domain>
|
||||
|
||||
</node>
|
||||
Reference in New Issue
Block a user