[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 6/9] tests/acceptance: Test Open Firmware on the PReP/40p
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 6/9] tests/acceptance: Test Open Firmware on the PReP/40p |
Date: |
Thu, 17 Oct 2019 18:52:36 +0200 |
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 2978416b02..7b8d0e55a9 100644
--- a/tests/acceptance/ppc_prep_40p.py
+++ b/tests/acceptance/ppc_prep_40p.py
@@ -41,3 +41,24 @@ class IbmPrep40pMachine(Test):
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 v3 1/9] Acceptance tests: refactor wait_for_console_pattern, (continued)
- [PATCH v3 1/9] Acceptance tests: refactor wait_for_console_pattern, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v3 3/9] tests/acceptance: Send <carriage return> on serial lines, Philippe Mathieu-Daudé, 2019/10/17
- [RFC PATCH v3 2/9] tests/acceptance: Fix wait_for_console_pattern() hangs, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v3 4/9] tests/acceptance: Refactor exec_command_and_wait_for_pattern(), Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v3 5/9] tests/acceptance: Add test that runs NetBSD 4.0 installer on PRep/40p, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v3 6/9] tests/acceptance: Test Open Firmware on the PReP/40p,
Philippe Mathieu-Daudé <=
- [PATCH v3 7/9] tests/acceptance: Test OpenBIOS on the PReP/40p, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v3 9/9] .travis.yml: Let the avocado job run the 40p tests, Philippe Mathieu-Daudé, 2019/10/17
- [PATCH v3 8/9] tests/acceptance: Test Sandalfoot initrd on the PReP/40p, Philippe Mathieu-Daudé, 2019/10/17