summary refs log tree commit diff stats
path: root/tests/functional/ppc/test_replay.py
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-08-19 13:23:53 +0200
committerThomas Huth <thuth@redhat.com>2025-08-27 09:46:55 +0200
commit1cdb63218c975b20699714449131c6745a512a1f (patch)
treedefcc48eeb10d663610993c166d6dcedc904a903 /tests/functional/ppc/test_replay.py
parentff94df87caeecf3fe2b77e06d2ffe483725bcb51 (diff)
downloadfocaccia-qemu-1cdb63218c975b20699714449131c6745a512a1f.tar.gz
focaccia-qemu-1cdb63218c975b20699714449131c6745a512a1f.zip
tests/functional: Move ppc/ppc64 tests into target-specific folders
The tests/functional folder has become quite crowded, thus move the
ppc and ppc64 tests into a target-specific subfolder.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250819112403.432587-17-thuth@redhat.com>
Diffstat (limited to 'tests/functional/ppc/test_replay.py')
-rwxr-xr-xtests/functional/ppc/test_replay.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/functional/ppc/test_replay.py b/tests/functional/ppc/test_replay.py
new file mode 100755
index 0000000000..8382070abd
--- /dev/null
+++ b/tests/functional/ppc/test_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()