Trying to use bullseye for code coverage, below is the requirement -
Requirement - Project is in linux - 1. compile project in the host system - It generates multiple shared libraries Say abc.so def.so and xyz.so
- compile test application to validate these generated libraries (test suite is a separate image )
- Copy all shared libraries and test application on a different target device.
- Now execute test application on target device to validate functionality of different shared libraries
Now requirement is to check how much coverage this "test application" is providing.
What has been tried out so far -
- Installed Bullseye on linux host machine (for compiling project) 1.a. Set my environment PATH = /BullseyecoveragePath/bin @ start of the path
- Project compilation make file is modified to use compiler which comes with Bullseye package, also using covc
CC = /BullseyecoveragePath/bin/covc /BullseyecoveragePath/bin/gcc-4.6 CXX = /BullseyecoveragePath/bin/covc /BullseyecoveragePath/bin/g++-4.6
- export COVFILE=/data/test.cov
- export COVDIR=/Project/src/base
cov01 --on
Project compiled successfully (showing bullseye banner while compilation) *after minor libcov32.a library tweaking
test.cov also gets generated after compilation is complete
Problem -
- Tried copying compiled libraries abc.so def.so and xyz.so and "test application" on the device 1.a. Copied test.cov --> /data of the target machine 1.b. export COVFILE=/data/test.cov
- Ran "test application" --> executed successfully
- Copied back test.cov to host machine to see the coverage. ??? But No change in test.cov file ???
Can someone help what am I missing or what needs to be done additionally here to make it work for -
- Shared libraires
- Between two different systems (Compiling on one and running on second)
Thanks