Enable basic infrastructure for PLDM testing
What infrastructure support is enabled
- Added keywords to run pldm command.
- Added basic test cases for base PLDM commands.
Change-Id: Ic821415c2bb29cee231093db614f0787c9faee57
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/pldm/test_pldm_base.robot b/pldm/test_pldm_base.robot
new file mode 100644
index 0000000..77bfae7
--- /dev/null
+++ b/pldm/test_pldm_base.robot
@@ -0,0 +1,55 @@
+*** Settings ***
+
+Documentation Module to test PLDM base commands.
+Library ../lib/pldm_utils.py
+Variables ../data/pldm_variables.py
+Resource ../lib/openbmc_ffdc.robot
+
+Test Setup Printn
+Test Teardown FFDC On Test Case Fail
+
+
+*** Test Cases ***
+
+Verify Get PLDM Types
+ [Documentation] Verify supported PLDM types.
+ [Tags] Verify_Get_PLDM_Types
+
+ ${pldm_output}= Pldmtool base GetPLDMTypes
+ Valid List pldm_output['supported_types']['text'] required_values=${PLDM_SUPPORTED_TYPES}
+
+
+Verify Get PLDM Version For Base
+ [Documentation] Verify supported PLDM version for base type.
+ [Tags] Verify_Get_PLDM_Version_For_Base
+
+ ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'base'
+ ${pldm_output}= Pldmtool ${pldm_cmd}
+ Valid Value pldm_output['type_0(base)'] ${VERSION_BASE['STRING']}
+
+
+Verify Get PLDM Version For Platform
+ [Documentation] Verify supported PLDM version for platform type.
+ [Tags] Verify_Get_PLDM_Version_For_Platform
+
+ ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'platform'
+ ${pldm_output}= Pldmtool ${pldm_cmd}
+ Valid Value pldm_output['type_2(platform)'] ${VERSION_PLATFORM['STRING']}
+
+
+Verify Get PLDM Version For BIOS
+ [Documentation] Verify supported PLDM version for BIOS type.
+ [Tags] Verify_Get_PLDM_Version_For_BIOS
+
+ ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'bios'
+ ${pldm_output}= Pldmtool ${pldm_cmd}
+ Valid Value pldm_output['type_3(bios)'] ${VERSION_BIOS['STRING']}
+
+
+Verify Get PLDM Version For FRU
+ [Documentation] Verify supported PLDM version for FRU type.
+ [Tags] Verify_Get_PLDM_Version_For_FRU
+
+ ${pldm_cmd}= Evaluate $CMD_GETPLDMVERSION % 'fru'
+ ${pldm_output}= Pldmtool ${pldm_cmd}
+ Valid Value pldm_output['type_4(fru)'] ${VERSION_FRU['STRING']}