summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
diff options
context:
space:
mode:
authorAníbal Limón <limon.anibal@gmail.com>2016-01-31 08:45:47 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 16:06:23 +0000
commit4cfdf174cee1c9e2c012d8c17d029477db5841e2 (patch)
tree3f4accfd1164b49291e0602c70503e26d0cff95a /meta/lib/oeqa/oetest.py
parent5580d7bd6250bd1494d72435738a9c9d70f5465c (diff)
downloadpoky-4cfdf174cee1c9e2c012d8c17d029477db5841e2.tar.gz
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>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-rw-r--r--meta/lib/oeqa/oetest.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 47ea3b259f..620617c4fb 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -19,6 +19,7 @@ except ImportError:
19import logging 19import logging
20 20
21import oeqa.runtime 21import oeqa.runtime
22import oeqa.sdkext
22from oeqa.utils.decorators import LogResults, gettag, getResults 23from oeqa.utils.decorators import LogResults, gettag, getResults
23 24
24logger = logging.getLogger("BitBake") 25logger = logging.getLogger("BitBake")
@@ -126,6 +127,9 @@ class oeSDKTest(oeTest):
126 def _run(self, cmd): 127 def _run(self, cmd):
127 return subprocess.check_output(". %s > /dev/null; %s;" % (self.tc.sdkenv, cmd), shell=True) 128 return subprocess.check_output(". %s > /dev/null; %s;" % (self.tc.sdkenv, cmd), shell=True)
128 129
130class oeSDKExtTest(oeSDKTest):
131 pass
132
129def getmodule(pos=2): 133def getmodule(pos=2):
130 # stack returns a list of tuples containg frame information 134 # stack returns a list of tuples containg frame information
131 # First element of the list the is current frame, caller is 1 135 # First element of the list the is current frame, caller is 1
@@ -400,7 +404,13 @@ class SDKTestContext(TestContext):
400 return [t for t in (self.d.getVar("TEST_SUITES_SDK", True) or \ 404 return [t for t in (self.d.getVar("TEST_SUITES_SDK", True) or \
401 "auto").split() if t != "auto"] 405 "auto").split() if t != "auto"]
402 406
403class SDKExtTestContext(TestContext): 407class SDKExtTestContext(SDKTestContext):
408 def __init__(self, d, sdktestdir, sdkenv):
409 super(SDKExtTestContext, self).__init__(d, sdktestdir, sdkenv)
410
411 self.sdkextfilesdir = os.path.join(os.path.dirname(os.path.abspath(
412 oeqa.sdkext.__file__)), "files")
413
404 def _get_test_namespace(self): 414 def _get_test_namespace(self):
405 return "sdkext" 415 return "sdkext"
406 416