zephyr/scripts/schemas/twister/test-config-schema.yaml
Anas Nashif 14d88f8425 twister: add support for levels and test configuration
Add support test levels and the ability to assign a specific test to one
or more levels. Using command line options of twister it is then possible
to select a level and just execute the tests included in this level.

Additionally, a test configuration allows definiing level
dependencies and additional inclusion of tests into a specific level if
the test itself does not have this information already.

In the configuration file you can include complete components using
regular expressions and you can specify which test level to import from
the same file, making management of levels easier.

To help with testing outside of upstream CI infrastructure, additional
options are available in the configuration file, which can be hosted
locally. As of now, those options are available:

- Ability to ignore default platforms as defined in board definitions
  (Those are mostly emulation platforms used to run tests in upstream
  CI)
- Option to specify your own list of default platforms overriding what
  upstream defines.
- Ability to override build_onl_all options used in some testscases.
  This will treat tests or sample as any other just build for default
  platforms you specify in the configuation file or on the command line.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-03-07 15:49:16 +01:00

45 lines
921 B
YAML

#
# Schema to validate a YAML file describing a Zephyr test configuration.
#
type: map
mapping:
"platforms":
type: map
required: false
mapping:
"override_default_platforms":
type: bool
required: false
"increased_platform_scope":
type: bool
required: false
"default_platforms":
type: seq
required: false
sequence:
- type: str
"levels":
type: seq
required: false
sequence:
- type: map
required: false
mapping:
"name":
type: str
required: true
"description":
type: str
required: false
"adds":
type: seq
required: false
sequence:
- type: str
"inherits":
type: seq
required: false
sequence:
- type: str