Question about testing target


Carles Cufi
 

Hi Dave,

 

The ztest framework is platform agnostic, so you can use it to build a Zephy image that then runs on Qemu, native_posix or on target hardware.

There is also a Unit Testing framework (part of ztest if I am not mistaken), which includes a special board, that is designed for unit tests where you do not build a whole Zephyr image and thus need mocking.

 

The documentation is indeed sparse in this subject. Pull Requests are welcome in order to improve it.

 

Carles

 

From: users@... <users@...> On Behalf Of Dave Nadler via lists.zephyrproject.org
Sent: 25 August 2022 16:22
To: Zephyr Users <users@...>
Subject: [Zephyr-users] Question about testing target

 

Sorry if this is a newbies question...

Backround:
We normally do most development, testing, and regression testing on PC, not target.
This is efficient given most of our issues are logic and not target related.
Our testing typically includes both unit tests and scripted stimulus-response
for the complete system with mocked low-level components.

Zephyr?
I read: https://docs.zephyrproject.org/latest/develop/test/ztest.html
I'm confused as to which platform tests are expected to run on.
Host? Target? Both?
I expected this to be explained at the beginning of the above article?

Thanks in advance for any clarification,
Best Regards, Dave

-- 
Dave Nadler, USA East Coast voice (978) 263-0097, drn@..., Skype 
 Dave.Nadler1


Dave Nadler
 

Sorry if this is a newbies question...

Backround:
We normally do most development, testing, and regression testing on PC, not target.
This is efficient given most of our issues are logic and not target related.
Our testing typically includes both unit tests and scripted stimulus-response
for the complete system with mocked low-level components.

Zephyr?
I read: https://docs.zephyrproject.org/latest/develop/test/ztest.html
I'm confused as to which platform tests are expected to run on.
Host? Target? Both?
I expected this to be explained at the beginning of the above article?

Thanks in advance for any clarification,
Best Regards, Dave

-- 
Dave Nadler, USA East Coast voice (978) 263-0097, drn@..., Skype 
 Dave.Nadler1