mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-16 15:57:19 +00:00
oeqa runtime: add optee.py test
The test runs xtest test suite from optee-tests package. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
#
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
#
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
|
from oeqa.runtime.case import OERuntimeTestCase
|
||||||
|
from oeqa.runtime.decorator.package import OEHasPackage
|
||||||
|
from oeqa.core.decorator.oetimeout import OETimeout
|
||||||
|
|
||||||
|
class OpteeTestSuite(OERuntimeTestCase):
|
||||||
|
"""
|
||||||
|
Run OP-TEE tests (xtest).
|
||||||
|
"""
|
||||||
|
@OETimeout(800)
|
||||||
|
@OEHasPackage(['optee-test'])
|
||||||
|
def test_opteetest_xtest(self):
|
||||||
|
# clear storage before executing tests
|
||||||
|
cmd = "xtest --clear-storage || true"
|
||||||
|
status, output = self.target.run(cmd, timeout=60)
|
||||||
|
self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
|
||||||
|
cmd = "xtest"
|
||||||
|
status, output = self.target.run(cmd, timeout=600)
|
||||||
|
self.assertEqual(status, 0, msg='\n'.join([cmd, output]))
|
||||||
Reference in New Issue
Block a user