~/talk

Zephyr Unit Tests and Emulators at Google

Talkat Zephyr Developer Summit 2022 · 2022-06-07..06-09· [testing]
links:none on file
slides:none on file

Chromium EC CI wires twister into Zephyr for incremental builds, parallel runs and nightly full-matrix tests, produces per-test HTML reports and supports test shuffling with a reproducible seed; unit tests use predicates, setup/teardown fixtures and four test flags (including _f for fixtures); Google adds fff mocks and explores assume/expect APIs to skip or defer failures; device emulation plugs into the bus using emul_dt_ins* so drivers run unchanged against emulated peripherals; posix-only rerun by test/suite exists.

AI-written summary · about

  1. 0:00Intro
  2. 0:13Save time with twister
  3. 2:25ZTEST_SUITE(...)
  4. 3:44When to use predicates?
  5. 4:32Modular design: tests
  6. 5:20Assert, Expect, & Assume
  7. 6:33Modularity
  8. 7:39Modular design: test rules
  9. 8:08Mocking (FFF)
  10. 9:04Emulating peripherals
  11. 9:33Enabling Zephyr emulators
  12. 10:48Defining an emulator
  13. 11:48Reliability of tests
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.