PLDM: Automate below test scenarios for pldmtool oem specific commands

    Verify GetPLDMTypes For OEM
    Verify GetPLDMVersion For OEM
    Verify GetPLDMCommands For OEM
    Verify GetAlertStatus

Change-Id: I4802d8f94366e9e48644d7cbaf02daf0f9d35b93
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/pldm/test_pldm_base.robot b/pldm/test_pldm_base.robot
index 70929f4..0b6bbeb 100644
--- a/pldm/test_pldm_base.robot
+++ b/pldm/test_pldm_base.robot
@@ -18,7 +18,6 @@
     ${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
@@ -54,6 +53,16 @@
     ${pldm_output}=  Pldmtool  ${pldm_cmd}
     Valid Value  pldm_output['type_4(fru)']  ['${VERSION_FRU['STRING']}']
 
+
+Verify Get PLDM Version For OEM
+    [Documentation]  Verify supported PLDM version for oem-ibm type.
+    [Tags]  Verify_Get_PLDM_Version_For_OEM
+
+    ${pldm_cmd}=  Evaluate  $CMD_GETPLDMVERSION % 'oem-ibm'
+    ${pldm_output}=  Pldmtool  ${pldm_cmd}
+    Valid Value  pldm_output['type_63(oem-ibm)']  ['${VERSION_OEM['STRING']}']
+
+
 Verify GetTID
     [Documentation]  Verify GetTID (Terminus ID) response message.
     [Tags]  Verify_GetTID
@@ -77,6 +86,7 @@
     '2'            ${PLDM_PLATFORM_CMDS}
     '3'            ${PLDM_BIOS_CMDS}
     '4'            ${PLDM_FRU_CMDS}
+    '63'           ${PLDM_OEM_CMDS}
 
 *** keywords ***
 
@@ -85,8 +95,9 @@
     [Arguments]  ${pldm_type}  ${expected_pldm_cmds}
 
     # Description of argument(s):
-    # pldm_type             pldm type (e.g. '0', '2', '3', '4').
-    #                      '0' -> base, '2' -> platform, '3' -> 'bios', '4' -> 'fru'.
+    # pldm_type             pldm type (e.g. '0', '2', '3', '4', '63').
+    #                      '0' -> base, '2' -> platform, '3' -> 'bios', '4' -> 'fru'
+    #                      '63' -> oem-ibm.
     # expected_pldm_cmds    expected pldm commands for given pldm type.
 
     # Example output:
diff --git a/pldm/test_pldm_oem.robot b/pldm/test_pldm_oem.robot
new file mode 100644
index 0000000..005ed3d
--- /dev/null
+++ b/pldm/test_pldm_oem.robot
@@ -0,0 +1,23 @@
+*** Settings ***
+
+Documentation    Module to test PLDM oem 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 GetAlertStatus
+    [Documentation]  Verify get alert status descriptor response message.
+    [Tags]  Verify_GetAlertStatus
+
+    ${pldm_output}=  Pldmtool  oem-ibm GetAlertStatus -i 0
+    Rprint Vars  pldm_output
+    Valid Value  pldm_output['rack_entry']  ['0xff000030']
+    Valid Value  pldm_output['pri_cec_node']  ['0x00008030']
+