1 # Smoke tests for 74xx cpus (aka G4).
3 # Copyright (c) 2021, IBM Corp.
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.
8 from avocado_qemu
import QemuSystemTest
9 from avocado_qemu
import wait_for_console_pattern
11 class ppc74xxCpu(QemuSystemTest
):
13 :avocado: tags=arch:ppc
17 def test_ppc_7400(self
):
19 :avocado: tags=cpu:7400
23 wait_for_console_pattern(self
, '>> OpenBIOS')
24 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
26 def test_ppc_7410(self
):
28 :avocado: tags=cpu:7410
32 wait_for_console_pattern(self
, '>> OpenBIOS')
33 wait_for_console_pattern(self
, '>> CPU type PowerPC,74xx')
35 def test_ppc_7441(self
):
37 :avocado: tags=cpu:7441
41 wait_for_console_pattern(self
, '>> OpenBIOS')
42 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
44 def test_ppc_7445(self
):
46 :avocado: tags=cpu:7445
50 wait_for_console_pattern(self
, '>> OpenBIOS')
51 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
53 def test_ppc_7447(self
):
55 :avocado: tags=cpu:7447
59 wait_for_console_pattern(self
, '>> OpenBIOS')
60 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
62 def test_ppc_7447a(self
):
64 :avocado: tags=cpu:7447a
68 wait_for_console_pattern(self
, '>> OpenBIOS')
69 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
71 def test_ppc_7448(self
):
73 :avocado: tags=cpu:7448
77 wait_for_console_pattern(self
, '>> OpenBIOS')
78 wait_for_console_pattern(self
, '>> CPU type PowerPC,MPC86xx')
80 def test_ppc_7450(self
):
82 :avocado: tags=cpu:7450
86 wait_for_console_pattern(self
, '>> OpenBIOS')
87 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
89 def test_ppc_7451(self
):
91 :avocado: tags=cpu:7451
95 wait_for_console_pattern(self
, '>> OpenBIOS')
96 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
98 def test_ppc_7455(self
):
100 :avocado: tags=cpu:7455
102 self
.vm
.set_console()
104 wait_for_console_pattern(self
, '>> OpenBIOS')
105 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
107 def test_ppc_7457(self
):
109 :avocado: tags=cpu:7457
111 self
.vm
.set_console()
113 wait_for_console_pattern(self
, '>> OpenBIOS')
114 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
116 def test_ppc_7457a(self
):
118 :avocado: tags=cpu:7457a
120 self
.vm
.set_console()
122 wait_for_console_pattern(self
, '>> OpenBIOS')
123 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')