]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qtest/libqtest.c
libqtest: Add a generic function to run a callback function for every machine
authorThomas Huth <thuth@redhat.com>
Thu, 30 Mar 2017 07:50:06 +0000 (09:50 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 26 Apr 2017 13:42:31 +0000 (14:42 +0100)
commit02ef6e878f4c013889767ef239901962600de545
tree729c2017da62bbca1100cb763871ef4885a2beb6
parent6bb87be8938691fa5cf989b7517d7d2084b8c141
libqtest: Add a generic function to run a callback function for every machine

Some tests need to run single tests for every available machine of the
current QEMU binary. To avoid code duplication, let's extract this
code that deals with 'query-machines' into a separate function.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1490860207-8302-3-git-send-email-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tests/libqtest.c
tests/libqtest.h
tests/pc-cpu-test.c
tests/qom-test.c