mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
meson: use coverage option
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
da6d48b969
commit
bf0e56a3ca
5 changed files with 6 additions and 42 deletions
|
@ -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``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue