blob: 3a401585a0d5725edc3b3237eb4738a4bb332560 [file] [log] [blame]
Sivas SRR81037942017-01-26 06:48:20 -06001*** Settings ***
2Documentation This suite is for Verifying BMC device tree.
3
Sivas SRR37f93112019-06-19 03:18:07 -05004Resource ../../lib/utils.robot
5Resource ../../lib/openbmc_ffdc.robot
6Resource ../../lib/ipmi_client.robot
Sivas SRR81037942017-01-26 06:48:20 -06007Library String
8
Sivas SRR37f93112019-06-19 03:18:07 -05009Suite Setup Open Connection And Log In
10Suite Teardown Close All Connections
11Test Teardown FFDC On Test Case Fail
Sivas SRR81037942017-01-26 06:48:20 -060012
13*** Variables ***
14${devicetree_base} /sys/firmware/devicetree/base/
15
16*** Test Cases ***
17Check BMC Model Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060018 [Documentation] Verify if the BMC Model is populated in the device tree.
19 [Tags] Check_BMC_Model_Property_Is_Set
20 [Template] Template Check Property
21
Sivas SRR81037942017-01-26 06:48:20 -060022 #Property
George Keishing5abfe602018-07-05 11:54:37 -050023 model
24
25
George Keishing5abfe602018-07-05 11:54:37 -050026Check BMC Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060027 [Documentation] Verify if the BMC compatible property is populated.
28 [Tags] Check_BMC_Compatible_Property_Is_Set
29 [Template] Template Check Property
30
Sivas SRR81037942017-01-26 06:48:20 -060031 #Property
George Keishing5abfe602018-07-05 11:54:37 -050032 compatible
33
34
35Check BMC CPU Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060036 [Documentation] Verify if the BMC CPU name property is populated.
37 [Tags] Check_BMC_CPU_Name_Property_Is_Set
38 [Template] Template Check Property
39
Sivas SRR81037942017-01-26 06:48:20 -060040 #Property
George Keishing5abfe602018-07-05 11:54:37 -050041 cpus/name
42
43
44Check BMC CPU Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060045 [Documentation] Verify if the BMC CPU compatible property is populated.
46 [Tags] Check_BMC_CPU_Compatible_Property_Is_Set
47 [Template] Template Check Property
48
Sivas SRR81037942017-01-26 06:48:20 -060049 #Property
George Keishing5abfe602018-07-05 11:54:37 -050050 cpus/cpu@0/compatible
51
52
53Check BMC Memory Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060054 [Documentation] Verify if the BMC Memory name property is populated.
55 [Tags] Check_BMC_Memory_Name_Property_Is_Set
56 [Template] Template Check Property
57
Sivas SRR81037942017-01-26 06:48:20 -060058 #Property
Sivas SRRd3b515b2019-01-15 23:31:35 -060059 memory@80000000/name
George Keishing5abfe602018-07-05 11:54:37 -050060
61
62Check BMC Memory Device Type Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060063 [Documentation] Verify if the BMC Memory Device Type property is
64 ... populated.
65 [Tags] Check_BMC_Memory_Device_Type_Property_Is_Set
66 [Template] Template Check Property
67
Sivas SRR81037942017-01-26 06:48:20 -060068 #Property
Sivas SRRd3b515b2019-01-15 23:31:35 -060069 memory@80000000/device_type
George Keishing5abfe602018-07-05 11:54:37 -050070
71
72Check BMC FSI Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060073 [Documentation] Verify if the BMC FSI name property is populated.
74 [Tags] Check_BMC_FSI_Name_Property_Is_Set
75 [Template] Template Check Property
76
Sivas SRR81037942017-01-26 06:48:20 -060077 #Property
Sivas SRR37f93112019-06-19 03:18:07 -050078 gpio-fsi/name
George Keishing5abfe602018-07-05 11:54:37 -050079
80
81Check BMC FSI Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -060082 [Documentation] Verify if the BMC FSI compatible property is populated.
83 [Tags] Check_BMC_FSI_Compatible_Property_Is_Set
84 [Template] Template Check Property
85
Sivas SRR01c7dc32017-06-24 02:24:23 -050086 #Property
Sivas SRR37f93112019-06-19 03:18:07 -050087 gpio-fsi/compatible
George Keishing5abfe602018-07-05 11:54:37 -050088
89
90Check BMC GPIO-FSI Name Property Is Set
Sivas SRR01c7dc32017-06-24 02:24:23 -050091 [Documentation] Verify if the BMC GPIO-FSI name property is populated.
92 [Tags] Check_BMC_GPIO_FSI_Name_Property_Is_Set
93 [Template] Template Check Property
94
Sivas SRR01c7dc32017-06-24 02:24:23 -050095 #Property
George Keishing5abfe602018-07-05 11:54:37 -050096 gpio-fsi/name
97
98
99Check BMC GPIO-FSI Compatible Property Is Set
Sivas SRR01c7dc32017-06-24 02:24:23 -0500100 [Documentation] Verify if the BMC GPIO-FSI compatible property is populated.
101 [Tags] Check_BMC_GPIO_FSI_Compatible_Property_Is_Set
102 [Template] Template Check Property
103
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500104 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500105 gpio-fsi/compatible
106
107
108Check BMC GPIO-keys Name Property Is Set
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500109 [Documentation] Verify if the BMC GPIO-keys name property is
110 ... populated.
111 [Tags] Check_BMC_GPIO_keys_Name_Property_Is_Set
112 [Template] Template Check Property
113
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500114 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500115 gpio-keys/name
116
117
118Check BMC GPIO-keys Compatible Property Is Set
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500119 [Documentation] Verify if the BMC GPIO-keys compatible property is
120 ... populated.
121 [Tags] Check_BMC_GPIO_keys_Compatible_Property_Is_Set
122 [Template] Template Check Property
123
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500124 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500125 gpio-keys/compatible
126
127
128Check BMC IIO-HWMON Name Property Is Set
Sivas SRRf4f533b2017-07-30 11:42:12 -0500129 [Documentation] Verify if the BMC IIO-HWMON-DPS310 name property is
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500130 ... populated.
131 [Tags] Check_BMC_IIO-HWMON_Name_Property_Is_Set
132 [Template] Template Check Property
133
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500134 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500135 iio-hwmon-dps310/name
136
137
138Check BMC IIO-HWMON Compatible Property Is Set
Sivas SRRf4f533b2017-07-30 11:42:12 -0500139 [Documentation] Verify if the BMC IIO-HWMON-DPS310 compatible property is
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500140 ... populated.
141 [Tags] Check_BMC_IIO-HWMON_Compatible_Property_Is_Set
142 [Template] Template Check Property
143
Sivas SRR81037942017-01-26 06:48:20 -0600144 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500145 iio-hwmon-dps310/compatible
146
147
148Check BMC LED Name Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -0600149 [Documentation] Verify if the BMC LED name property is populated.
150 [Tags] Check_BMC_LED_Name_Property_Is_Set
151 [Template] Template Check Property
152
Sivas SRR81037942017-01-26 06:48:20 -0600153 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500154 leds/name
155
156
157Check BMC LED Compatible Property Is Set
Sivas SRR81037942017-01-26 06:48:20 -0600158 [Documentation] Verify if the BMC LED compatible property is populated.
159 [Tags] Check_BMC_LED_Compatible_Property_Is_Set
160 [Template] Template Check Property
161
Sivas SRR81037942017-01-26 06:48:20 -0600162 #Property
George Keishing5abfe602018-07-05 11:54:37 -0500163 leds/compatible
164
165
Sivas SRR81037942017-01-26 06:48:20 -0600166*** Keywords ***
167
168Template Check Property
169 [Documentation] Check for the existence of a property in the device tree.
170 [Arguments] ${property}
171 #property: Value of Property
172
173 ${devicetree_path}= Catenate SEPARATOR=
174 ... ${devicetree_base} ${property}
175 ${output} ${stderr}= Execute Command cat ${devicetree_path}
176 ... return_stderr=True
177 Should Be Empty ${stderr}
178 ${length}= Get Length ${output}
179 Should Be True ${length} > 1
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600180