DMTF tool reference checker
Change-Id: I20b104cfff5983921c65b2a615d8f92d19575722
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/redfish/dmtf_tools/Redfish_Reference_Checker.robot b/redfish/dmtf_tools/Redfish_Reference_Checker.robot
new file mode 100644
index 0000000..5421930
--- /dev/null
+++ b/redfish/dmtf_tools/Redfish_Reference_Checker.robot
@@ -0,0 +1,39 @@
+*** Settings ***
+Documentation Test BMC using https://github.com/DMTF/Redfish-Reference-Checker
+... DMTF tool.
+
+Library OperatingSystem
+Resource ../../lib/dmtf_tools_utils.robot
+Resource ../../lib/openbmc_ffdc.robot
+
+Test Setup Test Setup Execution
+
+*** Variables ***
+
+${DEFAULT_PYTHON} python3
+
+${rsv_github_url} https://github.com/DMTF/Redfish-Reference-Checker.git
+${rsv_dir_path} Redfish-Reference-Checker
+
+${command_string} ${DEFAULT_PYTHON} ${rsv_dir_path}${/}RedfishReferenceTool.py
+... --nochkcert 'https://${OPENBMC_HOST}:443/redfish/v1/$metadata'
+
+*** Test Case ***
+
+Test BMC Redfish Reference
+ [Documentation] Checks for valid reference URLs in CSDL XML files.
+ [Tags] Test_BMC_Redfish_Reference
+
+ ${output}= Run DMTF Tool ${rsv_dir_path} ${command_string}
+
+ # Work complete, total failures: 0
+ Should Match Regexp ${output} Work complete, total failures:[ ]+0
+
+*** Keywords ***
+
+Test Setup Execution
+ [Documentation] Do test case setup tasks.
+
+ Printn
+ Download DMTF Tool ${rsv_dir_path} ${rsv_github_url}
+