Streamlining Testing with Generic Tests and Emulators - Tristan Honscheid, Google

  Рет қаралды 117

The Zephyr Project

The Zephyr Project

Күн бұрын

The Zephyr® Project strives to deliver the best-in-class RTOS for connected resource-constrained devices, built to be secure and safe. Click here to learn more: www.zephyrproj...
Streamlining Testing with Generic Tests and Emulators - Tristan Honscheid, Google
Validating our codebase with a robust set of tests is crucial to building a high-quality and reliable RTOS, and growing our test coverage continues to be a significant effort for the Zephyr Project. Generic tests, coupled with peripheral emulators implementing a special backend API, provide a mechanism for accelerating driver test development, while also reducing code duplication and building off the existing test and emulation framework. Current practice for testing a Zephyr driver is to develop an emulator that mimics the behavior of the targeted peripheral. A basic pattern is for test code to load expected values into the emulator, read them back through the driver, and compare values. By using a standardized backend emulator API, test code can stimulate emulators and validate driver behavior in a generic way. This process makes it possible to build a “generic test” where a singular test covers significant portions of drivers across a whole class of devices without needing to know the specifics of each device. This talk will cover the implementation of this concept for sensor drivers and how developers can leverage it to rapidly add tests to their own drivers.

Пікірлер
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 59 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 50 МЛН
Microservices with Kafka: ECommerce Example (.NET 8)
34:51
Code Overdose
Рет қаралды 4,5 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 268 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26