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

要求 - 项目在linux中 - 1.在主机系统中编译项目 - 它生成多个共享库说abc.so def.so和xyz.so

  1. compile test application to validate these generated libraries (test suite is a separate image )
  2. 编译测试应用程序来验证这些生成的库(测试套件是一个单独的图像)

  3. Copy all shared libraries and test application on a different target device.
  4. 在不同的目标设备上复制所有共享库和测试应用程序。

  5. Now execute test application on target device to validate functionality of different shared libraries
  6. 现在在目标设备上执行测试应用程序以验证不同共享库的功能

Now requirement is to check how much coverage this "test application" is providing.

现在要求检查这个“测试应用程序”提供的覆盖范围。

What has been tried out so far -

到目前为止已尝试过的 -

  1. Installed Bullseye on linux host machine (for compiling project) 1.a. Set my environment PATH = /BullseyecoveragePath/bin @ start of the path
  2. 在linux主机上安装Bullseye(用于编译项目)1.a。设置我的环境PATH = / BullseyecoveragePath / bin @开始路径

  3. Project compilation make file is modified to use compiler which comes with Bullseye package, also using covc
  4. 项目编译make文件被修改为使用Bullseye包附带的编译器,也使用covc

CC = /BullseyecoveragePath/bin/covc /BullseyecoveragePath/bin/gcc-4.6 CXX = /BullseyecoveragePath/bin/covc /BullseyecoveragePath/bin/g++-4.6

CC = / BullseyecoveragePath / bin / covc /BullseyecoveragePath/bin/gcc-4.6 CXX = / BullseyecoveragePath / bin / covc /BullseyecoveragePath/bin/g++-4.6

  1. export COVFILE=/data/test.cov
  2. export COVDIR=/Project/src/base
  3. cov01 --on

  4. Project compiled successfully (showing bullseye banner while compilation) *after minor libcov32.a library tweaking

    项目编译成功(在编译时显示靶心横幅)*在次要libcov32.a库调整之后

  5. test.cov also gets generated after compilation is complete

    编译完成后,test.cov也会生成

Problem -

  1. 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
  2. 试图在设备1.a上复制编译库abc.so def.so和xyz.so以及“test application”。复制test.cov - > /目标机器的数据1.b. export COVFILE = / data / test.cov

  3. Ran "test application" --> executed successfully
  4. 跑“测试应用程序” - >执行成功

  5. Copied back test.cov to host machine to see the coverage. ??? But No change in test.cov file ???
  6. 将test.cov复制回主机以查看覆盖范围。 ???但test.cov文件没有变化???

Can someone help what am I missing or what needs to be done additionally here to make it work for -

有人可以帮助我缺少什么或者需要做些什么才能使其工作 -

  1. Shared libraires
  2. Between two different systems (Compiling on one and running on second)
  3. 在两个不同的系统之间(在一个上编译,在第二个上运行)

Thanks

1 个解决方案

#1


1

It seems to me that you are doing the right steps, this is what should be necessary to generate the coverage report, according the the bullseye documentation - using shared libraries doesn't make much difference in the process.

在我看来,你正在做正确的步骤,这是生成覆盖率报告所必需的,根据靶心文档 - 使用共享库在过程中没有太大的区别。

There are some interesting things the documentation mentions which could be checked, for example:

文档中提到了一些可以检查的有趣内容,例如:

The coverage file size does not increase due to run-time activity.

由于运行时活动,覆盖文件大小不会增加。

So maybe it seems the covfile is the same size, but it actually contains the coverage information? You can try viewing it with the CoverageBrowser program.

也许似乎covfile的大小相同,但它实际上包含覆盖信息?您可以尝试使用CoverageBrowser程序查看它。

更多相关文章

  1. [求助][CAB][安装包][CF2.0][SQL][setup]1000分请教:如何将CF2.0
  2. 为什么我们应该将XMPP而不是JSON用于简单(仅文本)消息传递应用程序
  3. Android - 在一个应用程序中启动另外一个已经安装的应用程序或系
  4. Android混合应用程序:JQueryMobile ajax不支持https,但可以使用htt
  5. 第三部分:Android 应用程序接口指南---第二节:UI---第六章 对话框
  6. 如何将本机应用程序(android)与phonegap应用程序集成
  7. 为什么我的Android应用程序偶尔可以非常快地耗尽电池?
  8. 如何在android 5.0(L)中运行应用程序活动名称?
  9. Android应用程序启动过程上

随机推荐

  1. 是否可以将HTML元素固定到另一个的底部?
  2. ecshop如何实现鼠标滑过小图切换大图功能
  3. Jquery如何获取下一个控件的ID?
  4. Ajax技术--服务器返回数据格式(HTML,XML,J
  5. HTML5实现一个可编辑的模板页面
  6. 把html 文件放在cgi-bin下遇到问题
  7. 李宇春居然传闻是梁山好李逵的后裔!!(神
  8. 组合两个下拉菜单以确定提交按钮链接
  9. 【可移动的】模拟弹窗div层
  10. 如何为django模板中的标记创建动态id