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 *** |
| 13 | |
| 14 | Verify Get PLDM Types |
| 15 | [Documentation] Verify supported PLDM types. |
| 16 | [Tags] Verify_Get_PLDM_Types |
| 17 | |
| 18 | ${pldm_output}= Pldmtool base GetPLDMTypes |
| 19 | Valid List pldm_output['supported_types']['text'] required_values=${PLDM_SUPPORTED_TYPES} |
| 20 | |
| 21 | |
| 22 | Verify Get PLDM Version For Base |
| 23 | [Documentation] Verify supported PLDM version for base type. |
| 24 | [Tags] Verify_Get_PLDM_Version_For_Base |
| 25 | |
| 26 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'base' |
| 27 | ${pldm_output}= Pldmtool ${pldm_cmd} |
| 28 | Valid Value pldm_output['type_0(base)'] ${VERSION_BASE['STRING']} |
| 29 | |
| 30 | |
| 31 | Verify Get PLDM Version For Platform |
| 32 | [Documentation] Verify supported PLDM version for platform type. |
| 33 | [Tags] Verify_Get_PLDM_Version_For_Platform |
| 34 | |
| 35 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'platform' |
| 36 | ${pldm_output}= Pldmtool ${pldm_cmd} |
| 37 | Valid Value pldm_output['type_2(platform)'] ${VERSION_PLATFORM['STRING']} |
| 38 | |
| 39 | |
| 40 | Verify Get PLDM Version For BIOS |
| 41 | [Documentation] Verify supported PLDM version for BIOS type. |
| 42 | [Tags] Verify_Get_PLDM_Version_For_BIOS |
| 43 | |
| 44 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'bios' |
| 45 | ${pldm_output}= Pldmtool ${pldm_cmd} |
| 46 | Valid Value pldm_output['type_3(bios)'] ${VERSION_BIOS['STRING']} |
| 47 | |
| 48 | |
| 49 | Verify Get PLDM Version For FRU |
| 50 | [Documentation] Verify supported PLDM version for FRU type. |
| 51 | [Tags] Verify_Get_PLDM_Version_For_FRU |
| 52 | |
| 53 | ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'fru' |
| 54 | ${pldm_output}= Pldmtool ${pldm_cmd} |
| 55 | Valid Value pldm_output['type_4(fru)'] ${VERSION_FRU['STRING']} |