Date
1 - 2 of 2
Testing with Zephyr
Johannes Hutter <johannes.5494@...>
Hello everyone,
I'd be interested in the way you all are testing your applications on top of Zephyr. It seems like the Zephyr testing framework based on the sanityscript is intended to test kernel components, but isn't a good fit for application testing. If "type: unit" is set in the testcase.yaml, the test seems to be even completely ignored by the script. Does anyone have experiences in the combination of other test frameworks like CUnit, CppUnit etc. and Zephyr? Thank you Johannes
|
|
Paul Sokolovsky
Hello Johannes,
On Wed, 18 Oct 2017 17:31:28 +0200 Johannes Hutter <johannes.5494@gmail.com> wrote: Hello everyone,Depends on requirements for the testing. Zephyr's ztest framework is of course first of all a unit testing framework, and "sanitycheck" is a runner for it, optimized to run across wide array of boards with different features. Otherwise, "kernel components" are pretty much just "components" accessed by APIs, and tests exercise these APIs - as they would for any other software system. If "type: unit" is set in theI can just give few examples. MicroPython Zephyr port https://github.com/micropython/micropython/tree/master/ports/zephyr runs tests in a way any other MicroPython ports - by establishing a REPL communication channel, and sending Python-level testcases and receiving replies over it. Zephyr.js https://github.com/01org/zephyr.js also runs tests in its own way, which is IIRC, building testcases one by one into firmware binary, flashing, running, repeating. So, I'd say the answer to your original question would be: "You can use any testing framework with Zephyr (which fits into codesize requirements). Also, there's the ztest test framework provided by Zephyr." [] -- Best Regards, Paul Linaro.org | Open source software for ARM SoCs Follow Linaro: http://www.facebook.com/pages/Linaro http://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
|
|