diff options
author | Marc-André Lureau | 2019-10-04 15:35:16 +0200 |
---|---|---|
committer | Paolo Bonzini | 2020-08-21 12:30:07 +0200 |
commit | bf0e56a3ca7b6ede730ec754a95aee7f95815735 (patch) | |
tree | a4ed01ce0197d11152eed4cbaf20441a37ca7102 /docs/devel | |
parent | meson: enable pie (diff) | |
download | qemu-bf0e56a3ca7b6ede730ec754a95aee7f95815735.tar.gz qemu-bf0e56a3ca7b6ede730ec754a95aee7f95815735.tar.xz qemu-bf0e56a3ca7b6ede730ec754a95aee7f95815735.zip |
meson: use coverage option
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/devel')
-rw-r--r-- | docs/devel/testing.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index c1ff24370b..a4264691be 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -164,13 +164,12 @@ instrumenting the tested code. To use it, configure QEMU with ``--enable-gcov`` option and build. Then run ``make check`` as usual. If you want to gather coverage information on a single test the ``make -clean-coverage`` target can be used to delete any existing coverage +clean-gcda`` target can be used to delete any existing coverage information before running a single test. You can generate a HTML coverage report by executing ``make -coverage-report`` which will create -./reports/coverage/coverage-report.html. If you want to create it -elsewhere simply execute ``make /foo/bar/baz/coverage-report.html``. +coverage-html`` which will create +``meson-logs/coveragereport/index.html``. Further analysis can be conducted by running the ``gcov`` command directly on the various .gcda output files. Please read the ``gcov`` |