Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Team, I have a customer with a TI-RTOS question using Tiva, looking at adding unit tests to their codebase. Much of their modules include some sort of sysbios include (<ti/sysbios/knl/Clock.h> and <ti/sysbios/knl/Semaphore.h> are fairly common). Because of this, The customer is having a lot of trouble building unit tests since all these includes heavily utilize xdc. Is there a recommended method for running unit tests on sysbios-enabled code?
"It only looks like I have a couple of options:
- Create new, fake headers / conditionally compile all xdc headers out of unit tests (lots of work)
- Target xdc tools for the host OS (x86 Linux, not even sure if this is possible)
We’re not actually trying to build sysbios for our host, instead we would need to stub/fake key functions where necessary. As far as I know, there isn’t anything that we can already leverage for unit testing, but I wanted to check and see if you’re aware of how other projects are handling this / if there’s a standard way of unit testing projects that utilize TI-RTOS."