blob: 7a7b2f910f5f34e8525e22943042be3775d6ba6b [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
16 #Property
17 model
18 [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
22Check BMC Name Property Is Set
23 #Property
24 name
25 [Documentation] Verify if the BMC name property is populated.
26 [Tags] Check_BMC_Name_Property_Is_Set
27 [Template] Template Check Property
28
29Check BMC Compatible Property Is Set
30 #Property
31 compatible
32 [Documentation] Verify if the BMC compatible property is populated.
33 [Tags] Check_BMC_Compatible_Property_Is_Set
34 [Template] Template Check Property
35
36Check BMC CPU Name Property Is Set
37 #Property
38 cpus/name
39 [Documentation] Verify if the BMC CPU name property is populated.
40 [Tags] Check_BMC_CPU_Name_Property_Is_Set
41 [Template] Template Check Property
42
43Check BMC CPU Compatible Property Is Set
44 #Property
45 cpus/cpu@0/compatible
46 [Documentation] Verify if the BMC CPU compatible property is populated.
47 [Tags] Check_BMC_CPU_Compatible_Property_Is_Set
48 [Template] Template Check Property
49
50Check BMC Memory Name Property Is Set
51 #Property
52 memory/name
53 [Documentation] Verify if the BMC Memory name property is populated.
54 [Tags] Check_BMC_Memory_Name_Property_Is_Set
55 [Template] Template Check Property
56
57Check BMC Memory Device Type Property Is Set
58 #Property
59 memory/device_type
60 [Documentation] Verify if the BMC Memory Device Type property is
61 ... populated.
62 [Tags] Check_BMC_Memory_Device_Type_Property_Is_Set
63 [Template] Template Check Property
64
65Check BMC FSI Name Property Is Set
66 #Property
67 fsi-master/name
68 [Documentation] Verify if the BMC FSI name property is populated.
69 [Tags] Check_BMC_FSI_Name_Property_Is_Set
70 [Template] Template Check Property
71
72Check BMC FSI Compatible Property Is Set
73 #Property
74 fsi-master/compatible
75 [Documentation] Verify if the BMC FSI compatible property is populated.
76 [Tags] Check_BMC_FSI_Compatible_Property_Is_Set
77 [Template] Template Check Property
78
Sivas SRR01c7dc32017-06-24 02:24:23 -050079Check BMC GPIO-FSI Name Property Is Set
80 #Property
81 gpio-fsi/name
82 [Documentation] Verify if the BMC GPIO-FSI name property is populated.
83 [Tags] Check_BMC_GPIO_FSI_Name_Property_Is_Set
84 [Template] Template Check Property
85
86Check BMC GPIO-FSI Compatible Property Is Set
87 #Property
88 gpio-fsi/compatible
89 [Documentation] Verify if the BMC GPIO-FSI compatible property is populated.
90 [Tags] Check_BMC_GPIO_FSI_Compatible_Property_Is_Set
91 [Template] Template Check Property
92
Sivas SRRfbe34dd2017-06-29 11:03:12 -050093Check BMC GPIO-keys Name Property Is Set
94 #Property
95 gpio-keys/name
96 [Documentation] Verify if the BMC GPIO-keys name property is
97 ... populated.
98 [Tags] Check_BMC_GPIO_keys_Name_Property_Is_Set
99 [Template] Template Check Property
100
101Check BMC GPIO-keys Compatible Property Is Set
102 #Property
103 gpio-keys/compatible
104 [Documentation] Verify if the BMC GPIO-keys compatible property is
105 ... populated.
106 [Tags] Check_BMC_GPIO_keys_Compatible_Property_Is_Set
107 [Template] Template Check Property
108
109Check BMC IIO-HWMON Name Property Is Set
110 #Property
Sivas SRRf4f533b2017-07-30 11:42:12 -0500111 iio-hwmon-dps310/name
112 [Documentation] Verify if the BMC IIO-HWMON-DPS310 name property is
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500113 ... populated.
114 [Tags] Check_BMC_IIO-HWMON_Name_Property_Is_Set
115 [Template] Template Check Property
116
117Check BMC IIO-HWMON Compatible Property Is Set
118 #Property
Sivas SRRf4f533b2017-07-30 11:42:12 -0500119 iio-hwmon-dps310/compatible
120 [Documentation] Verify if the BMC IIO-HWMON-DPS310 compatible property is
Sivas SRRfbe34dd2017-06-29 11:03:12 -0500121 ... populated.
122 [Tags] Check_BMC_IIO-HWMON_Compatible_Property_Is_Set
123 [Template] Template Check Property
124
Sivas SRR81037942017-01-26 06:48:20 -0600125Check BMC LED Name Property Is Set
126 #Property
127 leds/name
128 [Documentation] Verify if the BMC LED name property is populated.
129 [Tags] Check_BMC_LED_Name_Property_Is_Set
130 [Template] Template Check Property
131
132Check BMC LED Compatible Property Is Set
133 #Property
134 leds/compatible
135 [Documentation] Verify if the BMC LED compatible property is populated.
136 [Tags] Check_BMC_LED_Compatible_Property_Is_Set
137 [Template] Template Check Property
138
139Check BMC Clocks Name Property Is Set
140 #Property
141 clocks/name
142 [Documentation] Verify if the BMC clocks name property is populated.
143 [Tags] Check_BMC_Clocks_Name_Property_Is_Set
144 [Template] Template Check Property
145
146Check BMC Clocks Compatible Property Is Set
147 #Property
148 clocks/clk_clkin/compatible
149 [Documentation] Verify if the BMC clocks compatible property is populated.
150 [Tags] Check_BMC_Clocks_Compatible_Property_Is_Set
151 [Template] Template Check Property
152
153*** Keywords ***
154
155Template Check Property
156 [Documentation] Check for the existence of a property in the device tree.
157 [Arguments] ${property}
158 #property: Value of Property
159
160 ${devicetree_path}= Catenate SEPARATOR=
161 ... ${devicetree_base} ${property}
162 ${output} ${stderr}= Execute Command cat ${devicetree_path}
163 ... return_stderr=True
164 Should Be Empty ${stderr}
165 ${length}= Get Length ${output}
166 Should Be True ${length} > 1
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600167
168Post Test Case Execution
169 [Documentation] Do the post test teardown.
170 ... 1. Capture FFDC on test failure.
171 ... 2. Close all open SSH connections.
172
173 FFDC On Test Case Fail
174 Close All Connections