mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 18:53:13 +01:00
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>
22 lines
721 B
Python
22 lines
721 B
Python
# Copyright (C) 2016 Intel Corporation
|
|
# Released under the MIT license (see COPYING.MIT)
|
|
|
|
import os
|
|
from oeqa.sdk.context import OESDKTestContext, OESDKTestContextExecutor
|
|
|
|
class OESDKExtTestContext(OESDKTestContext):
|
|
esdk_files_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
|
|
|
|
class OESDKExtTestContextExecutor(OESDKTestContextExecutor):
|
|
_context_class = OESDKExtTestContext
|
|
|
|
name = 'esdk'
|
|
help = 'esdk test component'
|
|
description = 'executes esdk tests'
|
|
|
|
default_cases = [OESDKTestContextExecutor.default_cases[0],
|
|
os.path.join(os.path.abspath(os.path.dirname(__file__)), 'cases')]
|
|
default_test_data = None
|
|
|
|
_executor_class = OESDKExtTestContextExecutor
|