configure: preserve qemu-ga variables
[qemu.git] / tests / avocado / ppc_74xx.py
blobf54757c243f16350dfeaef2f4d81185540f69536
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 :avocado: tags=accel:tcg
15 """
16 timeout = 5
18 def test_ppc_7400(self):
19 """
20 :avocado: tags=cpu:7400
21 """
22 self.require_accelerator("tcg")
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')
28 def test_ppc_7410(self):
29 """
30 :avocado: tags=cpu:7410
31 """
32 self.require_accelerator("tcg")
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')
38 def test_ppc_7441(self):
39 """
40 :avocado: tags=cpu:7441
41 """
42 self.require_accelerator("tcg")
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')
48 def test_ppc_7445(self):
49 """
50 :avocado: tags=cpu:7445
51 """
52 self.require_accelerator("tcg")
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')
58 def test_ppc_7447(self):
59 """
60 :avocado: tags=cpu:7447
61 """
62 self.require_accelerator("tcg")
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')
68 def test_ppc_7447a(self):
69 """
70 :avocado: tags=cpu:7447a
71 """
72 self.require_accelerator("tcg")
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')
78 def test_ppc_7448(self):
79 """
80 :avocado: tags=cpu:7448
81 """
82 self.require_accelerator("tcg")
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')
88 def test_ppc_7450(self):
89 """
90 :avocado: tags=cpu:7450
91 """
92 self.require_accelerator("tcg")
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_7451(self):
99 """
100 :avocado: tags=cpu:7451
102 self.require_accelerator("tcg")
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')
108 def test_ppc_7455(self):
110 :avocado: tags=cpu:7455
112 self.require_accelerator("tcg")
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')
118 def test_ppc_7457(self):
120 :avocado: tags=cpu:7457
122 self.require_accelerator("tcg")
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')
128 def test_ppc_7457a(self):
130 :avocado: tags=cpu:7457a
132 self.require_accelerator("tcg")
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')