Unit Test Cross Compiling #556
-
Version: IC: Caelum-rc4+dev19, draco-rc3 make test & make lcov use .gcno files Target system: ARM Cortex 8 The following the steps ran successfully:
Subfolders within build contains *.gcno files Cross-compiling on an x86 Ubuntu system x86 system
*Subfolders within build did not contain .gcno files target system transfer the Makefile and build folders, rename build/cpu1 to build/native and execute
Any suggestions on how to generate .gcno files when cross-compiling? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The coverage flags get added here when not cross-compiling and on linux: To add coverage for other cases it may just be easiest to add those flags from whatever toolchain.cmake file you are using. for example in toolchain-cpu1.cmake just add:
|
Beta Was this translation helpful? Give feedback.
The coverage flags get added here when not cross-compiling and on linux:
https://github.com/nasa/osal/blob/6e6afb4d3ea611f5d11e4e94a5adee595cc08b99/src/bsp/generic-linux/build_options.cmake#L20-L23
To add coverage for other cases it may just be easiest to add those flags from whatever toolchain.cmake file you are using. for example in toolchain-cpu1.cmake just add: