1

How to add Bullseye code coverage to code compiled with gcc?

See my answer below.

Michael Stahl
  • 208
  • 3
  • 9

1 Answers1

1

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

  1. Turn code coverage ON:

    cov01 -1

  2. 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

Viktor Wolf
  • 133
  • 1
  • 10
Michael Stahl
  • 208
  • 3
  • 9