I am currently writing a generic telecommand and telemetry library which I plan to use on Zephyr RTOS.
Given an input CSV file, it generates some C++ code which can then easily be integrated in the rest of the project. Specifically, it generates a telecommand function and a telemetry function per defined subsystem. Each subsystem has a set of valid TM and TC data points, but those are known only at generation time.
How should I go about testing that the library can work? I am thinking about defining stub functions which could check that the correct telemetry is read and the correct telecommand is acted upon.
Are stub methods the usual testing methodology for embedded/IoT device testing? If not, what is the more common practice?