From: Martin Kletzander Date: Wed, 25 Feb 2015 14:45:26 +0000 (+0100) Subject: tests: Add test for os interleaving X-Git-Tag: v1.2.14-rc1~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5882064084a733a661759f8f3461f7cbc259175e;p=thirdparty%2Flibvirt.git tests: Add test for os interleaving We don't usually do tests purely for one change, but one change was special because when users will migrate to OVMF/AAVMF, commit 18f9f69b makes their lives easier by allowing them to interleave inside . It would be nice of us to keep the possibility of them pasting the loader and nvram elements wherever it is valid, hence this test. Signed-off-by: Martin Kletzander --- diff --git a/tests/qemuxml2argvdata/qemuxml2argv-bios-nvram-os-interleave.xml b/tests/qemuxml2argvdata/qemuxml2argv-bios-nvram-os-interleave.xml new file mode 100644 index 0000000000..0c3b925e2a --- /dev/null +++ b/tests/qemuxml2argvdata/qemuxml2argv-bios-nvram-os-interleave.xml @@ -0,0 +1,40 @@ + + test-bios + 362d1fc1-df7d-193e-5c18-49a71bd1da66 + 1048576 + 1048576 + 1 + + /usr/share/OVMF/OVMF_CODE.fd + /usr/share/OVMF/OVMF_VARS.fd + hvm + + + + + + + + destroy + restart + restart + + /usr/bin/qemu + + + +
+ + + + + + + + + + + + + + diff --git a/tests/qemuxml2xmloutdata/qemuxml2xmlout-bios-nvram-os-interleave.xml b/tests/qemuxml2xmloutdata/qemuxml2xmlout-bios-nvram-os-interleave.xml new file mode 100644 index 0000000000..d8270b1ee1 --- /dev/null +++ b/tests/qemuxml2xmloutdata/qemuxml2xmlout-bios-nvram-os-interleave.xml @@ -0,0 +1,40 @@ + + test-bios + 362d1fc1-df7d-193e-5c18-49a71bd1da66 + 1048576 + 1048576 + 1 + + hvm + /usr/share/OVMF/OVMF_CODE.fd + /usr/share/OVMF/OVMF_VARS.fd + + + + + + + + destroy + restart + restart + + /usr/bin/qemu + + + +
+ + + + + + + + + + + + + + diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c index cb6548cfea..8e12e84fcc 100644 --- a/tests/qemuxml2xmltest.c +++ b/tests/qemuxml2xmltest.c @@ -417,6 +417,7 @@ mymain(void) DO_TEST("numatune-memnode-no-memory"); DO_TEST("bios-nvram"); + DO_TEST_DIFFERENT("bios-nvram-os-interleave"); DO_TEST("tap-vhost"); DO_TEST_DIFFERENT("tap-vhost-incorrect");