diff options
| author | Thomas Huth <thuth@redhat.com> | 2025-08-19 13:23:53 +0200 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2025-08-27 09:46:55 +0200 |
| commit | 1cdb63218c975b20699714449131c6745a512a1f (patch) | |
| tree | defcc48eeb10d663610993c166d6dcedc904a903 /tests/functional/ppc/test_replay.py | |
| parent | ff94df87caeecf3fe2b77e06d2ffe483725bcb51 (diff) | |
| download | focaccia-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-x | tests/functional/ppc/test_replay.py | 34 |
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() |