Add TC to test pldmtool RAW commands
Changes:
Added two new TCs to verify pldmtool RAW commands
Tested:
Tested changes on BMC environment.
Change-Id: I224918a8ddf2228c1752391fd07adf2bb93fe17c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/data/pldm_variables.py b/data/pldm_variables.py
index 61b0ea1..844c4bf 100755
--- a/data/pldm_variables.py
+++ b/data/pldm_variables.py
@@ -258,3 +258,6 @@
"BIOSInteger",
"BIOSEnumeration",
]
+
+PLDM_GET_PLDM_TYPES_RAW_CMD = "raw -d 0x80 0x00 0x04"
+PLDM_GET_PLDM_TYPES_RAW_CMD_OUTPUT = "00 00 04 00 1d 00 00 00 00 00 00 80"
diff --git a/pldm/test_pldm_base.robot b/pldm/test_pldm_base.robot
index e1d3a0d..ffd1130 100644
--- a/pldm/test_pldm_base.robot
+++ b/pldm/test_pldm_base.robot
@@ -108,6 +108,32 @@
Should Contain ${pldm_output} pldmtool: Rx:
+Verify Verbose Flag For PLDM Raw Commands
+ [Documentation] Verify verbose flag for PLDM raw commands.
+ [Tags] Verify_Verbose_Flag_For_PLDM_Raw_Commands
+
+ # Example output format:
+ # pldmtool raw -d 0x80 0x00 0x04
+ # pldmtool: Tx: 80 00 04
+ # pldmtool: Rx: 00 00 04 00 1d 00 00 00 00 00 00 80
+
+ ${pldm_output}= Pldmtool ${PLDM_GET_PLDM_TYPES_RAW_CMD}
+ Should Contain ${pldm_output} ${PLDM_GET_PLDM_TYPES_RAW_CMD_OUTPUT}
+
+
+Verify Verbose Flag For PLDM Raw Commands With Verbose Flag
+ [Documentation] Verify verbose flag for PLDM raw commands with verbose flag,
+ [Tags] Verify_Verbose_Flag_For_PLDM_Raw_Commands_With_Verbose_Flag
+
+ # Example output format:
+ # pldmtool raw -d 0x80 0x00 0x04 -v
+ # pldmtool: Tx: 80 00 04
+ # pldmtool: Rx: 00 00 04 00 1d 00 00 00 00 00 00 80
+
+ ${pldm_output}= Pldmtool ${PLDM_GET_PLDM_TYPES_RAW_CMD} -v
+ Should Contain ${pldm_output} ${PLDM_GET_PLDM_TYPES_RAW_CMD_OUTPUT}
+
+
*** keywords ***
Verify GetPLDMCommands For PLDM Type