1d1939097SThomas Huth#!/usr/bin/env python3 2d1939097SThomas Huth# 3d1939097SThomas Huth# Functional test that boots a Linux kernel on an xtensa lx650 machine 4d1939097SThomas Huth# and checks the console 5d1939097SThomas Huth# 6d1939097SThomas Huth# SPDX-License-Identifier: GPL-2.0-or-later 7d1939097SThomas Huth 8d1939097SThomas Huthfrom qemu_test import LinuxKernelTest, Asset 9d1939097SThomas Huthfrom qemu_test.utils import archive_extract 10d1939097SThomas Huth 11d1939097SThomas Huthclass XTensaLX60Test(LinuxKernelTest): 12d1939097SThomas Huth 13d1939097SThomas Huth ASSET_DAY02 = Asset( 14*67d76bdeSThomas Huth 'https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/day02.tar.xz', 15d1939097SThomas Huth '68ff07f9b3fd3df36d015eb46299ba44748e94bfbb2d5295fddc1a8d4a9fd324') 16d1939097SThomas Huth 17d1939097SThomas Huth def test_xtensa_lx60(self): 18d1939097SThomas Huth self.set_machine('lx60') 19d1939097SThomas Huth self.cpu = 'dc233c' 20d1939097SThomas Huth file_path = self.ASSET_DAY02.fetch() 21d1939097SThomas Huth archive_extract(file_path, self.workdir) 22d1939097SThomas Huth self.launch_kernel(self.workdir + '/day02/santas-sleigh-ride.elf', 23d1939097SThomas Huth wait_for='QEMU advent calendar') 24d1939097SThomas Huth 25d1939097SThomas Huthif __name__ == '__main__': 26d1939097SThomas Huth LinuxKernelTest.main() 27