summary refs log tree commit diff stats
path: root/test-qmp-output-visitor.c
diff options
context:
space:
mode:
authorMark Wu <wudxw@linux.vnet.ibm.com>2011-11-09 13:55:33 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2011-12-06 11:40:00 -0200
commit1c1d46cc0bb66394feba2e37a6b0196021e8d736 (patch)
tree0c41d410771489cf1c80ab338559a64ed10df933 /test-qmp-output-visitor.c
parent4b389b5d6e4ccda94297142cc27ddcdb3a4667dc (diff)
downloadfocaccia-qemu-1c1d46cc0bb66394feba2e37a6b0196021e8d736.tar.gz
focaccia-qemu-1c1d46cc0bb66394feba2e37a6b0196021e8d736.zip
qmp: add test tool for QMP
Anthony 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>
Signed-off-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'test-qmp-output-visitor.c')
0 files changed, 0 insertions, 0 deletions