blob: 0d0518298aa45486c05a2835144793f054624ce5 [file] [log] [blame]
Rahul Maheshwari4d488572019-12-10 23:53:05 -06001*** Settings ***
2
3Documentation Module to test PLDM base commands.
4Library ../lib/pldm_utils.py
5Variables ../data/pldm_variables.py
6Resource ../lib/openbmc_ffdc.robot
7
8Test Setup Printn
9Test Teardown FFDC On Test Case Fail
10
11
12*** Test Cases ***
Rahul Maheshwari4d488572019-12-10 23:53:05 -060013Verify 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
21Verify 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 Walsh06de1f72020-02-17 14:28:24 -060027 Valid Value pldm_output['type_0(base)'] ['${VERSION_BASE['STRING']}']
Rahul Maheshwari4d488572019-12-10 23:53:05 -060028
29
30Verify 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 Walsh06de1f72020-02-17 14:28:24 -060036 Valid Value pldm_output['type_2(platform)'] ['${VERSION_PLATFORM['STRING']}']
Rahul Maheshwari4d488572019-12-10 23:53:05 -060037
38
39Verify 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 Walsh06de1f72020-02-17 14:28:24 -060045 Valid Value pldm_output['type_3(bios)'] ['${VERSION_BIOS['STRING']}']
Rahul Maheshwari4d488572019-12-10 23:53:05 -060046
47
48Verify 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 Walsh06de1f72020-02-17 14:28:24 -060054 Valid Value pldm_output['type_4(fru)'] ['${VERSION_FRU['STRING']}']
Sridevi Rameshfe52e402020-02-05 00:15:24 -060055
56Verify 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']}