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 9*5831ed84SDaniel P. Berrangé 10d1939097SThomas Huth 11d1939097SThomas Huthclass XTensaLX60Test(LinuxKernelTest): 12d1939097SThomas Huth 13d1939097SThomas Huth ASSET_DAY02 = Asset( 1467d76bdeSThomas 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' 20*5831ed84SDaniel P. Berrangé self.archive_extract(self.ASSET_DAY02) 21beaf88c8SDaniel P. Berrangé self.launch_kernel(self.scratch_file('day02', 22beaf88c8SDaniel P. Berrangé 'santas-sleigh-ride.elf'), 23d1939097SThomas Huth wait_for='QEMU advent calendar') 24d1939097SThomas Huth 25d1939097SThomas Huthif __name__ == '__main__': 26d1939097SThomas Huth LinuxKernelTest.main() 27