blob: 5062649f6dce048625b5d8a612b6f2873aba4ab6 [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
79Check BMC LED Name Property Is Set
80 #Property
81 leds/name
82 [Documentation] Verify if the BMC LED name property is populated.
83 [Tags] Check_BMC_LED_Name_Property_Is_Set
84 [Template] Template Check Property
85
86Check BMC LED Compatible Property Is Set
87 #Property
88 leds/compatible
89 [Documentation] Verify if the BMC LED compatible property is populated.
90 [Tags] Check_BMC_LED_Compatible_Property_Is_Set
91 [Template] Template Check Property
92
93Check BMC Clocks Name Property Is Set
94 #Property
95 clocks/name
96 [Documentation] Verify if the BMC clocks name property is populated.
97 [Tags] Check_BMC_Clocks_Name_Property_Is_Set
98 [Template] Template Check Property
99
100Check BMC Clocks Compatible Property Is Set
101 #Property
102 clocks/clk_clkin/compatible
103 [Documentation] Verify if the BMC clocks compatible property is populated.
104 [Tags] Check_BMC_Clocks_Compatible_Property_Is_Set
105 [Template] Template Check Property
106
107*** Keywords ***
108
109Template Check Property
110 [Documentation] Check for the existence of a property in the device tree.
111 [Arguments] ${property}
112 #property: Value of Property
113
114 ${devicetree_path}= Catenate SEPARATOR=
115 ... ${devicetree_base} ${property}
116 ${output} ${stderr}= Execute Command cat ${devicetree_path}
117 ... return_stderr=True
118 Should Be Empty ${stderr}
119 ${length}= Get Length ${output}
120 Should Be True ${length} > 1
Rahul Maheshwari06174f22017-03-06 03:17:09 -0600121
122Post Test Case Execution
123 [Documentation] Do the post test teardown.
124 ... 1. Capture FFDC on test failure.
125 ... 2. Close all open SSH connections.
126
127 FFDC On Test Case Fail
128 Close All Connections