From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, "Laurent Vivier" <lvivier@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
"Fabiano Rosas" <farosas@suse.de>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Markus Armbruster" <armbru@redhat.com>,
"Yonggang Luo" <luoyonggang@gmail.com>
Subject: Re: [PATCH v2 3/3] tests/qtest: check query-target architecture
Date: Thu, 8 Oct 2026 10:44:01 +0100 [thread overview]
Message-ID: <asdl4QXXhbg83nob@redhat.com> (raw)
In-Reply-To: <20261007184612.24073-4-pierrick.bouvier@oss.qualcomm.com>
On Wed, Oct 07, 2026 at 06:46:12PM +0000, Pierrick Bouvier wrote:
> From: Yonggang Luo <luoyonggang@gmail.com>
>
> Check that query-target reports the target identity selected by the qtest
> binary, including softmmu variants.
>
> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
> tests/qtest/qmp-test.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
>
> diff --git a/tests/qtest/qmp-test.c b/tests/qtest/qmp-test.c
> index 927ab053f8a..c70f6a681c1 100644
> --- a/tests/qtest/qmp-test.c
> +++ b/tests/qtest/qmp-test.c
> @@ -164,6 +164,18 @@ static void test_qmp_protocol(void)
> qtest_quit(qts);
> }
>
> +static void test_query_target(void)
> +{
> + QTestState *qts = qtest_init(common_args);
> + QDict *target;
> +
> + target = qtest_qmp_assert_success_ref(qts,
> + "{ 'execute': 'query-target' }");
> + g_assert_cmpstr(qdict_get_try_str(target, "arch"), ==, qtest_get_arch());
> + qobject_unref(target);
> + qtest_quit(qts);
> +}
> +
> #ifndef _WIN32
>
> /* Out-of-band tests */
> @@ -517,6 +529,7 @@ int main(int argc, char *argv[])
> g_test_init(&argc, &argv, NULL);
>
> qtest_add_func("qmp/protocol", test_qmp_protocol);
> + qtest_add_func("qmp/query-target", test_query_target);
> #ifndef _WIN32
> /* This case calls mkfifo() which does not exist on win32 */
> qtest_add_func("qmp/oob", test_qmp_oob);
> --
> 2.43.0
>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
next prev parent reply other threads:[~2026-10-08 9:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-07 18:46 [PATCH v2 0/3] target-info: expose full target variant Pierrick Bouvier
2026-10-07 18:46 ` [PATCH v2 1/3] meson.build: export TARGET_ARCH_VARIANT in target config Pierrick Bouvier
2026-10-07 18:46 ` [PATCH v2 2/3] target-info: use TARGET_ARCH_VARIANT Pierrick Bouvier
2026-10-07 18:46 ` [PATCH v2 3/3] tests/qtest: check query-target architecture Pierrick Bouvier
2026-10-08 9:44 ` Daniel P. Berrangé [this message]
2026-10-09 22:03 ` [PATCH v2 0/3] target-info: expose full target variant Pierrick Bouvier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=asdl4QXXhbg83nob@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=farosas@suse.de \
--cc=luoyonggang@gmail.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@oss.qualcomm.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.