[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/6] tests/boot_linux_console: add BIOS acceptance test
From: |
Liam Merwick |
Subject: |
[PATCH 2/6] tests/boot_linux_console: add BIOS acceptance test |
Date: |
Mon, 27 Jan 2020 16:36:30 +0000 |
Add tests to use qboot with the 'pc' and 'microvm' machine classes
by adding the '-bios' option via self.vm.add_args() before calling
do_test_x86_64_machine().
Signed-off-by: Liam Merwick <address@hidden>
---
tests/acceptance/boot_linux_console.py | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/tests/acceptance/boot_linux_console.py
b/tests/acceptance/boot_linux_console.py
index aa5b07b1c609..8daf6461ffac 100644
--- a/tests/acceptance/boot_linux_console.py
+++ b/tests/acceptance/boot_linux_console.py
@@ -60,7 +60,6 @@ class BootLinuxConsole(Test):
'/vmlinuz')
kernel_hash = '23bebd2680757891cf7adedb033532163a792495'
kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
-
self.vm.set_console()
kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0'
self.vm.add_args('-kernel', kernel_path,
@@ -75,12 +74,26 @@ class BootLinuxConsole(Test):
"""
self.do_test_x86_64_machine()
+ def test_x86_64_pc_qboot(self):
+ """
+ :avocado: tags=machine:pc
+ """
+ self.vm.add_args('-bios', 'pc-bios/bios-microvm.bin')
+ self.do_test_x86_64_machine()
+
def test_x86_64_microvm(self):
"""
:avocado: tags=machine:microvm
"""
self.do_test_x86_64_machine()
+ def test_x86_64_microvm_qboot(self):
+ """
+ :avocado: tags=machine:microvm
+ """
+ self.vm.add_args('-bios', 'pc-bios/bios-microvm.bin')
+ self.do_test_x86_64_machine()
+
def test_mips_malta(self):
"""
:avocado: tags=arch:mips
--
1.8.3.1
[PATCH 1/6] tests/boot_linux_console: add microvm acceptance test, Liam Merwick, 2020/01/27
[PATCH 4/6] travis.yml: install rpm2cpio for acceptance tests, Liam Merwick, 2020/01/27