aboutsummaryrefslogtreecommitdiff
path: root/tests/avocado/ppc_74xx.py
blob: 556a9a7da96878e7ddd905d8681fb8d670c954e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Smoke tests for 74xx cpus (aka G4).
#
# Copyright (c) 2021, IBM Corp.
#
# This work is licensed under the terms of the GNU GPL, version 2 or
# later.  See the COPYING file in the top-level directory.

from avocado_qemu import QemuSystemTest
from avocado_qemu import wait_for_console_pattern

class ppc74xxCpu(QemuSystemTest):
    """
    :avocado: tags=arch:ppc
    """
    timeout = 5

    def test_ppc_7400(self):
        """
        :avocado: tags=cpu:7400
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7410(self):
        """
        :avocado: tags=cpu:7410
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,74xx')

    def test_ppc_7441(self):
        """
        :avocado: tags=cpu:7441
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7445(self):
        """
        :avocado: tags=cpu:7445
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7447(self):
        """
        :avocado: tags=cpu:7447
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7447a(self):
        """
        :avocado: tags=cpu:7447a
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7448(self):
        """
        :avocado: tags=cpu:7448
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,MPC86xx')

    def test_ppc_7450(self):
        """
        :avocado: tags=cpu:7450
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7451(self):
        """
        :avocado: tags=cpu:7451
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7455(self):
        """
        :avocado: tags=cpu:7455
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7457(self):
        """
        :avocado: tags=cpu:7457
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')

    def test_ppc_7457a(self):
        """
        :avocado: tags=cpu:7457a
        """
        self.vm.set_console()
        self.vm.launch()
        wait_for_console_pattern(self, '>> OpenBIOS')
        wait_for_console_pattern(self, '>> CPU type PowerPC,G4')