]> xenbits.xensource.com Git - libvirt.git/commit
domaincapstest: add bhyve caps test
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sat, 18 Mar 2017 20:17:13 +0000 (00:17 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 26 Mar 2017 14:44:46 +0000 (18:44 +0400)
commit74cfb5bb853ba259c1ec119aa86e4c92154c4249
treef74d104520be9dedb8b8a47bb08ed32628f094be
parentc27aa64786ab041b10400b84852d80f299f340f0
domaincapstest: add bhyve caps test

 * Extract filling bhyve capabilities from virBhyveDomainCapsBuild()
   into a new function virBhyveDomainCapsFill() to make testing
   easier by not having to mock firmware directory listing and
   hypervisor capabilities probing
 * Also, just presence of the firmware files is not sufficient
   to enable os.loader.supported, hypervisor should support UEFI
   boot too
 * Add tests to domaincapstest for the main caps possible flows:
    - when UEFI bootrom is supported
    - when video (fbus) is supported
    - neither of above is supported
src/bhyve/bhyve_capabilities.c
src/bhyve/bhyve_capabilities.h
tests/Makefile.am
tests/domaincapsschemadata/bhyve_basic.x86_64.xml [new file with mode: 0644]
tests/domaincapsschemadata/bhyve_fbuf.x86_64.xml [new file with mode: 0644]
tests/domaincapsschemadata/bhyve_uefi.x86_64.xml [new file with mode: 0644]
tests/domaincapstest.c