platform-schema.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Schema to validate a YAML file describing a Zephyr test platform
  3. #
  4. # We load this with pykwalify
  5. # (http://pykwalify.readthedocs.io/en/unstable/validation-rules.html),
  6. # a YAML structure validator, to validate the YAML files that describe
  7. # Zephyr test platforms
  8. #
  9. # The original spec comes from Zephyr's twister script
  10. #
  11. type: map
  12. mapping:
  13. "identifier":
  14. type: str
  15. "name":
  16. type: str
  17. "type":
  18. type: str
  19. enum: ["mcu", "qemu", "sim", "unit", "native"]
  20. "simulation":
  21. type: str
  22. enum: ["qemu", "simics", "xt-sim", "renode", "nsim", "mdb-nsim", "tsim", "armfvp"]
  23. "arch":
  24. type: str
  25. "toolchain":
  26. type: seq
  27. seq:
  28. - type: str
  29. "env":
  30. type: seq
  31. seq:
  32. - type: str
  33. "ram":
  34. type: int
  35. "flash":
  36. type: int
  37. "twister":
  38. type: bool
  39. "supported":
  40. type: seq
  41. seq:
  42. - type: str
  43. "testing":
  44. type: map
  45. mapping:
  46. "default":
  47. type: bool
  48. "only_tags":
  49. type: seq
  50. seq:
  51. -
  52. type: str
  53. "ignore_tags":
  54. type: seq
  55. seq:
  56. - type: str