| 1 | #!/usr/bin/env python3 |
| 2 | # |
| 3 | # Replay test that boots a Linux kernel on a i386 machine |
| 4 | # and checks the console |
| 5 | # |
| 6 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | |
| 8 | from qemu_test import Asset |
| 9 | from replay_kernel import ReplayKernelBase |
| 10 | |
| 11 | |
| 12 | class I386Replay(ReplayKernelBase): |
| 13 | |
| 14 | ASSET_KERNEL = Asset( |
| 15 | 'https://storage.tuxboot.com/20230331/i386/bzImage', |
| 16 | 'a3e5b32a354729e65910f5a1ffcda7c14a6c12a55e8213fb86e277f1b76ed956') |
| 17 | |
| 18 | def test_pc(self): |
| 19 | self.set_machine('pc') |
| 20 | kernel_path = self.ASSET_KERNEL.fetch() |
| 21 | kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'console=ttyS0' |
| 22 | console_pattern = 'VFS: Cannot open root device' |
| 23 | self.run_rr(kernel_path, kernel_command_line, console_pattern, shift=5) |
| 24 | |
| 25 | |
| 26 | if __name__ == '__main__': |
| 27 | ReplayKernelBase.main() |