mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-05 05:04:44 +02:00

Simplify how tests are specified and discovered for different SDK configurations to allow per-layer customization. * Introduce `TESTSDK_CASE_DIRS` variable to specify test directory types, replacing the need to modify the default_cases class member * Discover tests from configured layers using a common discovery pattern (`<LAYER_DIR>/lib/oeqa/<dirname>/cases`) where `<dirname>` is specified in `TESTSDK_CASE_DIRS` * The buildtools directories were renamed to follow the common discovery pattern (`<LAYER_DIR>/lib/oeqa/<dirname>/cases`) for consistency across all SDK configurations. meta/lib/oeqa/ ├── sdk/cases/ # Standard SDK: dirname="sdk" ├── buildtools/cases/ # Buildtools: dirname="buildtools" └── buildtools-docs/cases/ # Buildtools-docs: dirname="buildtools-docs" meta-mingw/lib/oeqa/ └── sdkmingw/cases/ # MinGW: dirname="sdkmingw" meta-foo/lib/oeqa/ └── sdk/cases/ # Standard SDK: dirname="sdk" Tested by: 1. Adding new tests using the default discovery pattern `<LAYER_DIR>/lib/oeqa/sdk/cases` and verifying they are discovered and executed. 2. Verifying existing SDK configuration tests work (requires -c populate_sdk first): * Standard SDK: `bitbake core-image-minimal -c testsdk` * Buildtools tarball: `bitbake buildtools-tarball -c testsdk` * Buildtools docs tarball: `bitbake buildtools-docs-tarball -c testsdk` * Mingw SDK: (SDKMACHINE = "x86_64-mingw32") `bitbake core-image-minimal -c testsdk` (From OE-Core rev: bde94c128c0b4e7e1ebea40f582b4dd6dcc965ff) Signed-off-by: Thune Tran <thune.a.tran@boeing.com> Signed-off-by: Chuck Wolber <chuck.wolber@boeing.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
796 B
BlitzBasic
22 lines
796 B
BlitzBasic
require recipes-core/meta/buildtools-tarball.bb
|
|
|
|
DESCRIPTION = "SDK type target for building a standalone tarball containing the tools needed to build the project docs."
|
|
SUMMARY = "SDK type target for building a standalone tarball containing the tools needed to build the project docs."
|
|
LICENSE = "MIT"
|
|
|
|
# Add nativesdk equivalent of build-essentials
|
|
TOOLCHAIN_HOST_TASK += "\
|
|
nativesdk-python3-sphinx \
|
|
nativesdk-python3-sphinx-argparse \
|
|
nativesdk-python3-sphinx-copybutton \
|
|
nativesdk-python3-sphinx-rtd-theme \
|
|
nativesdk-python3-pyyaml \
|
|
nativesdk-rsvg \
|
|
"
|
|
|
|
TOOLCHAIN_OUTPUTNAME = "${SDK_ARCH}-buildtools-docs-nativesdk-standalone-${DISTRO_VERSION}"
|
|
|
|
SDK_TITLE = "Docs Build tools tarball"
|
|
|
|
# Directory that contains testcases
|
|
TESTSDK_CASE_DIRS = "buildtools-docs" |