[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/26] tests/acceptance: Test Open Firmware on the PReP/40p
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 14/26] tests/acceptance: Test Open Firmware on the PReP/40p |
Date: |
Mon, 28 Oct 2019 08:34:29 +0100 |
From: Philippe Mathieu-Daudé <address@hidden>
User case from:
https://tyom.blogspot.com/2019/04/aixprep-under-qemu-how-to.html
Acked-by: David Gibson <address@hidden>
Acked-by: Artyom Tarasenko <address@hidden>
Tested-by: Cleber Rosa <address@hidden>
Reviewed-by: Cleber Rosa <address@hidden>
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
v3: use avocado_qemu.wait_for_console_pattern (Cleber)
---
tests/acceptance/ppc_prep_40p.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/tests/acceptance/ppc_prep_40p.py b/tests/acceptance/ppc_prep_40p.py
index 7dd90bb2bb..ebde5b7dc4 100644
--- a/tests/acceptance/ppc_prep_40p.py
+++ b/tests/acceptance/ppc_prep_40p.py
@@ -48,3 +48,24 @@ class IbmPrep40pMachine(MachineTest):
os_banner = 'NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:49:40 PST 2007'
wait_for_console_pattern(self, os_banner)
wait_for_console_pattern(self, 'Model: IBM PPS Model 6015')
+
+ def test_openfirmware(self):
+ """
+ :avocado: tags=arch:ppc
+ :avocado: tags=machine:40p
+ """
+ bios_url = ('https://github.com/artyom-tarasenko/openfirmware/'
+ 'releases/download/40p-20190413/q40pofw-serial.rom')
+ bios_hash = '880c80172ea5b2247c0ac2a8bf36bbe385192c72'
+ bios_path = self.fetch_asset(bios_url, asset_hash=bios_hash)
+
+ self.vm.set_machine('40p')
+ self.vm.set_console()
+ self.vm.add_args('-bios', bios_path)
+
+ self.vm.launch()
+ wait_for_console_pattern(self, 'QEMU PReP/40p')
+ fw_banner = 'Open Firmware, built April 13, 2019 09:29:23'
+ wait_for_console_pattern(self, fw_banner)
+ prompt_msg = 'Type any key to interrupt automatic startup'
+ wait_for_console_pattern(self, prompt_msg)
--
2.21.0
- [PATCH 08/26] tests/acceptance: Introduce LinuxUserTest base class, (continued)
- [PATCH 08/26] tests/acceptance: Introduce LinuxUserTest base class, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 09/26] tests/acceptance: Add bFLT loader linux-user test, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 10/26] tests/acceptance: Add test that boots the HelenOS microkernel on Leon3, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 11/26] tests/acceptance: Add test that boots Linux up to BusyBox on Leon3, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 12/26] .travis.yml: Let the avocado job run the Leon3 test, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 13/26] tests/acceptance: Add test that runs NetBSD 4.0 installer on PRep/40p, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 14/26] tests/acceptance: Test Open Firmware on the PReP/40p,
Philippe Mathieu-Daudé <=
- [PATCH 15/26] tests/acceptance: Test OpenBIOS on the PReP/40p, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 16/26] tests/acceptance: Test Sandalfoot initrd on the PReP/40p, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 17/26] .travis.yml: Let the avocado job run the 40p tests, Philippe Mathieu-Daudé, 2019/10/28
- [PATCH 18/26] tests/boot_console: Test booting HP-UX firmware upgrade, Philippe Mathieu-Daudé, 2019/10/28