]> git.proxmox.com Git - mirror_qemu.git/blame - tests/avocado/ppc_74xx.py
tests/avocado: s390x cpu topology test dedicated CPU
[mirror_qemu.git] / tests / avocado / ppc_74xx.py
CommitLineData
390a1299
FR
1# Smoke tests for 74xx cpus (aka G4).
2#
3# Copyright (c) 2021, IBM Corp.
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 QemuSystemTest
9from avocado_qemu import wait_for_console_pattern
10
11class ppc74xxCpu(QemuSystemTest):
12 """
13 :avocado: tags=arch:ppc
4e653f0a 14 :avocado: tags=accel:tcg
390a1299
FR
15 """
16 timeout = 5
17
18 def test_ppc_7400(self):
19 """
20 :avocado: tags=cpu:7400
21 """
4e653f0a 22 self.require_accelerator("tcg")
390a1299
FR
23 self.vm.set_console()
24 self.vm.launch()
25 wait_for_console_pattern(self, '>> OpenBIOS')
26 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
27
28 def test_ppc_7410(self):
29 """
30 :avocado: tags=cpu:7410
31 """
4e653f0a 32 self.require_accelerator("tcg")
390a1299
FR
33 self.vm.set_console()
34 self.vm.launch()
35 wait_for_console_pattern(self, '>> OpenBIOS')
36 wait_for_console_pattern(self, '>> CPU type PowerPC,74xx')
37
38 def test_ppc_7441(self):
39 """
40 :avocado: tags=cpu:7441
41 """
4e653f0a 42 self.require_accelerator("tcg")
390a1299
FR
43 self.vm.set_console()
44 self.vm.launch()
45 wait_for_console_pattern(self, '>> OpenBIOS')
46 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
47
48 def test_ppc_7445(self):
49 """
50 :avocado: tags=cpu:7445
51 """
4e653f0a 52 self.require_accelerator("tcg")
390a1299
FR
53 self.vm.set_console()
54 self.vm.launch()
55 wait_for_console_pattern(self, '>> OpenBIOS')
56 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
57
58 def test_ppc_7447(self):
59 """
60 :avocado: tags=cpu:7447
61 """
4e653f0a 62 self.require_accelerator("tcg")
390a1299
FR
63 self.vm.set_console()
64 self.vm.launch()
65 wait_for_console_pattern(self, '>> OpenBIOS')
66 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
67
68 def test_ppc_7447a(self):
69 """
70 :avocado: tags=cpu:7447a
71 """
4e653f0a 72 self.require_accelerator("tcg")
390a1299
FR
73 self.vm.set_console()
74 self.vm.launch()
75 wait_for_console_pattern(self, '>> OpenBIOS')
76 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
77
78 def test_ppc_7448(self):
79 """
80 :avocado: tags=cpu:7448
81 """
4e653f0a 82 self.require_accelerator("tcg")
390a1299
FR
83 self.vm.set_console()
84 self.vm.launch()
85 wait_for_console_pattern(self, '>> OpenBIOS')
86 wait_for_console_pattern(self, '>> CPU type PowerPC,MPC86xx')
87
88 def test_ppc_7450(self):
89 """
90 :avocado: tags=cpu:7450
91 """
4e653f0a 92 self.require_accelerator("tcg")
390a1299
FR
93 self.vm.set_console()
94 self.vm.launch()
95 wait_for_console_pattern(self, '>> OpenBIOS')
96 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
97
98 def test_ppc_7451(self):
99 """
100 :avocado: tags=cpu:7451
101 """
4e653f0a 102 self.require_accelerator("tcg")
390a1299
FR
103 self.vm.set_console()
104 self.vm.launch()
105 wait_for_console_pattern(self, '>> OpenBIOS')
106 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
107
108 def test_ppc_7455(self):
109 """
110 :avocado: tags=cpu:7455
111 """
4e653f0a 112 self.require_accelerator("tcg")
390a1299
FR
113 self.vm.set_console()
114 self.vm.launch()
115 wait_for_console_pattern(self, '>> OpenBIOS')
116 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
117
118 def test_ppc_7457(self):
119 """
120 :avocado: tags=cpu:7457
121 """
4e653f0a 122 self.require_accelerator("tcg")
390a1299
FR
123 self.vm.set_console()
124 self.vm.launch()
125 wait_for_console_pattern(self, '>> OpenBIOS')
126 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
127
128 def test_ppc_7457a(self):
129 """
130 :avocado: tags=cpu:7457a
131 """
4e653f0a 132 self.require_accelerator("tcg")
390a1299
FR
133 self.vm.set_console()
134 self.vm.launch()
135 wait_for_console_pattern(self, '>> OpenBIOS')
136 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')