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 | |
| 4 | Resource ../lib/openbmc_ffdc.robot |
| 5 | Resource ../lib/ipmi_client.robot |
| 6 | Library String |
| 7 | |
Rahul Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 8 | Test Setup Open Connection And Log In |
| 9 | Test Teardown Post Test Case Execution |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 10 | |
| 11 | *** Variables *** |
| 12 | ${devicetree_base} /sys/firmware/devicetree/base/ |
| 13 | |
| 14 | *** Test Cases *** |
| 15 | Check 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 | |
| 22 | Check 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 | |
| 29 | Check 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 | |
| 36 | Check 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 | |
| 43 | Check 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 | |
| 50 | Check 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 | |
| 57 | Check 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 | |
| 65 | Check 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 | |
| 72 | Check 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 SRR | 01c7dc3 | 2017-06-24 02:24:23 -0500 | [diff] [blame] | 79 | Check 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 | |
| 86 | Check 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 SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 93 | Check 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 | |
| 101 | Check 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 | |
| 109 | Check BMC IIO-HWMON Name Property Is Set |
| 110 | #Property |
Sivas SRR | f4f533b | 2017-07-30 11:42:12 -0500 | [diff] [blame] | 111 | iio-hwmon-dps310/name |
| 112 | [Documentation] Verify if the BMC IIO-HWMON-DPS310 name property is |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 113 | ... populated. |
| 114 | [Tags] Check_BMC_IIO-HWMON_Name_Property_Is_Set |
| 115 | [Template] Template Check Property |
| 116 | |
| 117 | Check BMC IIO-HWMON Compatible Property Is Set |
| 118 | #Property |
Sivas SRR | f4f533b | 2017-07-30 11:42:12 -0500 | [diff] [blame] | 119 | iio-hwmon-dps310/compatible |
| 120 | [Documentation] Verify if the BMC IIO-HWMON-DPS310 compatible property is |
Sivas SRR | fbe34dd | 2017-06-29 11:03:12 -0500 | [diff] [blame] | 121 | ... populated. |
| 122 | [Tags] Check_BMC_IIO-HWMON_Compatible_Property_Is_Set |
| 123 | [Template] Template Check Property |
| 124 | |
Sivas SRR | 8103794 | 2017-01-26 06:48:20 -0600 | [diff] [blame] | 125 | Check 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 | |
| 132 | Check 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 | |
| 139 | Check 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 | |
| 146 | Check 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 | |
| 155 | Template 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 Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 167 | |
| 168 | Post 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 |