xref: /qemu/tests/functional/test_aarch64_replay.py (revision c07cd110a1824e2d046581af7375f16dac26e96f)
1#!/usr/bin/env python3
2#
3# Replay test that boots a Linux kernel on an aarch64 machine
4# and checks the console
5#
6# SPDX-License-Identifier: GPL-2.0-or-later
7
8from qemu_test import Asset, skipIfOperatingSystem
9from replay_kernel import ReplayKernelBase
10
11
12class Aarch64Replay(ReplayKernelBase):
13
14    ASSET_KERNEL = Asset(
15        ('https://archives.fedoraproject.org/pub/archive/fedora/linux/'
16         'releases/29/Everything/aarch64/os/images/pxeboot/vmlinuz'),
17        '7e1430b81c26bdd0da025eeb8fbd77b5dc961da4364af26e771bd39f379cbbf7')
18
19    # Failing on Darwin: https://gitlab.com/qemu-project/qemu/-/issues/2907
20    @skipIfOperatingSystem('Darwin')
21    def test_aarch64_virt(self):
22        self.set_machine('virt')
23        self.cpu = 'cortex-a53'
24        kernel_path = self.ASSET_KERNEL.fetch()
25        kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE +
26                               'console=ttyAMA0')
27        console_pattern = 'VFS: Cannot open root device'
28        self.run_rr(kernel_path, kernel_command_line, console_pattern)
29
30
31if __name__ == '__main__':
32    ReplayKernelBase.main()
33