]> xenbits.xensource.com Git - libvirt.git/commit
test: Introduce qemufirmwaretest
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 19 Feb 2019 16:35:43 +0000 (17:35 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Mar 2019 14:29:44 +0000 (15:29 +0100)
commit04406d87d25cd14acbacf0ea6e00c174d5f88c06
treefad7d3fdaf68d0bb5a817b7eb58b4a6001568292
parent8b5b80f4c5f7342eedce0747469223387ab709ef
test: Introduce qemufirmwaretest

Test firmware description parsing so far.

The test files come from three locations:
1) ovmf-sb-keys.json and ovmf-sb.json come from OVMF
package from RHEL-7 (with slight name change to reflect their
features in filename too),

2) bios.json and aavmf.json come from example JSON documents from
firmware.json from qemu's git (3a0adfc9bf),

3) ovmf.json is then copied from ovmf-sb.json and stripped
of SECURE_BOOT and REQUIRES_SMM flags, OVMF path change,
description update and machine type expanded for both pc and q35
machine types.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
tests/Makefile.am
tests/qemufirmwaredata/aavmf.json [new file with mode: 0644]
tests/qemufirmwaredata/bios.json [new file with mode: 0644]
tests/qemufirmwaredata/ovmf-sb-keys.json [new file with mode: 0644]
tests/qemufirmwaredata/ovmf-sb.json [new file with mode: 0644]
tests/qemufirmwaredata/ovmf.json [new file with mode: 0644]
tests/qemufirmwaretest.c [new file with mode: 0644]