Commit 72c229e0 authored by Fabiano Fidêncio's avatar Fabiano Fidêncio Committed by Daniel P. Berrangé

tests: Add tests for _domain_os_{set, get}_machine()

Reviewed-by: Cole Robinson's avatarCole Robinson <crobinso@redhat.com>
Reviewed-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
Signed-off-by: 's avatarFabiano Fidêncio <fidencio@redhat.com>
parent f9780a7f
......@@ -214,8 +214,10 @@ static void test_domain_os(void)
os = gvir_config_domain_os_new();
gvir_config_domain_os_set_os_type(os, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM);
gvir_config_domain_os_set_arch(os, "x86_64");
gvir_config_domain_os_set_machine(os, "q35");
g_assert_cmpint(gvir_config_domain_os_get_os_type(os), ==, GVIR_CONFIG_DOMAIN_OS_TYPE_HVM);
g_assert_cmpstr(gvir_config_domain_os_get_arch(os), ==, "x86_64");
g_assert_cmpstr(gvir_config_domain_os_get_machine(os), ==, "q35");
devices = g_list_append(devices,
GINT_TO_POINTER(GVIR_CONFIG_DOMAIN_OS_BOOT_DEVICE_CDROM));
devices = g_list_append(devices,
......
<domain>
<os>
<type arch="x86_64">hvm</type>
<type arch="x86_64" machine="q35">hvm</type>
<boot dev="cdrom"/>
<boot dev="network"/>
</os>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment