*** Settings ***
Documentation    Test RAS sanity scenarios.

Resource        ../../lib/openbmc_ffdc.robot
Resource        ../../lib/openbmc_ffdc_utils.robot
Resource        ../../lib/openbmc_ffdc_methods.robot
Resource        ../../lib/ras/host_utils.robot
Resource        ../../openpower/ras/ras_utils.robot
Library         ../../lib/utils.py
Variables       ../../lib/ras/variables.py
Variables       ../../data/variables.py

Suite Setup      Redfish Power On
Test Setup       Printn
Test Teardown    FFDC On Test Case Fail


*** Variables ***
${proc_chip_id}    0

# mention count to read system memory.
${count}           128

*** Test Cases ***

Test BMC Getscom
    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  MCACALIFIR_RECV1
    Pdbg  -p${proc_chip_id} getscom 0x${value[0]}

Test BMC Getcfam
    Pdbg  -p${proc_chip_id} getcfam 0x${cfam_address}

Test BMC Getmem
    Pdbg  -p${proc_chip_id} getmem 0x${mem_address} ${count}

*** Settings ***
Documentation    Test RAS sanity scenarios.

Resource        ../../lib/openbmc_ffdc.robot
Resource        ../../lib/openbmc_ffdc_utils.robot
Resource        ../../lib/openbmc_ffdc_methods.robot
Resource        ../../lib/ras/host_utils.robot
Resource        ../../openpower/ras/ras_utils.robot
Library         ../../lib/utils.py
Variables       ../../lib/ras/variables.py
Variables       ../../data/variables.py

Suite Setup      Redfish Power On
Test Setup       Printn
Test Teardown    FFDC On Test Case Fail


*** Variables ***
${proc_chip_id}    0

# mention count to read system memory.
${count}           128

*** Test Cases ***

Test BMC Getscom
    [Documentation]  Do getscom operation.
    [Tags]  Test_BMC_Getscom
    ${value}=  Get From Dictionary  ${ERROR_INJECT_DICT}  MCACALIFIR_RECV1
    Pdbg  -p${proc_chip_id} getscom 0x${value[0]}

Test BMC Getcfam
    [Documentation]  Do getcfam operation.
    [Tags]  Test_BMC_Getcfam
    Pdbg  -p${proc_chip_id} getcfam 0x${cfam_address}

Test BMC Getmem
    [Documentation]  Do getmem operation.
    [Tags]  Test_BMC_Getmem
    Pdbg  -p${proc_chip_id} getmem 0x${mem_address} ${count}

Update test documentation and tags as per guidelines
Update test documentation and tags as per guidelines

Change-Id: I49be13b4bace0cd4bd4964cc73fb7ed9135e89b7
Signed-off-by: George Keishing <bef0a9ecac45fb57611777c8270153994e13fd2e@in.ibm.com>

openbmc/openbmc-test-automation,openbmc/openbmc-test-automation