Ben,
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 %
Best,Jing
> Date: Wed, 15 May 2013 22:44:33 -0700
> From: b...@nicira.com
> To: ai_jing2...@hotmail.com
> CC: discuss@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.
                                          
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to