[ovs-discuss] How to get unit test coverage for OVS?

Jing Ai ai_jing2000 at hotmail.com
Tue May 21 21:12:56 UTC 2013

I just reverted your change http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commit;h=8faa5a21738f4d47c630c24a3bcf177eb34ce705 and found it worked when using lcov-1.10.
However, there are a couple of issues:
1) it runs very very slow (~4 hours to finish make check-lcov), is it normal?
2) a few test cases failed
## ------------- #### Test results. #### ------------- ##
ERROR: 1252 tests were run,46 failed unexpectedly.5 tests were skipped.
I here also attached the summary of coverage.

       Current view:top levelHitTotalCoverageTest:coverage.infoLines:407476049167.4 %Date:2013-05-21Functions:4494612573.4 %
> Date: Wed, 15 May 2013 22:44:33 -0700
> From: blp at nicira.com
> To: ai_jing2000 at hotmail.com
> CC: discuss at openvswitch.org
> Subject: Re: [ovs-discuss] How to get unit test coverage for OVS?
> On Wed, May 15, 2013 at 03:19:54AM +0000, Jing Ai wrote:
> > I've noticed the REAME.gcov provide a way to enable coverage (however,
> > some coverage integration support for lcov has been removed by Ben
> > last year). However, when I used lcov to analyze the generated .gcda
> > files, I always got either "reached unexpected end" or "out of memory"
> > error from geninfo. I am using gcc 4.6.3. Has anyone successfully got
> > the test coverage information for OVS 1.9? Thanks!  Best,Jing
> I removed the lcov integration because I couldn't get it to work
> anymore, so I'm not really surprised that you can't get it to work
> either.
> You might be able to use "check-valgrind" with the cachegrind tool, then
> cg_merge to merge the output files, then cg_annotate or kcachegrind to
> analyze the output.  I have not tried it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130521/f9002ef2/attachment.html>

More information about the discuss mailing list