ipmi: add test for FRU device name

Added basic test for FRU device name. It executes basic FRU command
and search in result for given device name (passed as command line
parameter FRU_NAME:'Device Name'). Test pass if device found.

Test: Verified this on target.
robot -v OPENBMC_HOST:73.11.197.245 -v FRU_NAME:S7106GM2NR
ipmi/test_ipmi_fru_device.robot

Signed-off-by: Vijay Khemka <vijaykhemkalinux@gmail.com>
Change-Id: I6bc8b46bf3f5addf5f713a5b4402b3557321fafe
diff --git a/ipmi/test_ipmi_fru_device.robot b/ipmi/test_ipmi_fru_device.robot
new file mode 100644
index 0000000..53347e9
--- /dev/null
+++ b/ipmi/test_ipmi_fru_device.robot
@@ -0,0 +1,17 @@
+*** Settings ***
+Documentation  Test IPMI FRU data.
+
+Resource               ../lib/ipmi_client.robot
+
+*** Variables ***
+
+${FRU_NAME}       dimm01 dimm02 cpu0 cpu1  motherboard
+
+*** Test Cases ***
+
+Test FRU Device Name
+    [Documentation]  Search FRU for device name
+    [Tags]  Test_FRU_Device_Name
+
+    ${output}=  Run External IPMI Standard Command  fru
+    Should Contain  ${output}  ${FRU_NAME}  msg=Fail: Given FRU device ${FRU_NAME} not found