Reputation: 248
How to add Bullseye code coverage to code compiled with gcc?
See my answer below.
Upvotes: 2
Views: 7071
Reputation: 248
Adding this to Stackoverflow since I could not find the answer anywhere and had to contact Bullseye support.
The answer is in this page (from Bullseye support):
http://www.bullseye.com/help/build-integration.html
The short version: (for Windows; assuming Bullseye is already installed):
Open a command shell
Turn code coverage ON:
cov01 -1
Write your compile command exactly as you would normally, but pass it as an argument to Bullseye covc.exe
program (in the bin folder of the Bullseye installed folder).
Example:
covc -i gcc main.c -o myProgram.exe
Upvotes: 2