[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tests/qmp-test: Add generic, basic test of quer
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH] tests/qmp-test: Add generic, basic test of query commands |
Date: |
Fri, 01 Sep 2017 16:33:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Thomas Huth <address@hidden> writes:
> On 11.08.2017 11:08, Markus Armbruster wrote:
>> Eric Blake <address@hidden> 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.
A generic test like this one can only do basic smoke testing. More than
that would be useful for many commands, including query-balloon. It
doesn't have to be in this file, though. virtio-balloon-test.c looks
like a fine choice for query-balloon testing.