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 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 def test_aarch64_virt(self): 20 self.set_machine('virt') 21 self.cpu = 'cortex-a53' 22 kernel_path = self.ASSET_KERNEL.fetch() 23 kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + 24 'console=ttyAMA0') 25 console_pattern = 'VFS: Cannot open root device' 26 self.run_rr(kernel_path, kernel_command_line, console_pattern) 27 28 29if __name__ == '__main__': 30 ReplayKernelBase.main() 31