Rahul Maheshwari | 4d48857 | 2019-12-10 23:53:05 -0600 | [diff] [blame] | 1 | *** Settings *** |
| 2 | |
| 3 | Documentation Module to test PLDM base commands. |
| 4 | Library ../lib/pldm_utils.py |
| 5 | Variables ../data/pldm_variables.py |
| 6 | Resource ../lib/openbmc_ffdc.robot |
| 7 | |
| 8 | Test Setup Printn |
| 9 | Test Teardown FFDC On Test Case Fail |
| 10 | |
| 11 | |
| 12 | *** Test Cases *** |
Rahul Maheshwari | 4d48857 | 2019-12-10 23:53:05 -0600 | [diff] [blame] | 13 | Verify Get PLDM Types |
| 14 | [Documentation] Verify supported PLDM types. |
| 15 | [Tags] Verify_Get_PLDM_Types |
| 16 | |
| 17 | ${pldm_output}= Pldmtool base GetPLDMTypes |
| 18 | Valid List pldm_output['supported_types']['text'] required_values=${PLDM_SUPPORTED_TYPES} |
| 19 | |
| 20 | |
| 21 | Verify Get PLDM Version For Base |
| 22 | [Documentation] Verify supported PLDM version for base type. |
| 23 | [Tags] Verify_Get_PLDM_Version_For_Base |
| 24 | |
| 25 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'base' |
| 26 | ${pldm_output}= Pldmtool ${pldm_cmd} |
Michael Walsh | 06de1f7 | 2020-02-17 14:28:24 -0600 | [diff] [blame] | 27 | Valid Value pldm_output['type_0(base)'] ['${VERSION_BASE['STRING']}'] |
Rahul Maheshwari | 4d48857 | 2019-12-10 23:53:05 -0600 | [diff] [blame] | 28 | |
| 29 | |
| 30 | Verify Get PLDM Version For Platform |
| 31 | [Documentation] Verify supported PLDM version for platform type. |
| 32 | [Tags] Verify_Get_PLDM_Version_For_Platform |
| 33 | |
| 34 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'platform' |
| 35 | ${pldm_output}= Pldmtool ${pldm_cmd} |
Michael Walsh | 06de1f7 | 2020-02-17 14:28:24 -0600 | [diff] [blame] | 36 | Valid Value pldm_output['type_2(platform)'] ['${VERSION_PLATFORM['STRING']}'] |
Rahul Maheshwari | 4d48857 | 2019-12-10 23:53:05 -0600 | [diff] [blame] | 37 | |
| 38 | |
| 39 | Verify Get PLDM Version For BIOS |
| 40 | [Documentation] Verify supported PLDM version for BIOS type. |
| 41 | [Tags] Verify_Get_PLDM_Version_For_BIOS |
| 42 | |
| 43 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'bios' |
| 44 | ${pldm_output}= Pldmtool ${pldm_cmd} |
Michael Walsh | 06de1f7 | 2020-02-17 14:28:24 -0600 | [diff] [blame] | 45 | Valid Value pldm_output['type_3(bios)'] ['${VERSION_BIOS['STRING']}'] |
Rahul Maheshwari | 4d48857 | 2019-12-10 23:53:05 -0600 | [diff] [blame] | 46 | |
| 47 | |
| 48 | Verify Get PLDM Version For FRU |
| 49 | [Documentation] Verify supported PLDM version for FRU type. |
| 50 | [Tags] Verify_Get_PLDM_Version_For_FRU |
| 51 | |
| 52 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'fru' |
| 53 | ${pldm_output}= Pldmtool ${pldm_cmd} |
Michael Walsh | 06de1f7 | 2020-02-17 14:28:24 -0600 | [diff] [blame] | 54 | Valid Value pldm_output['type_4(fru)'] ['${VERSION_FRU['STRING']}'] |
Sridevi Ramesh | fe52e40 | 2020-02-05 00:15:24 -0600 | [diff] [blame] | 55 | |
| 56 | Verify GetTID |
| 57 | [Documentation] Verify GetTID (Terminus ID) response message. |
| 58 | [Tags] Verify_GetTID |
| 59 | |
| 60 | # Example output: |
| 61 | # TID : 1 |
| 62 | |
| 63 | ${pldm_output}= Pldmtool base GetTID |
| 64 | Rprint Vars pldm_output |
| 65 | |
| 66 | Valid Dict pldm_output valid_values={'tid': ['1']} |