| 1 | #!/usr/bin/env python3 |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 4 | # |
| 5 | # Test for multiprocess qemu on x86 |
| 6 | |
| 7 | from multiprocess import Multiprocess |
| 8 | from qemu_test import Asset |
| 9 | |
| 10 | |
| 11 | class X86Multiprocess(Multiprocess): |
| 12 | |
| 13 | ASSET_KERNEL_X86 = Asset( |
| 14 | ('https://archives.fedoraproject.org/pub/archive/fedora/linux' |
| 15 | '/releases/31/Everything/x86_64/os/images/pxeboot/vmlinuz'), |
| 16 | 'd4738d03dbbe083ca610d0821d0a8f1488bebbdccef54ce33e3adb35fda00129') |
| 17 | |
| 18 | ASSET_INITRD_X86 = Asset( |
| 19 | ('https://archives.fedoraproject.org/pub/archive/fedora/linux' |
| 20 | '/releases/31/Everything/x86_64/os/images/pxeboot/initrd.img'), |
| 21 | '3b6cb5c91a14c42e2f61520f1689264d865e772a1f0069e660a800d31dd61fb9') |
| 22 | |
| 23 | def test_multiprocess(self): |
| 24 | kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + |
| 25 | 'console=ttyS0 rdinit=/bin/bash') |
| 26 | self.do_test(self.ASSET_KERNEL_X86, self.ASSET_INITRD_X86, |
| 27 | kernel_command_line, 'pc') |
| 28 | |
| 29 | |
| 30 | if __name__ == '__main__': |
| 31 | Multiprocess.main() |