ppc/pnv: Add a 'rp_model' class attribute for the PHB4 PEC
[qemu/rayw.git] / tests / avocado / ppc_74xx.py
blob556a9a7da96878e7ddd905d8681fb8d670c954e0
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):
12 """
13 :avocado: tags=arch:ppc
14 """
15 timeout = 5
17 def test_ppc_7400(self):
18 """
19 :avocado: tags=cpu:7400
20 """
21 self.vm.set_console()
22 self.vm.launch()
23 wait_for_console_pattern(self, '>> OpenBIOS')
24 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
26 def test_ppc_7410(self):
27 """
28 :avocado: tags=cpu:7410
29 """
30 self.vm.set_console()
31 self.vm.launch()
32 wait_for_console_pattern(self, '>> OpenBIOS')
33 wait_for_console_pattern(self, '>> CPU type PowerPC,74xx')
35 def test_ppc_7441(self):
36 """
37 :avocado: tags=cpu:7441
38 """
39 self.vm.set_console()
40 self.vm.launch()
41 wait_for_console_pattern(self, '>> OpenBIOS')
42 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
44 def test_ppc_7445(self):
45 """
46 :avocado: tags=cpu:7445
47 """
48 self.vm.set_console()
49 self.vm.launch()
50 wait_for_console_pattern(self, '>> OpenBIOS')
51 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
53 def test_ppc_7447(self):
54 """
55 :avocado: tags=cpu:7447
56 """
57 self.vm.set_console()
58 self.vm.launch()
59 wait_for_console_pattern(self, '>> OpenBIOS')
60 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
62 def test_ppc_7447a(self):
63 """
64 :avocado: tags=cpu:7447a
65 """
66 self.vm.set_console()
67 self.vm.launch()
68 wait_for_console_pattern(self, '>> OpenBIOS')
69 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
71 def test_ppc_7448(self):
72 """
73 :avocado: tags=cpu:7448
74 """
75 self.vm.set_console()
76 self.vm.launch()
77 wait_for_console_pattern(self, '>> OpenBIOS')
78 wait_for_console_pattern(self, '>> CPU type PowerPC,MPC86xx')
80 def test_ppc_7450(self):
81 """
82 :avocado: tags=cpu:7450
83 """
84 self.vm.set_console()
85 self.vm.launch()
86 wait_for_console_pattern(self, '>> OpenBIOS')
87 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')
89 def test_ppc_7451(self):
90 """
91 :avocado: tags=cpu:7451
92 """
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')
98 def test_ppc_7455(self):
99 """
100 :avocado: tags=cpu:7455
102 self.vm.set_console()
103 self.vm.launch()
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()
112 self.vm.launch()
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()
121 self.vm.launch()
122 wait_for_console_pattern(self, '>> OpenBIOS')
123 wait_for_console_pattern(self, '>> CPU type PowerPC,G4')