[Ltp-coverage] lcov for Samba4, relitative names

Andrew Bartlett abartlet at samba.org
Fri Mar 2 11:40:17 GMT 2007


On Wed, 2005-09-07 at 18:43 +0200, Peter Oberparleiter wrote:
>  > Andrew Bartlett wrote:
> >> I'm thinking we might just need a --base-dir option, or some such.
> 
> I've added a new option '--base-directory' to the CVS version of both 
> lcov and geninfo. It can be used to specify the base directory when 
> capturing code coverage data (the directory should be the same as the 
> current working directory of gcc during compilation). The new code 
> should be available via anynomous CVS in a couple of hours (see 
> http://sourceforge.net/cvs/?group_id=3382 / module name is 'utils').
> 
> I've tested this version with SAMBA_4_0 by adding 
> '--base-directory=${builddir}' to the modified torture/config.mk file. 
> It works up to the point where generated source code files are 
> referenced (lexx.yy.c, etc.). You may need to adjust the build process 
> not to change those files or not to use the GCOV flags on them.

Yeah, these are causing us fun still.  Is there any chance of having a
'--ignore-missing-source' option?

Also, for another project (heimdal), it uses libtool (boo, hiss), which
means that the .o file ends up in .libs, but with no relative path
included.  Could you look in ../ for the source in that case?

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20070302/90568c9c/attachment.bin


More information about the samba-technical mailing list