[libvirt] [PATCH] tests: add missing files

Osier Yang jyang at redhat.com
Mon Sep 5 06:15:32 UTC 2011


于 2011年09月02日 22:44, Eric Blake 写道:
> Created by copying from qemuxml2argv-disk-drive-v2-wb.*, then
> s/writeback/directsync/.  Hopefully this matches Osier's intentions.
>
> * tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.args:
> * tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.xml:
> Add missing files needed by 'make check'.
> ---
>
> Pushing under the build-breaker rule.  Osier, if this conflicts
> with the files you have locally, then feel free to update the
> test to use the version you tested.

It's same with what I created, thanks.

>
>   .../qemuxml2argv-disk-drive-cache-directsync.args  |    5 +++
>   .../qemuxml2argv-disk-drive-cache-directsync.xml   |   33 ++++++++++++++++++++
>   2 files changed, 38 insertions(+), 0 deletions(-)
>   create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.args
>   create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.xml
>
> diff --git a/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.args b/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.args
> new file mode 100644
> index 0000000..3e78726
> --- /dev/null
> +++ b/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.args
> @@ -0,0 +1,5 @@
> +LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M \
> +pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait \
> +-no-acpi -boot c -drive file=/dev/HostVG/QEMUGuest1,if=ide,bus=0,unit=0,\
> +format=qcow2,cache=directsync -drive file=/dev/HostVG/QEMUGuest2,if=ide,\
> +media=cdrom,bus=1,unit=0,format=raw -net none -serial none -parallel none -usb
> diff --git a/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.xml b/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.xml
> new file mode 100644
> index 0000000..17d7c1c
> --- /dev/null
> +++ b/tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-directsync.xml
> @@ -0,0 +1,33 @@
> +<domain type='qemu'>
> +<name>QEMUGuest1</name>
> +<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
> +<memory>219136</memory>
> +<currentMemory>219136</currentMemory>
> +<vcpu>1</vcpu>
> +<os>
> +<type arch='i686' machine='pc'>hvm</type>
> +<boot dev='hd'/>
> +</os>
> +<clock offset='utc'/>
> +<on_poweroff>destroy</on_poweroff>
> +<on_reboot>restart</on_reboot>
> +<on_crash>destroy</on_crash>
> +<devices>
> +<emulator>/usr/bin/qemu</emulator>
> +<disk type='block' device='disk'>
> +<driver name='qemu' type='qcow2' cache='directsync'/>
> +<source dev='/dev/HostVG/QEMUGuest1'/>
> +<target dev='hda' bus='ide'/>
> +<address type='drive' controller='0' bus='0' unit='0'/>
> +</disk>
> +<disk type='block' device='cdrom'>
> +<driver name='qemu' type='raw'/>
> +<source dev='/dev/HostVG/QEMUGuest2'/>
> +<target dev='hdc' bus='ide'/>
> +<readonly/>
> +<address type='drive' controller='0' bus='1' unit='0'/>
> +</disk>
> +<controller type='ide' index='0'/>
> +<memballoon model='virtio'/>
> +</devices>
> +</domain>




More information about the libvir-list mailing list