summary refs log tree commit diff stats
path: root/tests/functional/test_ppc_replay.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-02-18 16:27:34 +0100
committerThomas Huth <thuth@redhat.com>2025-02-26 07:43:25 +0100
commit9917e06cd24dc260467aeccc1d1b9b6c15a0a0d8 (patch)
treec5f6dfa828afc9fc1d79ae434a5e377198b35773 /tests/functional/test_ppc_replay.py
parenta14dfd93b55cb9545a510ac0e008479ada25ef94 (diff)
downloadfocaccia-qemu-9917e06cd24dc260467aeccc1d1b9b6c15a0a0d8.tar.gz
focaccia-qemu-9917e06cd24dc260467aeccc1d1b9b6c15a0a0d8.zip
tests/functional: Convert the 32-bit ppc replay avocado tests
Put the tests into a separate file now (since in the functional
framework, each file is run with one specific qemu-system-* binary).

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250218152744.228335-5-thuth@redhat.com>
Diffstat (limited to '')
-rwxr-xr-xtests/functional/test_ppc_replay.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/functional/test_ppc_replay.py b/tests/functional/test_ppc_replay.py
new file mode 100755
index 0000000000..8382070abd
--- /dev/null
+++ b/tests/functional/test_ppc_replay.py
@@ -0,0 +1,34 @@
+#!/usr/bin/env python3
+#
+# Replay tests for ppc machines
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import Asset
+from replay_kernel import ReplayKernelBase
+
+
+class PpcReplay(ReplayKernelBase):
+
+    ASSET_DAY15 = Asset(
+        'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day15.tar.xz',
+        '03e0757c131d2959decf293a3572d3b96c5a53587165bf05ce41b2818a2bccd5')
+
+    def do_day15_test(self):
+        self.require_accelerator("tcg")
+        kernel_path = self.archive_extract(self.ASSET_DAY15,
+                                           member='day15/invaders.elf')
+        self.run_rr(kernel_path, self.REPLAY_KERNEL_COMMAND_LINE,
+                    'QEMU advent calendar', args=('-M', 'graphics=off'))
+
+    def test_g3beige(self):
+        self.set_machine('g3beige')
+        self.do_day15_test()
+
+    def test_mac99(self):
+        self.set_machine('mac99')
+        self.do_day15_test()
+
+
+if __name__ == '__main__':
+    ReplayKernelBase.main()