Bullseye coverage for embedded systems - not a small footprint data file

1.3k views Asked by At

I'm fighting for few weeks with Bullseye run for EFI (EDK II) system. I finally linked everything, compiled the code and everything seems to work (I used Bullseye tutorial for embedded system and this topic: Bullseye for EDK Based Application).

I ran the tests and received symbols for Bullseye COV file. According to the second link:

The output data can be redirected to a file (using the > directive inside EDK2 shell) and then be processed by covpost to be merged into the cov file created in the build process.

I redirected this output to file, but when trying to merge into the COV file I get the message:

Copyright (c) Bullseye Testing Technology 1990-2014

Exception: be_test: not a small footprint data file

Some ideas?

Thanks.

3

There are 3 answers

0
Norbert Towiański On

I had a similar problem. The solution is very simple - you have to delete first and last line in .data file:
--- BullseyeCoverage begin file 'BullseyeCoverage.data-1', data begins next line --- <<<<----- delete it --- BullseyeCoverage end <<<<----- delete it

0
cam.b On

It seems that bullseye may throw this error due to nothing actually being under test. In my case, I had only written a mockup of the test, I had no actual "source" file that my test ran against. When I added some dummy logic to test, this error was resolved.

It would be worth checking that all your files are being compiled as you expect them to and you actually have something in your project's source that is being tested. Based on OP saying this is a new setup, there is a chance something similar occurred.

0
Christoph On

After removing header and footer now the covpost gives the following complaint Exception: unexpected end of input in BullseyeCoverage.data-1