Re: [PATCH libvirt-glib 2/2] tests: test spiceport chardev

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

 



ACK

On Fri, May 09, 2014 at 10:28:28PM +0200, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxx>
> 
> ---
>  tests/test-gconfig.c                        | 14 ++++++++++++++
>  tests/xml/gconfig-domain-device-channel.xml |  4 ++++
>  2 files changed, 18 insertions(+)
> 
> diff --git a/tests/test-gconfig.c b/tests/test-gconfig.c
> index 0be96c0..bd75008 100644
> --- a/tests/test-gconfig.c
> +++ b/tests/test-gconfig.c
> @@ -511,6 +511,7 @@ static void test_domain_device_channel(void)
>      /* spice agent channel */
>      GVirConfigDomainChannel *channel;
>      GVirConfigDomainChardevSourceSpiceVmc *spicevmc;
> +    GVirConfigDomainChardevSourceSpicePort *spiceport;
>  
>      channel = gvir_config_domain_channel_new();
>      gvir_config_domain_channel_set_target_type(channel,
> @@ -522,6 +523,19 @@ static void test_domain_device_channel(void)
>      gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(channel));
>      g_object_unref(G_OBJECT(channel));
>  
> +    channel = gvir_config_domain_channel_new();
> +    gvir_config_domain_channel_set_target_type(channel,
> +                                               GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO);
> +    gvir_config_domain_channel_set_target_name(channel,
> +                                               "org.spice-space.webdav.0");
> +    spiceport = gvir_config_domain_chardev_source_spiceport_new();
> +    gvir_config_domain_chardev_source_spiceport_set_channel(spiceport, "org.spice-space.webdav.0");
> +    gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(channel),
> +                                          GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spiceport));
> +    g_object_unref(G_OBJECT(spiceport));
> +    gvir_config_domain_add_device(domain, GVIR_CONFIG_DOMAIN_DEVICE(channel));
> +    g_object_unref(G_OBJECT(channel));
> +
>      check_xml(domain, "gconfig-domain-device-channel.xml");
>  
>      g_object_unref(G_OBJECT(domain));
> diff --git a/tests/xml/gconfig-domain-device-channel.xml b/tests/xml/gconfig-domain-device-channel.xml
> index 7963b89..27dd28a 100644
> --- a/tests/xml/gconfig-domain-device-channel.xml
> +++ b/tests/xml/gconfig-domain-device-channel.xml
> @@ -3,5 +3,9 @@
>      <channel type="spicevmc">
>        <target type="virtio"/>
>      </channel>
> +    <channel type="spiceport">
> +      <target type="virtio" name="org.spice-space.webdav.0"/>
> +      <source channel="org.spice-space.webdav.0"/>
> +    </channel>
>    </devices>
>  </domain>
> -- 
> 1.8.5.3
> 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

--
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]