New test_openbmctool.robot to test openbmctool.py functions
Change-Id: I4e8248095147af6e91ebc2916e33764b113a7c62
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/tests_openbmctool/test_openbmctool.robot b/tests_openbmctool/test_openbmctool.robot
new file mode 100644
index 0000000..07ca858
--- /dev/null
+++ b/tests_openbmctool/test_openbmctool.robot
@@ -0,0 +1,23 @@
+*** Settings ***
+Documentation Verify openbmctool.py functionality.
+
+Library ../lib/gen_print.py
+Library ../lib/gen_robot_print.py
+Library ../lib/openbmctool_utils.py
+
+*** Variables ***
+
+${min_num_sensors} ${30}
+
+*** Test Cases ***
+
+Verify FRU Status
+ [Documentation] Verify that the fru status command works.
+ [Tags] Verify_FRU_Status
+
+ Rprintn
+ ${rc} ${output}= Openbmctool Execute Command fru status | egrep -v '^$|^Component' | wc -l
+ ${num_sensors}= Convert to Integer ${output}
+ Rprint Vars num_sensors
+ Should Be True ${num_sensors} >= ${min_num_sensors}
+ ... msg=There should be at least ${min_num_sensors} sensors.