summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdkext/context.py
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-11-30 11:33:26 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:05:19 +0000
commit14eee4fdf844e70966124bd3b1677e79a76d16a2 (patch)
treee55456a86be40635948c39307dc97584ce9a77ff /meta/lib/oeqa/sdkext/context.py
parent55f05fab2b2b72b3e254ff02c1e294d53691a1fc (diff)
downloadpoky-14eee4fdf844e70966124bd3b1677e79a76d16a2.tar.gz
oeqa/sdkext: Adds case and context modules.
The extensible sdk context and case modules extends the sdk ones, this means that the tests from sdk are run also the sdkext tests. Enables support in context for use oe-test esdk command for run the test suites, the same options of sdk are required for run esdk tests. Removes old related to case and context inside oetest.py. [YOCTO #10599] (From OE-Core rev: 1f0bb99249744b87dd39227a4cf37f2341f5499c) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdkext/context.py')
-rw-r--r--meta/lib/oeqa/sdkext/context.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdkext/context.py b/meta/lib/oeqa/sdkext/context.py
new file mode 100644
index 0000000000..8dbcd807b4
--- /dev/null
+++ b/meta/lib/oeqa/sdkext/context.py
@@ -0,0 +1,21 @@
1# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT)
3
4import os
5from oeqa.sdk.context import OESDKTestContext, OESDKTestContextExecutor
6
7class OESDKExtTestContext(OESDKTestContext):
8 esdk_files_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
9
10class OESDKExtTestContextExecutor(OESDKTestContextExecutor):
11 _context_class = OESDKExtTestContext
12
13 name = 'esdk'
14 help = 'esdk test component'
15 description = 'executes esdk tests'
16
17 default_cases = [OESDKTestContextExecutor.default_cases[0],
18 os.path.join(os.path.abspath(os.path.dirname(__file__)), 'cases')]
19 default_test_data = None
20
21_executor_class = OESDKExtTestContextExecutor