1*74728629SThomas Huth#!/usr/bin/env python3 2*74728629SThomas Huth# 3*74728629SThomas Huth# Replay test that boots a Linux kernel on an Alpha machine 4*74728629SThomas Huth# and checks the console 5*74728629SThomas Huth# 6*74728629SThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 7*74728629SThomas Huth 8*74728629SThomas Huthfrom qemu_test import Asset 9*74728629SThomas Huthfrom replay_kernel import ReplayKernelBase 10*74728629SThomas Huth 11*74728629SThomas Huth 12*74728629SThomas Huthclass AlphaReplay(ReplayKernelBase): 13*74728629SThomas Huth 14*74728629SThomas Huth ASSET_KERNEL = Asset( 15*74728629SThomas Huth ('http://archive.debian.org/debian/dists/lenny/main/installer-alpha/' 16*74728629SThomas Huth '20090123lenny10/images/cdrom/vmlinuz'), 17*74728629SThomas Huth '34f53da3fa32212e4f00b03cb944b2ad81c06bc8faaf9b7193b2e544ceeca576') 18*74728629SThomas Huth 19*74728629SThomas Huth def test_clipper(self): 20*74728629SThomas Huth self.set_machine('clipper') 21*74728629SThomas Huth kernel_path = self.uncompress(self.ASSET_KERNEL, format='gz') 22*74728629SThomas Huth kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0' 23*74728629SThomas Huth console_pattern = 'Kernel command line: %s' % kernel_command_line 24*74728629SThomas Huth self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=9, 25*74728629SThomas Huth args=('-nodefaults', )) 26*74728629SThomas Huth 27*74728629SThomas Huth 28*74728629SThomas Huthif __name__ == '__main__': 29*74728629SThomas Huth ReplayKernelBase.main() 30