All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qmp: add test tool for QMP
Date: Mon, 07 Nov 2011 10:35:51 -0600	[thread overview]
Message-ID: <4EB808E7.3000507@codemonkey.ws> (raw)
In-Reply-To: <20111107143020.74c678ec@doriath>

On 11/07/2011 10:30 AM, Luiz Capitulino wrote:
> On Mon, 07 Nov 2011 10:09:55 -0600
> Anthony Liguori<anthony@codemonkey.ws>  wrote:
>
>> On 11/07/2011 10:08 AM, Luiz Capitulino wrote:
>>> On Mon,  7 Nov 2011 09:11:15 -0600
>>> Anthony Liguori<aliguori@us.ibm.com>   wrote:
>>>
>>>> I wrote this quickly to aid in testing.  It's similar to qmp-shell with a few
>>>> important differences:
>>>>
>>>> 1) It is not interactive.  That makes it useful for scripting.
>>>>
>>>> 2) qmp-shell:
>>>>
>>>> (QEMU) set_password protocol=vnc password=foo
>>>>
>>>> 3) qmp:
>>>>
>>>> $ qmp set_password --protocol=vnc --password=foo
>>>>
>>>> 4) Extensible, git-style interface.  If an invalid command name is passed, it
>>>>      will try to exec qmp-$1.
>>>>
>>>> 5) It attempts to pretty print the JSON responses in a shell friendly format
>>>>      such that tools can work with the output.
>>>>
>>>> Hope others will also find it useful.
>>>>
>>>> Signed-off-by: Anthony Liguori<aliguori@us.ibm.com>
>>>
>>> Acked-by: Luiz Capitulino<lcapitulino@redhat.com>
>>
>> BTW, one thing I'd like to try at some point soon is to generate man pages from
>> qapi-schema.json.  If you notice in the script, it does online help by invoking man.
>
> Yes, I did notice it. I didn't comment on it because I imagined you had plans
> about it.
>
> PS: I don't think this needs to go through my tree.

What do you want to do with qmp.py?  Do you feel comfortable installing it in 
$PYTHONPATH and treating it as a supported API?

Regards,

Anthony Liguori

  reply	other threads:[~2011-11-07 16:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 15:11 [Qemu-devel] [PATCH] qmp: add test tool for QMP Anthony Liguori
2011-11-07 16:08 ` Luiz Capitulino
2011-11-07 16:09   ` Anthony Liguori
2011-11-07 16:30     ` Luiz Capitulino
2011-11-07 16:35       ` Anthony Liguori [this message]
2011-11-07 16:39         ` Luiz Capitulino
2011-11-07 17:26           ` Alon Levy
2011-11-08  8:36 ` Mark Wu
2011-11-08 11:56   ` Luiz Capitulino
2011-11-08 13:57   ` Anthony Liguori

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=4EB808E7.3000507@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=aliguori@us.ibm.com \
    --cc=lcapitulino@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 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.