]> Git Repo - qemu.git/blame - tests/acceptance/machine_sparc_leon3.py
tests/acceptance: Remove shebang header
[qemu.git] / tests / acceptance / machine_sparc_leon3.py
CommitLineData
b11785ca
PMD
1# Functional test that boots a Leon3 machine and checks its serial console.
2#
3# Copyright (c) Philippe Mathieu-Daudé <[email protected]>
4#
5# This work is licensed under the terms of the GNU GPL, version 2 or
6# later. See the COPYING file in the top-level directory.
7
8from avocado_qemu import Test
9from avocado_qemu import wait_for_console_pattern
10
11
12class Leon3Machine(Test):
13
14 timeout = 60
15
16 def test_leon3_helenos_uimage(self):
17 """
18 :avocado: tags=arch:sparc
ba21bde9 19 :avocado: tags=machine:leon3_generic
b11785ca
PMD
20 :avocado: tags=binfmt:uimage
21 """
22 kernel_url = ('http://www.helenos.org/releases/'
23 'HelenOS-0.6.0-sparc32-leon3.bin')
24 kernel_hash = 'a88c9cfdb8430c66650e5290a08765f9bf049a30'
25 kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash)
26
b11785ca
PMD
27 self.vm.set_console()
28 self.vm.add_args('-kernel', kernel_path)
29
30 self.vm.launch()
31
32 wait_for_console_pattern(self, 'Copyright (c) 2001-2014 HelenOS project')
33 wait_for_console_pattern(self, 'Booting the kernel ...')
This page took 0.044742 seconds and 4 git commands to generate.