From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNSB4-0004vQ-UH for qemu-devel@nongnu.org; Mon, 07 Nov 2011 11:36:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNSAu-000267-6u for qemu-devel@nongnu.org; Mon, 07 Nov 2011 11:36:06 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:40105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNSAu-00025u-1q for qemu-devel@nongnu.org; Mon, 07 Nov 2011 11:35:56 -0500 Received: by iakk32 with SMTP id k32so1965290iak.4 for ; Mon, 07 Nov 2011 08:35:55 -0800 (PST) Message-ID: <4EB808E7.3000507@codemonkey.ws> Date: Mon, 07 Nov 2011 10:35:51 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1320678675-21379-1-git-send-email-aliguori@us.ibm.com> <20111107140801.7f1c6cdd@doriath> <4EB802D3.4080108@codemonkey.ws> <20111107143020.74c678ec@doriath> In-Reply-To: <20111107143020.74c678ec@doriath> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qmp: add test tool for QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Anthony Liguori , qemu-devel@nongnu.org On 11/07/2011 10:30 AM, Luiz Capitulino wrote: > On Mon, 07 Nov 2011 10:09:55 -0600 > Anthony Liguori wrote: > >> On 11/07/2011 10:08 AM, Luiz Capitulino wrote: >>> On Mon, 7 Nov 2011 09:11:15 -0600 >>> Anthony Liguori 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 >>> >>> Acked-by: Luiz Capitulino >> >> 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