From: Felix Moessbauer <felix.moessbauer@siemens.com>
To: <isar-users@googlegroups.com>
Cc: <henning.schild@siemens.com>, <adriaan.schmidt@siemens.com>,
<jan.kiszka@siemens.com>,
Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH v2 6/6] run vm_boot_test against EFI and PC BIOS
Date: Mon, 7 Mar 2022 07:42:51 +0100 [thread overview]
Message-ID: <20220307064252.651695-7-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20220307064252.651695-1-felix.moessbauer@siemens.com>
This patch adds a test that boots the combined efi + pcbios
image with pc bios.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
testsuite/vm_boot_test/vm_boot_test.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/testsuite/vm_boot_test/vm_boot_test.py b/testsuite/vm_boot_test/vm_boot_test.py
index f8c655c9..179dad88 100644
--- a/testsuite/vm_boot_test/vm_boot_test.py
+++ b/testsuite/vm_boot_test/vm_boot_test.py
@@ -32,7 +32,7 @@ class VmBase(Test):
for x in output.splitlines() if x != ''))
os.environ.update(env)
- def vm_start(self, arch='amd64', distro='buster'):
+ def vm_start(self, arch='amd64', distro='buster', enforce_pcbios=False):
build_dir = self.params.get('build_dir', default='.')
time_to_wait = self.params.get('time_to_wait', default=60)
@@ -49,7 +49,7 @@ class VmBase(Test):
os.chmod(output_file, 0o644)
cmdline = start_vm.format_qemu_cmdline(arch, build_dir, distro,
- output_file, None)
+ output_file, None, enforce_pcbios)
cmdline.insert(1, '-nographic')
self.log.info('QEMU boot line: ' + str(cmdline))
@@ -127,7 +127,10 @@ class VmBootTestFull(VmBase):
self.vm_start('i386','buster')
def test_amd64_buster(self):
+ # test efi boot
self.vm_start('amd64','buster')
+ # test pcbios boot
+ self.vm_start('amd64', 'buster', True)
def test_amd64_focal(self):
self.vm_start('amd64','focal')
--
2.30.2
next prev parent reply other threads:[~2022-03-07 6:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-07 6:42 [PATCH v2 0/6] Add support for dual bios + efi disk generation Felix Moessbauer
2022-03-07 6:42 ` [PATCH v2 1/6] Add ISAR version of biosplusefi WIC plugin Felix Moessbauer
2022-03-07 6:42 ` [PATCH v2 2/6] wic: make import isarpluginbase work when plugins use each other Felix Moessbauer
2022-03-07 6:42 ` [PATCH v2 3/6] test: add target for efi-plus-pcbios image type Felix Moessbauer
2022-03-07 6:42 ` [PATCH v2 4/6] add support for current debian distros in start_vm.py Felix Moessbauer
2022-03-07 6:42 ` [PATCH v2 5/6] Add pcbios option to start_vm Felix Moessbauer
2022-03-07 6:42 ` Felix Moessbauer [this message]
2022-03-07 9:50 ` [PATCH v2 0/6] Add support for dual bios + efi disk generation Henning Schild
2022-03-22 14:01 ` Anton Mikanovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220307064252.651695-7-felix.moessbauer@siemens.com \
--to=felix.moessbauer@siemens.com \
--cc=adriaan.schmidt@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox