blob: fa3f94bc533d79a04b976ee3349f414be6614868 [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 SRR81037942017-01-26 06:48:20 -060093Check BMC LED Name Property Is Set
94 #Property
95 leds/name
96 [Documentation] Verify if the BMC LED name property is populated.
97 [Tags] Check_BMC_LED_Name_Property_Is_Set
98 [Template] Template Check Property
99
100Check BMC LED Compatible Property Is Set
101 #Property
102 leds/compatible
103 [Documentation] Verify if the BMC LED compatible property is populated.
104 [Tags] Check_BMC_LED_Compatible_Property_Is_Set
105 [Template] Template Check Property
106
107Check BMC Clocks Name Property Is Set
108 #Property
109 clocks/name
110 [Documentation] Verify if the BMC clocks name property is populated.
111 [Tags] Check_BMC_Clocks_Name_Property_Is_Set
112 [Template] Template Check Property
113
114Check BMC Clocks Compatible Property Is Set
115 #Property
116 clocks/clk_clkin/compatible
117 [Documentation] Verify if the BMC clocks compatible property is populated.
118 [Tags] Check_BMC_Clocks_Compatible_Property_Is_Set
119 [Template] Template Check Property
120
121*** Keywords ***
122
123Template Check Property
124 [Documentation] Check for the existence of a property in the device tree.
125 [Arguments] ${property}
126 #property: Value of Property
127
128 ${devicetree_path}= Catenate SEPARATOR=
129 ... ${devicetree_base} ${property}
130 ${output} ${stderr}= Execute Command cat ${devicetree_path}
131 ... return_stderr=True
132 Should Be Empty ${stderr}
133 ${length}= Get Length ${output}
134 Should Be True ${length} > 1
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600135
136Post Test Case Execution
137 [Documentation] Do the post test teardown.
138 ... 1. Capture FFDC on test failure.
139 ... 2. Close all open SSH connections.
140
141 FFDC On Test Case Fail
142 Close All Connections