Files
libguestfs/tests/xml/rhbz701814-node.xml
Richard W.M. Jones 00202b9c29 tests: Regression test for RHBZ#701814.
This commit adds a tests/xml directory, and an LD_PRELOAD module which
can fake arbitrary libvirt XML from an external file (and is therefore
a much more flexible test than using the libvirt test:// driver
alone).

Also added is one regression test for:
https://bugzilla.redhat.com/show_bug.cgi?id=701814

Loading the given libvirt XML using Sys::Guestfs::Lib::open_guest
used to fail with the error:

  format parameter is empty or contains disallowed characters at /home/rjones/d/libguestfs/perl/blib/lib/Sys/Guestfs/Lib.pm line 256.

Thanks to Tom Horsley for supplying the test data.
2012-05-03 12:30:05 +01:00

20 lines
461 B
XML

<!-- This is dummy XML needed by the libvirt test:// driver. It will
be overridden by the fake libvirt XML preload module. -->
<node>
<domain type='test'>
<name>winxppro</name>
<memory>1048576</memory>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<devices>
<disk type='file' device='disk'>
<driver name='qemu'/>
<source file='/dev/null'/>
<target dev='vda' bus='virtio'/>
</disk>
</devices>
</domain>
</node>