[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 15/23] Makefile.target: support per-target covera
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v1 15/23] Makefile.target: support per-target coverage reports |
Date: |
Thu, 9 May 2019 17:59:03 +0100 |
Add support for generating a single targets coverage report. Execute:
make coverage-report
In the target build directory. This coverage report only cares about
target specific blobs so only searches the target build subdirectory.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
Makefile.target | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Makefile.target b/Makefile.target
index ae02495951d..aa5d9d6ba66 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -238,3 +238,19 @@ endif
GENERATED_FILES += config-target.h
Makefile: $(GENERATED_FILES)
+
+# Reports/Analysis
+#
+# The target specific coverage report only cares about target specific
+# blobs and not the shared code.
+#
+
+%/coverage-report.html:
+ @mkdir -p $*
+ $(call quiet-command,\
+ gcovr -r $(SRC_PATH) --object-directory $(CURDIR) \
+ -p --html --html-details -o $@, \
+ "GEN", "coverage-report.html")
+
+.PHONY: coverage-report
+coverage-report: $(CURDIR)/reports/coverage/coverage-report.html
--
2.20.1
- [Qemu-devel] [PATCH v1 10/23] tests/tcg/multiarch: expand system memory test to cover more, (continued)
- [Qemu-devel] [PATCH v1 10/23] tests/tcg/multiarch: expand system memory test to cover more, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 17/23] tests/qemu-iotests/check: Pick a default machine if necessary, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 13/23] Makefile: fix coverage-report reference to BUILD_DIR, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 09/23] tests/tcg/minilib: support %c format char, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 11/23] tests/tcg/alpha: add system boot.S, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 07/23] tests/tcg/aarch64: add system boot.S, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 12/23] .travis.yml: enable aarch64-softmmu and alpha-softmmu tcg tests, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 19/23] cirrus / travis: Add gnu-sed and bash for macOS and FreeBSD, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 15/23] Makefile.target: support per-target coverage reports,
Alex Bennée <=
- [Qemu-devel] [PATCH v1 14/23] Makefile: include per-target build directories in coverage report, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 18/23] tests/qemu-iotests: Do not hard-code the path to bash, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 21/23] tests/qemu-iotests/group: Re-use the "auto" group for tests that can always run, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 16/23] tests/qemu-iotests/005: Add a sanity check for large sparse file support, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 23/23] tests: Run the iotests during "make check" again, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 20/23] tests/qemu-iotests: Remove the "_supported_os Linux" line from many tests, Alex Bennée, 2019/05/09
- [Qemu-devel] [PATCH v1 22/23] tests/qemu-iotests: re-format output to for make check-block, Alex Bennée, 2019/05/09