zephyr/scripts/sanity_chk/platform-schema.yaml
Anas Nashif e8e367ada4 sanitycheck: support only_tags for boards
Support running/building only specific tags and ignoring everything
else.

Adding this to a platform yaml file will enable tests with one of of
tags listed to be executed on the platform.

This is useful for special platform configurations used for testing
specific features for example.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2020-07-20 17:44:16 -04:00

62 lines
1.1 KiB
YAML

#
# Schema to validate a YAML file describing a Zephyr test platform
#
# We load this with pykwalify
# (http://pykwalify.readthedocs.io/en/unstable/validation-rules.html),
# a YAML structure validator, to validate the YAML files that describe
# Zephyr test platforms
#
# The original spec comes from Zephyr's sanitycheck script
#
type: map
mapping:
"identifier":
type: str
"name":
type: str
"type":
type: str
enum: [ 'mcu', 'qemu', 'sim', 'unit', 'native']
"simulation":
type: str
enum: [ 'qemu', 'simics', 'xt-sim', 'renode', 'nsim', 'mdb']
"arch":
type: str
"toolchain":
type: seq
seq:
-
type: str
"env":
type: seq
seq:
-
type: str
"ram":
type: int
"flash":
type: int
"sanitycheck":
type: bool
"supported":
type: seq
seq:
-
type: str
"testing":
type: map
mapping:
"default":
type: bool
"only_tags":
type: seq
seq:
-
type: str
"ignore_tags":
type: seq
seq:
-
type: str