From: Luiz Capitulino <lcapitulino@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Anthony Liguori <aliguori@us.ibm.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] qmp: add test tool for QMP
Date: Mon, 7 Nov 2011 14:39:29 -0200 [thread overview]
Message-ID: <20111107143929.2335a059@doriath> (raw)
In-Reply-To: <4EB808E7.3000507@codemonkey.ws>
On Mon, 07 Nov 2011 10:35:51 -0600
Anthony Liguori <anthony@codemonkey.ws> wrote:
> 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?
I probably don't. I coded it as demo in the very beginning of QMP, maybe
we should first define what we expect from a QMP Python class then we
can see whether it fits or not... I feel it needs to be revamped.
next prev parent reply other threads:[~2011-11-07 16:39 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
2011-11-07 16:39 ` Luiz Capitulino [this message]
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=20111107143929.2335a059@doriath \
--to=lcapitulino@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=anthony@codemonkey.ws \
--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).