The test coverage is exceptionally low.

Is this only accounting the coverage of the last executed test?

On Tue, 9 Sep 2008, Victor Kirkebo wrote:

Hi,
I've attached a new version of this patch that excludes printing of coverage on non-source-tree files.
The printout looks like this:

with gcov:
File `assoc.c' Lines executed:1.66% of 181
File `items.c' Lines executed:2.82% of 248
File `memcached.c' Lines executed:9.40% of 1554
File `slabs.c' Lines executed:14.84% of 128
File `stats.c' Lines executed:2.60% of 77

with tcov:
assoc.c : 1.02 Percent of the file executed
items.c : 2.39 Percent of the file executed
memcached.c : 8.15 Percent of the file executed
slabs.c : 15.65 Percent of the file executed
stats.c : 1.72 Percent of the file executed

-Victor

dormando wrote:
Hey,

Think this could be modified to not spit coverage on files not in the
source tree?

File '/usr/include/gentoo-multilib/amd64/sys/stat.h'
Lines executed:0.00% of 1
/usr/include/gentoo-multilib/amd64/sys/stat.h:creating 'stat.h.gcov'

File '/usr/include/gentoo-multilib/amd64/stdlib.h'
Lines executed:27.27% of 11
/usr/include/gentoo-multilib/amd64/stdlib.h:creating 'stdlib.h.gcov'

File 'slabs.c'
Lines executed:16.39% of 122
slabs.c:creating 'slabs.c.gcov'

File '/usr/include/gentoo-multilib/amd64/stdlib.h'
Lines executed:0.00% of 3
/usr/include/gentoo-multilib/amd64/stdlib.h:creating 'stdlib.h.gcov'

Anyone else have comments?
-Dormando

On Thu, 4 Sep 2008, Victor Kirkebo wrote:


This patch adds test coverage to the 'make test' target.
gcov is used for gcc and tcov is used for Sun studio compiler.

Victor




--
Victor Kirkebo
Database Technology Group
TRO01, x43408/(+47)73842108


Reply via email to