| 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 |  | 
| Sivas SRR | 37f9311 | 2019-06-19 03:18:07 -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 |  | 
| Sivas SRR | 37f9311 | 2019-06-19 03:18:07 -0500 | [diff] [blame] | 9 | Suite Setup         Open Connection And Log In | 
 | 10 | Suite Teardown      Close All Connections | 
 | 11 | Test Teardown       FFDC On Test Case Fail | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 12 |  | 
 | 13 | *** Variables *** | 
 | 14 | ${devicetree_base}  /sys/firmware/devicetree/base/ | 
 | 15 |  | 
 | 16 | *** Test Cases *** | 
 | 17 | Check BMC Model Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 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 |  | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 22 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 23 |    model | 
 | 24 |  | 
 | 25 |  | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 26 | Check BMC Compatible Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 27 |    [Documentation]  Verify if the BMC compatible property is populated. | 
 | 28 |    [Tags]  Check_BMC_Compatible_Property_Is_Set | 
 | 29 |    [Template]  Template Check Property | 
 | 30 |  | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 31 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 32 |    compatible | 
 | 33 |  | 
 | 34 |  | 
 | 35 | Check BMC CPU Name Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 36 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 40 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 41 |    cpus/name | 
 | 42 |  | 
 | 43 |  | 
 | 44 | Check BMC CPU Compatible Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 45 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 49 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 50 |    cpus/cpu@0/compatible | 
 | 51 |  | 
 | 52 |  | 
 | 53 | Check BMC Memory Name Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 54 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 58 |    #Property | 
| Sivas SRR | d3b515b | 2019-01-15 23:31:35 -0600 | [diff] [blame] | 59 |    memory@80000000/name | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 60 |  | 
 | 61 |  | 
 | 62 | Check BMC Memory Device Type Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 63 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 68 |    #Property | 
| Sivas SRR | d3b515b | 2019-01-15 23:31:35 -0600 | [diff] [blame] | 69 |    memory@80000000/device_type | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 70 |  | 
 | 71 |  | 
 | 72 | Check BMC FSI Name Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 73 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 77 |    #Property | 
| Sivas SRR | 37f9311 | 2019-06-19 03:18:07 -0500 | [diff] [blame] | 78 |    gpio-fsi/name | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 79 |  | 
 | 80 |  | 
 | 81 | Check BMC FSI Compatible Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 82 |    [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 SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 86 |    #Property | 
| Sivas SRR | 37f9311 | 2019-06-19 03:18:07 -0500 | [diff] [blame] | 87 |    gpio-fsi/compatible | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 88 |  | 
 | 89 |  | 
 | 90 | Check BMC GPIO-FSI Name Property Is Set | 
| Sivas SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 91 |    [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 SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 95 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 96 |    gpio-fsi/name | 
 | 97 |  | 
 | 98 |  | 
 | 99 | Check BMC GPIO-FSI Compatible Property Is Set | 
| Sivas SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 100 |    [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 SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 104 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 105 |    gpio-fsi/compatible | 
 | 106 |  | 
 | 107 |  | 
 | 108 | Check BMC GPIO-keys Name Property Is Set | 
| Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 109 |    [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 SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 114 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 115 |    gpio-keys/name | 
 | 116 |  | 
 | 117 |  | 
 | 118 | Check BMC GPIO-keys Compatible Property Is Set | 
| Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 119 |    [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 SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 124 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 125 |    gpio-keys/compatible | 
 | 126 |  | 
 | 127 |  | 
 | 128 | Check BMC IIO-HWMON Name Property Is Set | 
| Sivas SRR | f4f533b | 2017-07-30 11:42:12 -0500 | [diff] [blame] | 129 |    [Documentation]  Verify if the BMC IIO-HWMON-DPS310 name property is | 
| Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 130 |    ...  populated. | 
 | 131 |    [Tags]  Check_BMC_IIO-HWMON_Name_Property_Is_Set | 
 | 132 |    [Template]  Template Check Property | 
 | 133 |  | 
| Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 134 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 135 |    iio-hwmon-dps310/name | 
 | 136 |  | 
 | 137 |  | 
 | 138 | Check BMC IIO-HWMON Compatible Property Is Set | 
| Sivas SRR | f4f533b | 2017-07-30 11:42:12 -0500 | [diff] [blame] | 139 |    [Documentation]  Verify if the BMC IIO-HWMON-DPS310 compatible property is | 
| Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 140 |    ...  populated. | 
 | 141 |    [Tags]  Check_BMC_IIO-HWMON_Compatible_Property_Is_Set | 
 | 142 |    [Template]  Template Check Property | 
 | 143 |  | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 144 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 145 |    iio-hwmon-dps310/compatible | 
 | 146 |  | 
 | 147 |  | 
 | 148 | Check BMC LED Name Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 149 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 153 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 154 |    leds/name | 
 | 155 |  | 
 | 156 |  | 
 | 157 | Check BMC LED Compatible Property Is Set | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 158 |    [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 SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 162 |    #Property | 
| George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 163 |    leds/compatible | 
 | 164 |  | 
 | 165 |  | 
| Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 166 | *** Keywords *** | 
 | 167 |  | 
 | 168 | Template 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 Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 180 |  |