Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite is for Verifying BMC device tree. |
| 3 | |
George Keishing | d8004f8 | 2022-03-29 08:56:11 -0500 | [diff] [blame] | 4 | Resource ../lib/utils.robot |
| 5 | Resource ../lib/openbmc_ffdc.robot |
| 6 | Resource ../lib/ipmi_client.robot |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 7 | Library String |
| 8 | |
George Keishing | 06a8ee8 | 2023-10-17 15:54:15 +0530 | [diff] [blame] | 9 | Test Setup Open Connection And Log In |
| 10 | Test Teardown Run Keywords Close All Connections AND FFDC On Test Case Fail |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 11 | |
| 12 | *** Variables *** |
| 13 | ${devicetree_base} /sys/firmware/devicetree/base/ |
| 14 | |
| 15 | *** Test Cases *** |
| 16 | Check BMC Model Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 17 | [Documentation] Verify if the BMC Model is populated in the device tree. |
| 18 | [Tags] Check_BMC_Model_Property_Is_Set |
| 19 | [Template] Template Check Property |
| 20 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 21 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 22 | model |
| 23 | |
| 24 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 25 | Check BMC Compatible Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 26 | [Documentation] Verify if the BMC compatible property is populated. |
| 27 | [Tags] Check_BMC_Compatible_Property_Is_Set |
| 28 | [Template] Template Check Property |
| 29 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 30 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 31 | compatible |
| 32 | |
| 33 | |
| 34 | Check BMC CPU Name Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 35 | [Documentation] Verify if the BMC CPU name property is populated. |
| 36 | [Tags] Check_BMC_CPU_Name_Property_Is_Set |
| 37 | [Template] Template Check Property |
| 38 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 39 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 40 | cpus/name |
| 41 | |
| 42 | |
| 43 | Check BMC CPU Compatible Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 44 | [Documentation] Verify if the BMC CPU compatible property is populated. |
| 45 | [Tags] Check_BMC_CPU_Compatible_Property_Is_Set |
| 46 | [Template] Template Check Property |
| 47 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 48 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 49 | cpus/cpu@0/compatible |
| 50 | |
| 51 | |
| 52 | Check BMC Memory Name Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 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 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 57 | #Property |
Sivas SRR | d3b515b | 2019-01-15 23:31:35 -0600 | [diff] [blame] | 58 | memory@80000000/name |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 59 | |
| 60 | |
| 61 | Check BMC Memory Device Type Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 62 | [Documentation] Verify if the BMC Memory Device Type property is |
| 63 | ... populated. |
| 64 | [Tags] Check_BMC_Memory_Device_Type_Property_Is_Set |
| 65 | [Template] Template Check Property |
| 66 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 67 | #Property |
Sivas SRR | d3b515b | 2019-01-15 23:31:35 -0600 | [diff] [blame] | 68 | memory@80000000/device_type |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 69 | |
| 70 | |
| 71 | Check BMC FSI Name Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 72 | [Documentation] Verify if the BMC FSI name property is populated. |
| 73 | [Tags] Check_BMC_FSI_Name_Property_Is_Set |
| 74 | [Template] Template Check Property |
| 75 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 76 | #Property |
Sivas SRR | 37f9311 | 2019-06-19 03:18:07 -0500 | [diff] [blame] | 77 | gpio-fsi/name |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 78 | |
| 79 | |
| 80 | Check BMC FSI Compatible Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 81 | [Documentation] Verify if the BMC FSI compatible property is populated. |
| 82 | [Tags] Check_BMC_FSI_Compatible_Property_Is_Set |
| 83 | [Template] Template Check Property |
| 84 | |
Sivas SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 85 | #Property |
Sivas SRR | 37f9311 | 2019-06-19 03:18:07 -0500 | [diff] [blame] | 86 | gpio-fsi/compatible |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 87 | |
| 88 | |
George Keishing | 5236ec5 | 2022-01-31 12:07:58 -0600 | [diff] [blame] | 89 | Check BMC GPIO FSI Name Property Is Set |
Sivas SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 90 | [Documentation] Verify if the BMC GPIO-FSI name property is populated. |
| 91 | [Tags] Check_BMC_GPIO_FSI_Name_Property_Is_Set |
| 92 | [Template] Template Check Property |
| 93 | |
Sivas SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 94 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 95 | gpio-fsi/name |
| 96 | |
| 97 | |
George Keishing | 5236ec5 | 2022-01-31 12:07:58 -0600 | [diff] [blame] | 98 | Check BMC GPIO FSI Compatible Property Is Set |
Sivas SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 99 | [Documentation] Verify if the BMC GPIO-FSI compatible property is populated. |
| 100 | [Tags] Check_BMC_GPIO_FSI_Compatible_Property_Is_Set |
| 101 | [Template] Template Check Property |
| 102 | |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 103 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 104 | gpio-fsi/compatible |
| 105 | |
| 106 | |
George Keishing | 5236ec5 | 2022-01-31 12:07:58 -0600 | [diff] [blame] | 107 | Check BMC GPIO Keys Name Property Is Set |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 108 | [Documentation] Verify if the BMC GPIO-keys name property is |
| 109 | ... populated. |
George Keishing | 5236ec5 | 2022-01-31 12:07:58 -0600 | [diff] [blame] | 110 | [Tags] Check_BMC_GPIO_Keys_Name_Property_Is_Set |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 111 | [Template] Template Check Property |
| 112 | |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 113 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 114 | gpio-keys/name |
| 115 | |
| 116 | |
George Keishing | 5236ec5 | 2022-01-31 12:07:58 -0600 | [diff] [blame] | 117 | Check BMC GPIO Keys Compatible Property Is Set |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 118 | [Documentation] Verify if the BMC GPIO-keys compatible property is |
| 119 | ... populated. |
George Keishing | 5236ec5 | 2022-01-31 12:07:58 -0600 | [diff] [blame] | 120 | [Tags] Check_BMC_GPIO_Keys_Compatible_Property_Is_Set |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 121 | [Template] Template Check Property |
| 122 | |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 123 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 124 | gpio-keys/compatible |
| 125 | |
| 126 | |
| 127 | Check BMC IIO-HWMON Name Property Is Set |
Sivas SRR | f4f533b | 2017-07-30 11:42:12 -0500 | [diff] [blame] | 128 | [Documentation] Verify if the BMC IIO-HWMON-DPS310 name property is |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 129 | ... populated. |
| 130 | [Tags] Check_BMC_IIO-HWMON_Name_Property_Is_Set |
| 131 | [Template] Template Check Property |
| 132 | |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 133 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 134 | iio-hwmon-dps310/name |
| 135 | |
| 136 | |
| 137 | Check BMC IIO-HWMON Compatible Property Is Set |
Sivas SRR | f4f533b | 2017-07-30 11:42:12 -0500 | [diff] [blame] | 138 | [Documentation] Verify if the BMC IIO-HWMON-DPS310 compatible property is |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 139 | ... populated. |
| 140 | [Tags] Check_BMC_IIO-HWMON_Compatible_Property_Is_Set |
| 141 | [Template] Template Check Property |
| 142 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 143 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 144 | iio-hwmon-dps310/compatible |
| 145 | |
| 146 | |
| 147 | Check BMC LED Name Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 148 | [Documentation] Verify if the BMC LED name property is populated. |
| 149 | [Tags] Check_BMC_LED_Name_Property_Is_Set |
| 150 | [Template] Template Check Property |
| 151 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 152 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 153 | leds/name |
| 154 | |
| 155 | |
| 156 | Check BMC LED Compatible Property Is Set |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 157 | [Documentation] Verify if the BMC LED compatible property is populated. |
| 158 | [Tags] Check_BMC_LED_Compatible_Property_Is_Set |
| 159 | [Template] Template Check Property |
| 160 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 161 | #Property |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 162 | leds/compatible |
| 163 | |
| 164 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 165 | *** Keywords *** |
| 166 | |
| 167 | Template Check Property |
| 168 | [Documentation] Check for the existence of a property in the device tree. |
| 169 | [Arguments] ${property} |
| 170 | #property: Value of Property |
| 171 | |
| 172 | ${devicetree_path}= Catenate SEPARATOR= |
| 173 | ... ${devicetree_base} ${property} |
| 174 | ${output} ${stderr}= Execute Command cat ${devicetree_path} |
| 175 | ... return_stderr=True |
| 176 | Should Be Empty ${stderr} |
| 177 | ${length}= Get Length ${output} |
| 178 | Should Be True ${length} > 1 |
Rahul Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 179 | |