xref: /openbmc/qemu/tests/avocado/ppc_74xx.py (revision 91654e61)
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
14    """
15    timeout = 5
16
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')
25
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')
34
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')
43
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')
52
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')
61
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')
70
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')
79
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')
88
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')
97
98    def test_ppc_7455(self):
99        """
100        :avocado: tags=cpu:7455
101        """
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')
106
107    def test_ppc_7457(self):
108        """
109        :avocado: tags=cpu:7457
110        """
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')
115
116    def test_ppc_7457a(self):
117        """
118        :avocado: tags=cpu:7457a
119        """
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')
124