Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
52
sources/poky/meta/classes-recipe/testsdk.bbclass
Normal file
52
sources/poky/meta/classes-recipe/testsdk.bbclass
Normal file
@@ -0,0 +1,52 @@
|
||||
# Copyright (C) 2013 - 2016 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
# testsdk.bbclass enables testing for SDK and Extensible SDK
|
||||
#
|
||||
# To run SDK tests, run the commands:
|
||||
# $ bitbake <image-name> -c populate_sdk
|
||||
# $ bitbake <image-name> -c testsdk
|
||||
#
|
||||
# To run eSDK tests, run the commands:
|
||||
# $ bitbake <image-name> -c populate_sdk_ext
|
||||
# $ bitbake <image-name> -c testsdkext
|
||||
#
|
||||
# where "<image-name>" is an image like core-image-sato.
|
||||
|
||||
TESTSDK_CLASS_NAME ?= "oeqa.sdk.testsdk.TestSDK"
|
||||
TESTSDKEXT_CLASS_NAME ?= "oeqa.sdkext.testsdk.TestSDKExt"
|
||||
|
||||
def import_and_run(name, d):
|
||||
import importlib
|
||||
|
||||
class_name = d.getVar(name)
|
||||
if class_name:
|
||||
module, cls = class_name.rsplit('.', 1)
|
||||
m = importlib.import_module(module)
|
||||
c = getattr(m, cls)()
|
||||
c.run(d)
|
||||
else:
|
||||
bb.warn('No tests were run because %s did not define a class' % name)
|
||||
|
||||
import_and_run[vardepsexclude] = "DATETIME BB_ORIGENV"
|
||||
|
||||
python do_testsdk() {
|
||||
import_and_run('TESTSDK_CLASS_NAME', d)
|
||||
}
|
||||
addtask testsdk
|
||||
do_testsdk[nostamp] = "1"
|
||||
do_testsdk[network] = "1"
|
||||
|
||||
python do_testsdkext() {
|
||||
import_and_run('TESTSDKEXT_CLASS_NAME', d)
|
||||
}
|
||||
addtask testsdkext
|
||||
do_testsdkext[nostamp] = "1"
|
||||
do_testsdkext[network] = "1"
|
||||
|
||||
python () {
|
||||
if oe.types.boolean(d.getVar("TESTIMAGE_AUTO") or "False"):
|
||||
bb.build.addtask("testsdk", None, "do_populate_sdk", d)
|
||||
bb.build.addtask("testsdkext", None, "do_populate_sdk_ext", d)
|
||||
}
|
||||
Reference in New Issue
Block a user