blob: 90a535cd8ccacb3a6de49b3412afac2b3db22e2e [file] [log] [blame]
Sivas SRR81037942017-01-26 06:48:20 -06001*** Settings ***
2Documentation This suite is for Verifying BMC device tree.
3
4Resource ../lib/openbmc_ffdc.robot
5Resource ../lib/ipmi_client.robot
6Library String
7
Rahul Maheshwari06174f22017-03-06 03:17:09 -06008Test Setup Open Connection And Log In
9Test Teardown Post Test Case Execution
Sivas SRR81037942017-01-26 06:48:20 -060010
11*** Variables ***
12${devicetree_base} /sys/firmware/devicetree/base/
13
14*** Test Cases ***
15Check BMC Model Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060016 [Documentation] Verify if the BMC Model is populated in the device tree.
17 [Tags] Check_BMC_Model_Property_Is_Set
18 [Template] Template Check Property
19
Sivas SRR81037942017-01-26 06:48:20 -060020 #Property
George Keishing5abfe602018-07-05 11:54:37 -050021 model
22
23
24Check BMC Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060025 [Documentation] Verify if the BMC name property is populated.
26 [Tags] Check_BMC_Name_Property_Is_Set
27 [Template] Template Check Property
28
Sivas SRR81037942017-01-26 06:48:20 -060029 #Property
George Keishing5abfe602018-07-05 11:54:37 -050030 name
31
32
33Check BMC Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060034 [Documentation] Verify if the BMC compatible property is populated.
35 [Tags] Check_BMC_Compatible_Property_Is_Set
36 [Template] Template Check Property
37
Sivas SRR81037942017-01-26 06:48:20 -060038 #Property
George Keishing5abfe602018-07-05 11:54:37 -050039 compatible
40
41
42Check BMC CPU Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060043 [Documentation] Verify if the BMC CPU name property is populated.
44 [Tags] Check_BMC_CPU_Name_Property_Is_Set
45 [Template] Template Check Property
46
Sivas SRR81037942017-01-26 06:48:20 -060047 #Property
George Keishing5abfe602018-07-05 11:54:37 -050048 cpus/name
49
50
51Check BMC CPU Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060052 [Documentation] Verify if the BMC CPU compatible property is populated.
53 [Tags] Check_BMC_CPU_Compatible_Property_Is_Set
54 [Template] Template Check Property
55
Sivas SRR81037942017-01-26 06:48:20 -060056 #Property
George Keishing5abfe602018-07-05 11:54:37 -050057 cpus/cpu@0/compatible
58
59
60Check BMC Memory Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060061 [Documentation] Verify if the BMC Memory name property is populated.
62 [Tags] Check_BMC_Memory_Name_Property_Is_Set
63 [Template] Template Check Property
64
Sivas SRR81037942017-01-26 06:48:20 -060065 #Property
Sivas SRRd3b515b2019-01-15 23:31:35 -060066 memory@80000000/name
George Keishing5abfe602018-07-05 11:54:37 -050067
68
69Check BMC Memory Device Type Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060070 [Documentation] Verify if the BMC Memory Device Type property is
71 ... populated.
72 [Tags] Check_BMC_Memory_Device_Type_Property_Is_Set
73 [Template] Template Check Property
74
Sivas SRR81037942017-01-26 06:48:20 -060075 #Property
Sivas SRRd3b515b2019-01-15 23:31:35 -060076 memory@80000000/device_type
George Keishing5abfe602018-07-05 11:54:37 -050077
78
79Check BMC FSI Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060080 [Documentation] Verify if the BMC FSI name property is populated.
81 [Tags] Check_BMC_FSI_Name_Property_Is_Set
82 [Template] Template Check Property
83
Sivas SRR81037942017-01-26 06:48:20 -060084 #Property
George Keishing5abfe602018-07-05 11:54:37 -050085 fsi-master/name
86
87
88Check BMC FSI Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060089 [Documentation] Verify if the BMC FSI compatible property is populated.
90 [Tags] Check_BMC_FSI_Compatible_Property_Is_Set
91 [Template] Template Check Property
92
Sivas SRR01c7dc32017-06-24 02:24:23 -050093 #Property
George Keishing5abfe602018-07-05 11:54:37 -050094 fsi-master/compatible
95
96
97Check BMC GPIO-FSI Name Property Is Set
Sivas SRR01c7dc32017-06-24 02:24:23 -050098 [Documentation] Verify if the BMC GPIO-FSI name property is populated.
99 [Tags] Check_BMC_GPIO_FSI_Name_Property_Is_Set
100 [Template] Template Check Property
101
Sivas SRR01c7dc32017-06-24 02:24:23 -0500102 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500103 gpio-fsi/name
104
105
106Check BMC GPIO-FSI Compatible Property Is Set
Sivas SRR01c7dc32017-06-24 02:24:23 -0500107 [Documentation] Verify if the BMC GPIO-FSI compatible property is populated.
108 [Tags] Check_BMC_GPIO_FSI_Compatible_Property_Is_Set
109 [Template] Template Check Property
110
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500111 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500112 gpio-fsi/compatible
113
114
115Check BMC GPIO-keys Name Property Is Set
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500116 [Documentation] Verify if the BMC GPIO-keys name property is
117 ... populated.
118 [Tags] Check_BMC_GPIO_keys_Name_Property_Is_Set
119 [Template] Template Check Property
120
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500121 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500122 gpio-keys/name
123
124
125Check BMC GPIO-keys Compatible Property Is Set
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500126 [Documentation] Verify if the BMC GPIO-keys compatible property is
127 ... populated.
128 [Tags] Check_BMC_GPIO_keys_Compatible_Property_Is_Set
129 [Template] Template Check Property
130
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500131 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500132 gpio-keys/compatible
133
134
135Check BMC IIO-HWMON Name Property Is Set
Sivas SRRf4f533b2017-07-30 11:42:12 -0500136 [Documentation] Verify if the BMC IIO-HWMON-DPS310 name property is
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500137 ... populated.
138 [Tags] Check_BMC_IIO-HWMON_Name_Property_Is_Set
139 [Template] Template Check Property
140
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500141 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500142 iio-hwmon-dps310/name
143
144
145Check BMC IIO-HWMON Compatible Property Is Set
Sivas SRRf4f533b2017-07-30 11:42:12 -0500146 [Documentation] Verify if the BMC IIO-HWMON-DPS310 compatible property is
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500147 ... populated.
148 [Tags] Check_BMC_IIO-HWMON_Compatible_Property_Is_Set
149 [Template] Template Check Property
150
Sivas SRR81037942017-01-26 06:48:20 -0600151 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500152 iio-hwmon-dps310/compatible
153
154
155Check BMC LED Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -0600156 [Documentation] Verify if the BMC LED name property is populated.
157 [Tags] Check_BMC_LED_Name_Property_Is_Set
158 [Template] Template Check Property
159
Sivas SRR81037942017-01-26 06:48:20 -0600160 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500161 leds/name
162
163
164Check BMC LED Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -0600165 [Documentation] Verify if the BMC LED compatible property is populated.
166 [Tags] Check_BMC_LED_Compatible_Property_Is_Set
167 [Template] Template Check Property
168
Sivas SRR81037942017-01-26 06:48:20 -0600169 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500170 leds/compatible
171
172
173Check BMC Clocks Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -0600174 [Documentation] Verify if the BMC clocks name property is populated.
175 [Tags] Check_BMC_Clocks_Name_Property_Is_Set
176 [Template] Template Check Property
177
Sivas SRR81037942017-01-26 06:48:20 -0600178 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500179 clocks/name
180
181
182Check BMC Clocks Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -0600183 [Documentation] Verify if the BMC clocks compatible property is populated.
184 [Tags] Check_BMC_Clocks_Compatible_Property_Is_Set
185 [Template] Template Check Property
186
George Keishing5abfe602018-07-05 11:54:37 -0500187 #Property
188 clocks/clk_clkin/compatible
189
190
Sivas SRR81037942017-01-26 06:48:20 -0600191*** Keywords ***
192
193Template Check Property
194 [Documentation] Check for the existence of a property in the device tree.
195 [Arguments] ${property}
196 #property: Value of Property
197
198 ${devicetree_path}= Catenate SEPARATOR=
199 ... ${devicetree_base} ${property}
200 ${output} ${stderr}= Execute Command cat ${devicetree_path}
201 ... return_stderr=True
202 Should Be Empty ${stderr}
203 ${length}= Get Length ${output}
204 Should Be True ${length} > 1
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600205
206Post Test Case Execution
207 [Documentation] Do the post test teardown.
208 ... 1. Capture FFDC on test failure.
209 ... 2. Close all open SSH connections.
210
211 FFDC On Test Case Fail
212 Close All Connections