master
py 28 lines 871 Bytes
Raw
1 #!/usr/bin/env python3
2 #
3 # Replay test that boots a Linux kernel on an microblaze 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 MicroblazeReplay(ReplayKernelBase):
13
14 ASSET_DAY17 = Asset(
15 ('https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/'
16 'day17.tar.xz'),
17 '3ba7439dfbea7af4876662c97f8e1f0cdad9231fc166e4861d17042489270057')
18
19 def test_microblaze_s3adsp1800(self):
20 self.set_machine('petalogix-s3adsp1800')
21 kernel_path = self.archive_extract(self.ASSET_DAY17,
22 member='day17/ballerina.bin')
23 self.run_rr(kernel_path, self.REPLAY_KERNEL_COMMAND_LINE,
24 'QEMU advent calendar')
25
26
27 if __name__ == '__main__':
28 ReplayKernelBase.main()