[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/9] tests/avocado: Add test for amigaone board
From: |
Daniel Henrique Barboza |
Subject: |
[PULL 3/9] tests/avocado: Add test for amigaone board |
Date: |
Tue, 7 Nov 2023 17:48:00 -0300 |
From: BALATON Zoltan <balaton@eik.bme.hu>
Add an avocado test for the amigaone board that tests it with the
firmware.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-ID:
<b1a0246840fcff1fe6bbd8685e2474a9231b34c5.1698406922.git.balaton@eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
tests/avocado/ppc_amiga.py | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 tests/avocado/ppc_amiga.py
diff --git a/tests/avocado/ppc_amiga.py b/tests/avocado/ppc_amiga.py
new file mode 100644
index 0000000000..b6f866f91d
--- /dev/null
+++ b/tests/avocado/ppc_amiga.py
@@ -0,0 +1,38 @@
+# Test AmigaNG boards
+#
+# Copyright (c) 2023 BALATON Zoltan
+#
+# This work is licensed under the terms of the GNU GPL, version 2 or
+# later. See the COPYING file in the top-level directory.
+
+from avocado.utils import archive
+from avocado.utils import process
+from avocado_qemu import QemuSystemTest
+from avocado_qemu import wait_for_console_pattern
+
+class AmigaOneMachine(QemuSystemTest):
+
+ timeout = 90
+
+ def test_ppc_amigaone(self):
+ """
+ :avocado: tags=arch:ppc
+ :avocado: tags=machine:amigaone
+ :avocado: tags=device:articia
+ :avocado: tags=accel:tcg
+ """
+ self.require_accelerator("tcg")
+ tar_name = 'A1Firmware_Floppy_05-Mar-2005.zip'
+ tar_url = ('https://www.hyperion-entertainment.com/index.php/'
+ 'downloads?view=download&format=raw&file=25')
+ tar_hash = 'c52e59bc73e31d8bcc3cc2106778f7ac84f6c755'
+ zip_file = self.fetch_asset(tar_name, locations=tar_url,
+ asset_hash=tar_hash)
+ archive.extract(zip_file, self.workdir)
+ cmd = f"tail -c 524288 {self.workdir}/floppy_edition/updater.image
>{self.workdir}/u-boot-amigaone.bin"
+ process.run(cmd, shell=True)
+
+ self.vm.set_console()
+ self.vm.add_args('-bios', self.workdir + '/u-boot-amigaone.bin')
+ self.vm.launch()
+ wait_for_console_pattern(self, 'FLASH:')
--
2.41.0
- [PULL 0/9] ppc queue, Daniel Henrique Barboza, 2023/11/07
- [PULL 1/9] hw/pci-host: Add emulation of Mai Logic Articia S, Daniel Henrique Barboza, 2023/11/07
- [PULL 2/9] hw/ppc: Add emulation of AmigaOne XE board, Daniel Henrique Barboza, 2023/11/07
- [PULL 3/9] tests/avocado: Add test for amigaone board,
Daniel Henrique Barboza <=
- [PULL 6/9] ppc/pnv: Connect PNV I2C controller to powernv10, Daniel Henrique Barboza, 2023/11/07
- [PULL 7/9] ppc/pnv: Fix number of I2C engines and ports for power9/10, Daniel Henrique Barboza, 2023/11/07
- [PULL 8/9] hw/pci-host: Update PHB5 XSCOM registers, Daniel Henrique Barboza, 2023/11/07
- [PULL 5/9] ppc/pnv: Connect I2C controller model to powernv9 chip, Daniel Henrique Barboza, 2023/11/07
- [PULL 4/9] ppc/pnv: Add an I2C controller model, Daniel Henrique Barboza, 2023/11/07
- [PULL 9/9] ppc: qtest already exports qtest_rtas_call(), Daniel Henrique Barboza, 2023/11/07
- Re: [PULL 0/9] ppc queue, Stefan Hajnoczi, 2023/11/08