[Skiboot] [op-test-framework 2/2] Add dropbear test to opal-fvt framework
Joel Stanley
joel at jms.id.au
Fri Jun 24 16:49:09 AEST 2016
Signed-off-by: Joel Stanley <joel at jms.id.au>
---
bvt/op-opal-fvt.xml | 7 +++++++
ci/source/op_opal_fvt.py | 11 +++++++++++
ci/source/test_opal_fvt.py | 3 +++
3 files changed, 21 insertions(+)
diff --git a/bvt/op-opal-fvt.xml b/bvt/op-opal-fvt.xml
index 9f650da06a4f..469da360227f 100755
--- a/bvt/op-opal-fvt.xml
+++ b/bvt/op-opal-fvt.xml
@@ -200,5 +200,12 @@
</testcase>
</test>
+ <test>
+ <testcase>
+ <cmd>op-ci-bmc-run "op_opal_fvt.test_dropbear_safety()"</cmd>
+ <exitonerror>no</exitonerror>
+ </testcase>
+ </test>
+
</platform>
</integrationtest>
diff --git a/ci/source/op_opal_fvt.py b/ci/source/op_opal_fvt.py
index b6752d671c20..9a1cf9545f01 100755
--- a/ci/source/op_opal_fvt.py
+++ b/ci/source/op_opal_fvt.py
@@ -60,6 +60,7 @@ from testcases.OpTestIPMIPowerControl import OpTestIPMIPowerControl
from testcases.OpTestInbandUsbInterface import OpTestInbandUsbInterface
from testcases.OpTestOOBIPMI import OpTestOOBIPMI
from testcases.OpTestSystemBootSequence import OpTestSystemBootSequence
+from testcases.OpTestDropbearSafety import OpTestDropbearSafety
def _config_read():
@@ -186,6 +187,9 @@ opTestSystemBootSequence = OpTestSystemBootSequence(bmcCfg['ip'], bmcCfg['userna
testCfg['ffdcdir'], hostCfg['hostip'],
hostCfg['hostuser'], hostCfg['hostpasswd'])
+opTestDropbearSafety = OpTestDropbearSafety(bmcCfg['ip'],
+ bmcCfg['usernameipmi'],
+ bmcCfg['passwordipmi'])
def test_init():
"""This function validates the test config before running other functions
@@ -369,3 +373,10 @@ def test_fan_control_disable_functionality():
returns: int 0-success, raises exception-error
"""
return opTestOOBIPMI.test_fan_control_algorithm_1()
+
+def test_dropbear_safety():
+ """This function tests for Dropbear. They are very dangerous and may attack
+ at any time. We must deal with them.
+ returns: int 0-success, raises exception-error
+ """
+ return opTestDropbearSafety.test_dropbear_running()
diff --git a/ci/source/test_opal_fvt.py b/ci/source/test_opal_fvt.py
index e9bfdcf14eec..5973e89c99a9 100755
--- a/ci/source/test_opal_fvt.py
+++ b/ci/source/test_opal_fvt.py
@@ -127,3 +127,6 @@ def test_fan_control_enable_functionality():
def test_fan_control_disable_functionality():
assert op_opal_fvt.test_fan_control_disable_functionality() == 0
+
+def test_dropbear_safety():
+ assert op_opal_fvt.test_dropbear_safety() == 0
--
2.8.1
More information about the Skiboot
mailing list