Configuring Zephyr RTOS for Unit Testing with Separate Source and Test Directories

Hey guys, I’m looking to setting up a new application in Zephyr RTOS with integrated unit testing for my application sources. I understand that Zephyr includes the ztest framework and the sanitycheck test runner. My aim is to maintain a clear separation between the production code and the testing code using the following directory structure:
PROJECT_ROOT
|- src
|- test
PROJECT_ROOT
|- src
|- test
In this setup, the src folder will house the application source files, while the test folder will contain the unit tests, possibly compiled into multiple binaries. Could you advise on the best way to configure this setup using Zephyr’s tools, specifically west and sanitycheck? How can I ensure that the test application correctly locates and includes the application sources from the src directory?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server