I am looking to implement collection of code coverage data from running unit tests on target hardware. The project has been able to use the Unity test framework, and tests are built and run on the target using
app runProc AppName --exe=TestAppExe
Ideally I’d use gcov as the compiler is gcc. I have previously used lcov to use this and generate visual output. Perhaps someone has already done this??
- If a sandboxed application is writing files, where will they go and how can they be accessed?
- Is there a straightforward way to install gcov and lcov tools onto the target, or do they need to cross-compiled from source?
- Instead of running tests to get coverage on the target, is it easier to run them on the host, and if so, how can that be done (i.e. build and run a Legato application on a Linux build host)?
Many thanks for any help on this.