diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-09-11 18:39:24 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-09-16 09:47:02 +0200 |
commit | 17a37ea39b2e0229430713de4b3c422a69556677 (patch) | |
tree | 220a82aca477af2bfa5704abfbdd237052f9c5b7 /tests/xmlparse.py | |
parent | d2fffa509efe891eef3f2f70e5688c1d6e3a2d87 (diff) | |
download | virt-manager-17a37ea39b2e0229430713de4b3c422a69556677.tar.gz |
virt-install: add tests for OVMF
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'tests/xmlparse.py')
-rw-r--r-- | tests/xmlparse.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/xmlparse.py b/tests/xmlparse.py index d257f389..a9a4063a 100644 --- a/tests/xmlparse.py +++ b/tests/xmlparse.py @@ -286,6 +286,24 @@ class XMLParseTest(unittest.TestCase): self._alter_compare(guest.get_xml_config(), outfile) + def testAlterBootUEFI(self): + guest, outfile = self._get_test_content("change-boot-uefi") + + check = self._make_checker(guest.os) + check("bootorder", [], ["network", "hd", "fd"]) + check("loader_ro", None, True) + check("loader_type", None, "pflash") + check("nvram", None, "/tmp/nvram_store") + check("nvram_template", None, "/tmp/template") + check("loader", None, "OVMF_CODE.fd") + + check("kernel", "/boot/vmlinuz", None) + + check("initrd", "/boot/initrd", None) + check("kernel_args", "location", None) + + self._alter_compare(guest.get_xml_config(), outfile) + def testAlterCpuMode(self): guest, outfile = self._get_test_content("change-cpumode") |