mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
testsdkext: Add skeleton for support Extensible SDK tests.
oeqa/sdkext: Add module and __init__.py will contain eSDK tests.
classes/testsdk: Add support for run eSDK tests.
oeqa/oetest: Create oeSDKExtTest for now only inherit oeSDKTest,
modified SDKExtTestContext now inherit SDKTestContext
and set sdkext filesdir for store data fixtures.
(From OE-Core rev: f3781544a5c077610498a6b7dc5244ee4c5bc6df)
Signed-off-by: Aníbal Limón <limon.anibal@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5580d7bd62
commit
4cfdf174ce
@@ -19,6 +19,7 @@ except ImportError:
|
||||
import logging
|
||||
|
||||
import oeqa.runtime
|
||||
import oeqa.sdkext
|
||||
from oeqa.utils.decorators import LogResults, gettag, getResults
|
||||
|
||||
logger = logging.getLogger("BitBake")
|
||||
@@ -126,6 +127,9 @@ class oeSDKTest(oeTest):
|
||||
def _run(self, cmd):
|
||||
return subprocess.check_output(". %s > /dev/null; %s;" % (self.tc.sdkenv, cmd), shell=True)
|
||||
|
||||
class oeSDKExtTest(oeSDKTest):
|
||||
pass
|
||||
|
||||
def getmodule(pos=2):
|
||||
# stack returns a list of tuples containg frame information
|
||||
# First element of the list the is current frame, caller is 1
|
||||
@@ -400,7 +404,13 @@ class SDKTestContext(TestContext):
|
||||
return [t for t in (self.d.getVar("TEST_SUITES_SDK", True) or \
|
||||
"auto").split() if t != "auto"]
|
||||
|
||||
class SDKExtTestContext(TestContext):
|
||||
class SDKExtTestContext(SDKTestContext):
|
||||
def __init__(self, d, sdktestdir, sdkenv):
|
||||
super(SDKExtTestContext, self).__init__(d, sdktestdir, sdkenv)
|
||||
|
||||
self.sdkextfilesdir = os.path.join(os.path.dirname(os.path.abspath(
|
||||
oeqa.sdkext.__file__)), "files")
|
||||
|
||||
def _get_test_namespace(self):
|
||||
return "sdkext"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user