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
14 :avocado: tags=accel:tcg
18 def test_ppc_7400(self
):
20 :avocado: tags=cpu:7400
22 self
.require_accelerator("tcg")
25 wait_for_console_pattern(self
, '>> OpenBIOS')
26 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
28 def test_ppc_7410(self
):
30 :avocado: tags=cpu:7410
32 self
.require_accelerator("tcg")
35 wait_for_console_pattern(self
, '>> OpenBIOS')
36 wait_for_console_pattern(self
, '>> CPU type PowerPC,74xx')
38 def test_ppc_7441(self
):
40 :avocado: tags=cpu:7441
42 self
.require_accelerator("tcg")
45 wait_for_console_pattern(self
, '>> OpenBIOS')
46 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
48 def test_ppc_7445(self
):
50 :avocado: tags=cpu:7445
52 self
.require_accelerator("tcg")
55 wait_for_console_pattern(self
, '>> OpenBIOS')
56 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
58 def test_ppc_7447(self
):
60 :avocado: tags=cpu:7447
62 self
.require_accelerator("tcg")
65 wait_for_console_pattern(self
, '>> OpenBIOS')
66 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
68 def test_ppc_7447a(self
):
70 :avocado: tags=cpu:7447a
72 self
.require_accelerator("tcg")
75 wait_for_console_pattern(self
, '>> OpenBIOS')
76 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
78 def test_ppc_7448(self
):
80 :avocado: tags=cpu:7448
82 self
.require_accelerator("tcg")
85 wait_for_console_pattern(self
, '>> OpenBIOS')
86 wait_for_console_pattern(self
, '>> CPU type PowerPC,MPC86xx')
88 def test_ppc_7450(self
):
90 :avocado: tags=cpu:7450
92 self
.require_accelerator("tcg")
95 wait_for_console_pattern(self
, '>> OpenBIOS')
96 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
98 def test_ppc_7451(self
):
100 :avocado: tags=cpu:7451
102 self
.require_accelerator("tcg")
103 self
.vm
.set_console()
105 wait_for_console_pattern(self
, '>> OpenBIOS')
106 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
108 def test_ppc_7455(self
):
110 :avocado: tags=cpu:7455
112 self
.require_accelerator("tcg")
113 self
.vm
.set_console()
115 wait_for_console_pattern(self
, '>> OpenBIOS')
116 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
118 def test_ppc_7457(self
):
120 :avocado: tags=cpu:7457
122 self
.require_accelerator("tcg")
123 self
.vm
.set_console()
125 wait_for_console_pattern(self
, '>> OpenBIOS')
126 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')
128 def test_ppc_7457a(self
):
130 :avocado: tags=cpu:7457a
132 self
.require_accelerator("tcg")
133 self
.vm
.set_console()
135 wait_for_console_pattern(self
, '>> OpenBIOS')
136 wait_for_console_pattern(self
, '>> CPU type PowerPC,G4')