improving lcov reports



hi,

I just looked at this coverage report:
http://build.gnome.org:8080/coverage/libxml2/lcov/

imho lcov has a bug to include other sources/include in the report, but I've got
a workaround from the lcov developers

I wonder if and where we can use this for build.gnome.org
here is how I filter the lcov output (lcov --extract)

coverage::
	mkdir -p ./coverage
	lcov --directory . --zerocounters
	-$(MAKE) check
	lcov --directory ./src --capture --output-file ./coverage/$(PACKAGE)_tmp.info
	lcov --extract ./coverage/$(PACKAGE)_tmp.info "$(PWD)/src*" -o
./coverage/$(PACKAGE).info
	$(RM) ./coverage/$(PACKAGE)_tmp.info
	genhtml -o ./coverage --num-spaces 2 ./coverage/$(PACKAGE).info

I need to check if $(PWD) works in all cases. I can't use $(top_srcdir) as this
is relative.

Stefan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]