2017-07-25 01:24:35 +08:00
|
|
|
#
|
|
|
|
# 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
|
2017-12-21 21:14:19 +08:00
|
|
|
enum: [ 'mcu', 'qemu', 'sim', 'unit', 'native']
|
2017-07-25 01:24:35 +08:00
|
|
|
"arch":
|
|
|
|
type: str
|
|
|
|
"toolchain":
|
|
|
|
type: seq
|
|
|
|
seq:
|
|
|
|
-
|
|
|
|
type: str
|
2017-12-21 21:14:19 +08:00
|
|
|
enum: [ 'gccarmemb', 'issm', 'xcc', 'zephyr', 'espressif', 'host']
|
2017-07-25 01:24:35 +08:00
|
|
|
"ram":
|
|
|
|
type: int
|
|
|
|
"flash":
|
|
|
|
type: int
|
|
|
|
"supported":
|
|
|
|
type: seq
|
|
|
|
seq:
|
|
|
|
-
|
|
|
|
type: str
|
|
|
|
"testing":
|
|
|
|
type: map
|
|
|
|
mapping:
|
|
|
|
"default":
|
|
|
|
type: bool
|
|
|
|
"ignore_tags":
|
|
|
|
type: seq
|
|
|
|
seq:
|
|
|
|
-
|
|
|
|
type: str
|