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 <>
Reviewed-by: 's avatarDaniel P. Berrangé <>
Signed-off-by: 's avatarFabiano Fidêncio <>
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,
devices = g_list_append(devices,
<type arch="x86_64">hvm</type>
<type arch="x86_64" machine="q35">hvm</type>
<boot dev="cdrom"/>
<boot dev="network"/>
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