Testing modm based software. Hosted application build. #1244
-
Hi all, i'm starting with modm and i build my appication for a stm32 target. To test and develop my software i want to run tests on my host. I thought of having my application in the default ext/app/ tree and along side a test_app using code from the application for tests. Is there a way to have lbuild generate a hosted variant of modm to stub most of the modm references? The rest of the hardware singals needed i want to simulate in the hosted enviroment. Is this the right approach? How could a project.xml look like for the tests? Thnaks Alex |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, modm defines several We have some examples for these hosted targets and we also run the unit tests in the CI using these targets (the specific target option is added via command line in the Makefile so we can support x86 and ARM64 using the same config file). There are also some mock ups of peripherals for the unit tests here. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I saw the tests but couldn't adapt it to my use. The examples are a great help. |
Beta Was this translation helpful? Give feedback.
Yes, modm defines several
hosted-{platform}
targets here.We have some examples for these hosted targets and we also run the unit tests in the CI using these targets (the specific target option is added via command line in the Makefile so we can support x86 and ARM64 using the same config file).
There are also some mock ups of peripherals for the unit tests here.