提交 624ab0be 编写于 作者: D Daniel P. Berrange

Tell gcov to look in .libs to find coverage data

上级 12af0126
...@@ -148,16 +148,18 @@ EXTRA_DIST += parthelper.c ...@@ -148,16 +148,18 @@ EXTRA_DIST += parthelper.c
endif endif
cov: clean-cov cov: clean-cov
for i in $(CLIENT_SOURCES); do \ for i in $(CLIENT_SOURCES); do \
case $$i in *.c) ;; *) continue;; esac; \ case $$i in *.c) ;; *) continue;; esac; \
b=$$(basename $$i .c); \ b=$$(basename $$i .c); \
o_files=; \ o_files=; \
for i in '' _test; do \ for i in '' _test; do \
g="$(LV_LIBTOOL_OBJDIR)/libvirt$${i}_la-$$b.gcda"; \
o="$(LV_LIBTOOL_OBJDIR)/libvirt$${i}_la-$$b.o"; \ o="$(LV_LIBTOOL_OBJDIR)/libvirt$${i}_la-$$b.o"; \
test -f "$$o" \ test -f "$$o" -a -f "$$g" \
&& o_files="$$o_files $$o"; \ && o_files="$$o_files $$o"; \
done; \ done; \
gcov -b -f $$o_files > $$b.cov; \ test -n "$$o_files" \
&& gcov -o $(LV_LIBTOOL_OBJDIR) -b -f $$o_files > $$b.cov; \
done done
clean-cov: clean-cov:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册