[CRIU] [PATCH] Fix paths to .gcda files

Sergey Bronnikov sergeyb at openvz.org
Fri Feb 26 01:28:44 PST 2016


After refactoring of build system we broke target for code coverage report
generation in the main Makefile. This patch fix it.

Signed-off-by: Sergey Bronnikov <sergeyb at openvz.org>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 99d40ee..c994f01 100644
--- a/Makefile
+++ b/Makefile
@@ -188,9 +188,9 @@ PHONY += cscope
 gcov:
 	$(E) " GCOV"
 	$(Q) test -d gcov || mkdir gcov && \
-	cp *.{gcno,c} test/`pwd`/ 	&& \
-	geninfo --output-filename gcov/crtools.h.info --no-recursion . && \
-	geninfo --output-filename gcov/crtools.ns.info --no-recursion test/`pwd`/ && \
+	cp criu/*.{gcno,c,h} test/`pwd`/criu/   && \
+	geninfo --output-filename gcov/crtools.h.info --no-recursion criu/ && \
+	geninfo --output-filename gcov/crtools.ns.info --no-recursion test/`pwd`/criu/ && \
 	sed -i 's#/test/`pwd`##' gcov/crtools.ns.info && \
 	cd gcov && \
 	lcov --rc lcov_branch_coverage=1 --add-tracefile crtools.h.info \
-- 
2.5.4 (Apple Git-61)


-- 
sergeyb@


More information about the CRIU mailing list