diff options
| author | Steve Sistare <steven.sistare@oracle.com> | 2025-10-01 08:34:02 -0700 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2025-10-01 17:09:22 -0300 |
| commit | b4a21e457409f972abca2818d78cdf22d59544f5 (patch) | |
| tree | 93f9647697331f49245cd7b8e70d583c5a53a381 /tests/qtest/libqtest.h | |
| parent | 8e9f9981d6846515b2540439a80a0e16f93d4bd3 (diff) | |
| download | focaccia-qemu-b4a21e457409f972abca2818d78cdf22d59544f5.tar.gz focaccia-qemu-b4a21e457409f972abca2818d78cdf22d59544f5.zip | |
tests/qtest: qtest_qemu_args
Define an accessor that returns all the arguments used to exec QEMU. Collect the arguments that were passed to qtest_spawn_qemu, plus the trace arguments that were composed inside qtest_spawn_qemu, and move them to a new function qtest_qemu_args. This will be needed to test the cpr-exec migration mode. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Fabiano Rosas <farosas@suse.de> Link: https://lore.kernel.org/qemu-devel/1759332851-370353-11-git-send-email-steven.sistare@oracle.com Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'tests/qtest/libqtest.h')
| -rw-r--r-- | tests/qtest/libqtest.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qtest/libqtest.h b/tests/qtest/libqtest.h index dc2cdd0b60..7f8dd0a912 100644 --- a/tests/qtest/libqtest.h +++ b/tests/qtest/libqtest.h @@ -57,6 +57,14 @@ QTestState *qtest_vinitf(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0); const char *qtest_qemu_binary(const char *var); /** + * qtest_qemu_args: + * @extra_args: Other arguments to pass to QEMU. + * + * Return the command line used to start QEMU, sans binary. + */ +gchar *qtest_qemu_args(const char *extra_args); + +/** * qtest_init: * @extra_args: other arguments to pass to QEMU. CAUTION: these * arguments are subject to word splitting and shell evaluation. |