summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/testsdk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes-recipe/testsdk.bbclass')
-rw-r--r--meta/classes-recipe/testsdk.bbclass56
1 files changed, 0 insertions, 56 deletions
diff --git a/meta/classes-recipe/testsdk.bbclass b/meta/classes-recipe/testsdk.bbclass
deleted file mode 100644
index b1c4fa67e6..0000000000
--- a/meta/classes-recipe/testsdk.bbclass
+++ /dev/null
@@ -1,56 +0,0 @@
1# Copyright (C) 2013 - 2016 Intel Corporation
2#
3# SPDX-License-Identifier: MIT
4
5# testsdk.bbclass enables testing for SDK and Extensible SDK
6#
7# To run SDK tests, run the commands:
8# $ bitbake <image-name> -c populate_sdk
9# $ bitbake <image-name> -c testsdk
10#
11# To run eSDK tests, run the commands:
12# $ bitbake <image-name> -c populate_sdk_ext
13# $ bitbake <image-name> -c testsdkext
14#
15# where "<image-name>" is an image like core-image-sato.
16
17# List of test modules to run, or run all that can be found if unset
18TESTSDK_SUITES ?= ""
19
20TESTSDK_CLASS_NAME ?= "oeqa.sdk.testsdk.TestSDK"
21TESTSDKEXT_CLASS_NAME ?= "oeqa.sdkext.testsdk.TestSDKExt"
22TESTSDK_CASE_DIRS ?= "sdk"
23
24def import_and_run(name, d):
25 import importlib
26
27 class_name = d.getVar(name)
28 if class_name:
29 module, cls = class_name.rsplit('.', 1)
30 m = importlib.import_module(module)
31 c = getattr(m, cls)()
32 c.run(d)
33 else:
34 bb.warn('No tests were run because %s did not define a class' % name)
35
36import_and_run[vardepsexclude] = "DATETIME BB_ORIGENV"
37
38python do_testsdk() {
39 import_and_run('TESTSDK_CLASS_NAME', d)
40}
41addtask testsdk
42do_testsdk[nostamp] = "1"
43do_testsdk[network] = "1"
44
45python do_testsdkext() {
46 import_and_run('TESTSDKEXT_CLASS_NAME', d)
47}
48addtask testsdkext
49do_testsdkext[nostamp] = "1"
50do_testsdkext[network] = "1"
51
52python () {
53 if oe.types.boolean(d.getVar("TESTIMAGE_AUTO") or "False"):
54 bb.build.addtask("testsdk", None, "do_populate_sdk", d)
55 bb.build.addtask("testsdkext", None, "do_populate_sdk_ext", d)
56}