Discussion:
Coverage analysis on Windows
(too old to reply)
ManU
2006-09-06 14:04:37 UTC
Permalink
Hello,

I am looking for a windows tool which enables to display gcov (gcc
3.4.4) coverage results.
Would you know one ?

I have tried lcov, but it isn't ported for Windows ...

Thanks for your help !

Cheers,
ManU
---
Manuel Collado
2006-09-07 10:40:33 UTC
Permalink
Post by ManU
Hello,
I am looking for a windows tool which enables to display gcov (gcc
3.4.4) coverage results.
Would you know one ?
I have tried lcov, but it isn't ported for Windows ...
'lcov' is just a set of perl scripts. They can be executed in any
Windows system with a perl interpreter (I've just tested it).
Post by ManU
Thanks for your help !
You are welcome.
--
To reply by e-mail, please remove the extra dot
in the given address: m.collado -> mcollado
ManU
2006-09-07 13:23:03 UTC
Permalink
Hello,

Manuel Collado a écrit :

[ ... I am looking for a windows tool which enables to display gcov
(gcc 3.4.4) coverage results ... ]
Post by Manuel Collado
'lcov' is just a set of perl scripts. They can be executed in any
Windows system with a perl interpreter (I've just tested it).
lcov processes unix-style paths.
However, our version of gcc and gcov (gcc 3.4.4) encripts windows-style
paths into .obj, .gnco, .gda and .gcov files. Therefore, lcov does not
manage them correctly ...

lcov would need to be fully ported to windows ...

If you have knowledge of any port of lcov or any other tool, please let
me know ;o)

Cheers,
ManU
---
Manuel Collado
2006-09-08 11:29:41 UTC
Permalink
Post by ManU
Hello,
[ ... I am looking for a windows tool which enables to display gcov
(gcc 3.4.4) coverage results ... ]
Post by Manuel Collado
'lcov' is just a set of perl scripts. They can be executed in any
Windows system with a perl interpreter (I've just tested it).
lcov processes unix-style paths.
However, our version of gcc and gcov (gcc 3.4.4) encripts windows-style
paths into .obj, .gnco, .gda and .gcov files. Therefore, lcov does not
manage them correctly ...
It works on Cygwin. Cygwin is a Windows port of a large set of GNU
utilies. Includes a bash shell that provides a unix-like environment.
The perl interpreter (and any other utility) from Cygwin understand both
forward and backward slashes as path delimiters.
Post by ManU
lcov would need to be fully ported to windows ...
It works OK in my WinXP machine via Cygwin. I've just tested a minimal
example. Perhaps it needs more thoroughly test. Can you provide a sample
code that fails on your machine? I'm willing to test it in my machine.

BTW, which Windows port of gcc are you using? Cygwin? GNAT? MinGW?
Post by ManU
If you have knowledge of any port of lcov or any other tool, please let
me know ;o)
Sorry, no.
Post by ManU
Cheers,
ManU
--
To reply by e-mail, please remove the extra dot
in the given address: m.collado -> mcollado
Stephen Leake
2006-09-09 01:15:40 UTC
Permalink
Post by ManU
lcov processes unix-style paths.
However, our version of gcc and gcov (gcc 3.4.4) encripts windows-style
paths into .obj, .gnco, .gda and .gcov files. Therefore, lcov does not
manage them correctly ...
Get the Cygwin version of gcc; it does Unix paths. The GNAT in the
Cygwin distribution is a little broken, but it may work well enough
for you.
--
-- Stephe
Loading...