]> git.proxmox.com Git - mirror_qemu.git/commit
iotests: allow Valgrind checking all QEMU processes
authorAndrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Wed, 4 Sep 2019 09:11:19 +0000 (12:11 +0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 13 Sep 2019 10:18:37 +0000 (12:18 +0200)
commit036d8cbffd7785052d511f5cc83b969f0e827be1
treeee9578ec71d77d0ed03b377e4bddb9535f22347e
parentd2c6becbe03e0f4121ce9128e5c84714a51308da
iotests: allow Valgrind checking all QEMU processes

With the '-valgrind' option, let all the QEMU processes be run under
the Valgrind tool. The Valgrind own parameters may be set with its
environment variable VALGRIND_OPTS, e.g.
$ VALGRIND_OPTS="--leak-check=yes" ./check -valgrind <test#>
or they may be listed in the Valgrind checked file ./.valgrindrc or
~/.valgrindrc like
--memcheck:leak-check=no
--memcheck:track-origins=yes
To exclude a specific process from running under the Valgrind, the
corresponding environment variable VALGRIND_QEMU_<name> is to be set
to the empty string:
$ VALGRIND_QEMU_IO= ./check -valgrind <test#>
When QEMU-IO process is being killed, the shell report refers to the
text of the command in _qemu_io_wrapper(), which was modified with this
patch. So, the benchmark output for the tests 039, 061 and 137 is to be
changed also.

Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/039.out
tests/qemu-iotests/061.out
tests/qemu-iotests/137.out
tests/qemu-iotests/common.rc