From: Thomas Huth <thuth@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, crosa@redhat.com
Subject: Re: [Qemu-devel] [PATCH] tests/qmp-test: Add generic, basic test of query commands
Date: Fri, 1 Sep 2017 15:55:27 +0200 [thread overview]
Message-ID: <fe594ae6-09e7-6f74-faa0-4b56f8dcea4f@redhat.com> (raw)
In-Reply-To: <87shgy4gl8.fsf@dusky.pond.sub.org>
On 11.08.2017 11:08, Markus Armbruster wrote:
> Eric Blake <eblake@redhat.com> writes:
>
>> On 08/10/2017 01:30 PM, Markus Armbruster wrote:
[...]
>>> We get basic test coverage for the following commands:
>>
>> Cool!
>>
>>>
>>> qom-list-types
>>> query-acpi-ospm-status
>>> query-balloon (expected to fail)
>>
>>> query-vm-generation-id (expected to fail)
>>
>>> Most tested commands are expected to succeed. The test does not check
>>> the return value then. A few commands are expected to fail because
>>> they need special arguments to succeed, and this test is too dumb to
>>> supply them.
>>
>> Sounds like it would just be a matter of adding additional command line
>> parameters to the qemu being invoked for testing those commands?
>
> In theory, setting up the state required for a query to succeed could be
> too complex for this stupid test.
>
> In practice, query-balloon should need just "-device virtio-balloon",
> and query-vm-generation-id should need just "-device vmgenid" and ACPI
> (I think). Not all machines can do these devices. Let's what I can do
> in v2.
FWIW: I think the balloon testing could also go into
tests/virtio-balloon-test.c instead ... that test is only run on
architectures where the device should be available.
Thomas
next prev parent reply other threads:[~2017-09-01 13:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-10 18:30 [Qemu-devel] [PATCH] tests/qmp-test: Add generic, basic test of query commands Markus Armbruster
2017-08-10 18:47 ` Eric Blake
2017-08-11 9:08 ` Markus Armbruster
2017-08-11 14:48 ` [Qemu-devel] marking SCM_RIGHTS qapi commands [was: [PATCH] tests/qmp-test: Add generic, basic test of query commands] Eric Blake
2017-09-01 13:55 ` Thomas Huth [this message]
2017-09-01 14:33 ` [Qemu-devel] [PATCH] tests/qmp-test: Add generic, basic test of query commands Markus Armbruster
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=fe594ae6-09e7-6f74-faa0-4b56f8dcea4f@redhat.com \
--to=thuth@redhat.com \
--cc=armbru@redhat.com \
--cc=crosa@redhat.com \
--cc=eblake@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).