qemu-cr16/tests
Steve Sistare e16d7a7321 tests/qtest: optimize qtest_get_machines
qtest_get_machines returns the machines supported by the QEMU binary
described by an environment variable and caches the result.  If the
next call to qtest_get_machines passes the same variable name, the cached
result is returned, but if the name changes, the caching is defeated.
To make caching more effective, remember the path of the QEMU binary
instead.  Different env vars, eg QTEST_QEMU_BINARY_SRC and
QTEST_QEMU_BINARY_DST, usually resolve to the same path.

Before the optimization, the test /x86_64/migration/precopy/unix/plain
exec's QEMU and calls query-machines 3 times.  After optimization, that
only happens once.  This does not significantly speed up the tests, but
it reduces QTEST_LOG output, and launches fewer QEMU instances, making
it easier to debug problems.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <87h5ymdzrf.fsf@pond.sub.org>
Link: https://lore.kernel.org/qemu-devel/1758290310-349623-1-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
2025-10-01 17:09:21 -03:00
..
bench tests/bench: Rename test_akcipher_keys.inc -> test_akcipher_keys.c.inc 2024-09-20 10:08:24 +03:00
data tests/data/vmstate-static-checker: Add dump files from QEMU 7.2.17 2025-09-24 08:26:11 +02:00
decode decodetree: Infer argument set before inferring format 2025-07-25 10:31:45 +01:00
docker tests/lcitool: enable rust & refresh 2025-09-30 19:33:25 +04:00
fp fpu: allow flushing of output denormals to be after rounding 2025-02-11 16:22:07 +00:00
functional aspeed queue: 2025-09-29 10:52:48 -07:00
guest-debug tests, scripts: Don't import print_function from __future__ 2025-09-16 17:31:53 +01:00
image-fuzzer
include meson: fix Windows build 2025-06-16 13:16:27 -04:00
keys
lcitool tests/lcitool: enable rust & refresh 2025-09-30 19:33:25 +04:00
migration-stress guestperf: Add test result data into report 2025-02-14 15:19:07 -03:00
multiboot
perf/block/qcow2
qapi-schema qapi: switch to use QEMU_TEST_REGENERATE env var 2025-09-16 13:31:40 -04:00
qemu-iotests iotests/check: always enable all python warnings 2025-09-15 14:36:02 -04:00
qtest tests/qtest: optimize qtest_get_machines 2025-10-01 17:09:21 -03:00
rocker
tcg tests/tcg/multiarch: Add tb-link test 2025-09-24 10:29:40 -07:00
tracetool tracetool-test: allow to run in parallel 2025-09-16 13:31:40 -04:00
tsan
uefi-test-tools uefi-test-tools:: Add LoongArch64 support 2025-06-01 06:38:53 -04:00
unit treewide: use qemu_set_blocking instead of g_unix_set_fd_nonblocking 2025-09-19 12:46:07 +01:00
vm tests/freebsd: enable Rust 2025-09-30 19:33:25 +04:00
dbus-vmstate-daemon.sh
Makefile.include tests: Fix "make check-functional" for targets without thorough tests 2025-09-24 08:26:11 +02:00
meson.build tracetool: add test suite for tracetool with reference output 2025-09-16 13:31:40 -04:00
test-qht-par.c
vhost-user-bridge.c