Added test cases for BMC core dump.

Testcases added:
    - Verify core dump size.

Resolves openbmc/openbmc-test-automation#920

Change-Id: I6ad832463ed3e52aa9f16a171e1db3dad2e5d98e
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/tests/test_bmc_dump.robot b/tests/test_bmc_dump.robot
index 7204d50..a8958ae 100644
--- a/tests/test_bmc_dump.robot
+++ b/tests/test_bmc_dump.robot
@@ -129,6 +129,21 @@
     Create User Initiated Dump
 
 
+Verify Core Dump Size
+    [Documentation]  Verify BMC core dump size is under 200k.
+    [Tags]  Verify_Core_Dump_Size
+
+    Delete All Dumps
+    Trigger Core Dump
+    Wait Until Keyword Succeeds  1 min  10 sec  Get Dump Entries
+
+    ${dump_entries}=  Get URL List  ${DUMP_ENTRY_URI}
+    ${dump_size}=  Read Attribute  ${dump_entries[0]}  Size
+
+    # Max size for dump is 200k = 200x1024
+    Should Be True  0 < ${dump_size} < 204800  msg=Size of dump is incorrect.
+
+
 Post Dump BMC Performance Test
     [Documentation]  Check performance of memory, CPU & file system of BMC.
     [Tags]  Post_Dump_BMC_Performance_Test
@@ -142,6 +157,7 @@
 
     Check For Core Dumps
 
+
 *** Keywords ***
 
 Test Teardown Execution