xref: /qemu/tests/functional/test_xtensa_replay.py (revision ee376948ebd9cf74b4456a7422e5073a72e4486a)
1*6e52e84dSThomas Huth#!/usr/bin/env python3
2*6e52e84dSThomas Huth#
3*6e52e84dSThomas Huth# Replay test that boots a Linux kernel on an xtensa lx650 machine
4*6e52e84dSThomas Huth# and checks the console
5*6e52e84dSThomas Huth#
6*6e52e84dSThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later
7*6e52e84dSThomas Huth
8*6e52e84dSThomas Huthfrom qemu_test import Asset
9*6e52e84dSThomas Huthfrom replay_kernel import ReplayKernelBase
10*6e52e84dSThomas Huth
11*6e52e84dSThomas Huth
12*6e52e84dSThomas Huthclass XTensaReplay(ReplayKernelBase):
13*6e52e84dSThomas Huth
14*6e52e84dSThomas Huth    ASSET_DAY02 = Asset(
15*6e52e84dSThomas Huth        'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day02.tar.xz',
16*6e52e84dSThomas Huth        '68ff07f9b3fd3df36d015eb46299ba44748e94bfbb2d5295fddc1a8d4a9fd324')
17*6e52e84dSThomas Huth
18*6e52e84dSThomas Huth    def test_replay(self):
19*6e52e84dSThomas Huth        self.set_machine('lx60')
20*6e52e84dSThomas Huth        self.cpu = 'dc233c'
21*6e52e84dSThomas Huth        kernel_path = self.archive_extract(self.ASSET_DAY02,
22*6e52e84dSThomas Huth                                         member='day02/santas-sleigh-ride.elf')
23*6e52e84dSThomas Huth        self.run_rr(kernel_path, self.REPLAY_KERNEL_COMMAND_LINE,
24*6e52e84dSThomas Huth                    'QEMU advent calendar')
25*6e52e84dSThomas Huth
26*6e52e84dSThomas Huth
27*6e52e84dSThomas Huthif __name__ == '__main__':
28*6e52e84dSThomas Huth    ReplayKernelBase.main()
29