Re: [PATCH 8/8] cputune: new tests for testing cputune xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 29, 2011 at 02:32:26PM +0800, Osier Yang wrote:
> ---
>  tests/qemuxml2argvdata/qemuxml2argv-cputune.xml |   31 +++++++++++++++++++++++
>  tests/qemuxml2argvtest.c                        |    1 +
>  tests/qemuxml2xmltest.c                         |    1 +
>  3 files changed, 33 insertions(+), 0 deletions(-)
>  create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-cputune.xml

  Hum, I'm surprized, I would have expected qemuxml2argv-cputune.args
to be added too...

> diff --git a/tests/qemuxml2argvdata/qemuxml2argv-cputune.xml b/tests/qemuxml2argvdata/qemuxml2argv-cputune.xml
> new file mode 100644
> index 0000000..9bb021b
> --- /dev/null
> +++ b/tests/qemuxml2argvdata/qemuxml2argv-cputune.xml
> @@ -0,0 +1,31 @@
> +<domain type='qemu'>
> +  <name>QEMUGuest1</name>
> +  <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
> +  <memory>219136</memory>
> +  <currentMemory>219136</currentMemory>
> +  <vcpu>2</vcpu>
> +  <cputune>
> +    <shares>2048</shares>
> +    <vcpupin vcpu='0' cpuset='0'/>
> +    <vcpupin vcpu='1' cpuset='1'/>
> +  </cputune>
> +  <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'>
> +      <source dev='/dev/HostVG/QEMUGuest1'/>
> +      <target dev='hda' bus='ide'/>
> +      <address type='drive' controller='0' bus='0' unit='0'/>
> +    </disk>
> +    <controller type='ide' index='0'/>
> +    <memballoon model='virtio'/>
> +  </devices>
> +</domain>
> +
> diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
> index 02de8de..c06bdf6 100644
> --- a/tests/qemuxml2argvtest.c
> +++ b/tests/qemuxml2argvtest.c
> @@ -494,6 +494,7 @@ mymain(int argc, char **argv)
> 
>      DO_TEST("memtune", false, QEMU_CAPS_NAME);
>      DO_TEST("blkiotune", false, QEMU_CAPS_NAME);
> +    DO_TEST("cputune", false, QEMU_CAPS_NAME);
> 
>      free(driver.stateDir);
>      virCapabilitiesFree(driver.caps);
> diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
> index c0c36ad..b86dbee 100644
> --- a/tests/qemuxml2xmltest.c
> +++ b/tests/qemuxml2xmltest.c
> @@ -185,6 +185,7 @@ mymain(int argc, char **argv)
>      DO_TEST("encrypted-disk");
>      DO_TEST("memtune");
>      DO_TEST("blkiotune");
> +    DO_TEST("cputune");
> 
>      DO_TEST("smp");
> 

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]