diff options
author | Alon Levy <alevy@redhat.com> | 2011-08-10 16:18:12 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-08-10 16:18:12 +0300 |
commit | 9afce1529e30002f26bed2be0011c4b9bda2c799 (patch) | |
tree | ea09783c52cbb462b7a479b2d44e4c71e7837000 | |
parent | 64bc68be040286b419f310fd88d9299906820932 (diff) |
update qemu qmp tests
-rwxr-xr-x | do_qemu_com_redhat_qxl_screendump.sh | 10 | ||||
-rwxr-xr-x | do_qemu_qeury_spice.sh | 3 | ||||
-rwxr-xr-x | do_qemu_query_spice.sh | 7 |
3 files changed, 17 insertions, 3 deletions
diff --git a/do_qemu_com_redhat_qxl_screendump.sh b/do_qemu_com_redhat_qxl_screendump.sh new file mode 100755 index 0000000..92d84a0 --- /dev/null +++ b/do_qemu_com_redhat_qxl_screendump.sh @@ -0,0 +1,10 @@ +#!/bin/bash +which qemu-system-x86_64 +# The sleep is due to a bug (unreported) with -qmp stdio usage. +# can be removed if I use a unix socket probably. +( +sleep 1 +echo '{ "execute" : "qmp_capabilities" }' +echo '{ "execute" : "__com.redhat_qxl_screendump", "arguments" : { "id" : "0", "filename" : "test.ppm" } }' +echo '{ "execute" : "quit" }') | qemu-system-x86_64 -spice port=9999 -qmp stdio + diff --git a/do_qemu_qeury_spice.sh b/do_qemu_qeury_spice.sh deleted file mode 100755 index 592dd0f..0000000 --- a/do_qemu_qeury_spice.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -(echo '{"execute": "qmp_capabilities"}'; echo '{"execute":"query-spice"}'; echo '{ "execute": "quit" }') | qemu-system-x86_64 -spice port=9999 -qmp stdio - diff --git a/do_qemu_query_spice.sh b/do_qemu_query_spice.sh new file mode 100755 index 0000000..c1c079c --- /dev/null +++ b/do_qemu_query_spice.sh @@ -0,0 +1,7 @@ +#!/bin/bash +( +sleep 1 +echo '{"execute": "qmp_capabilities"}' +echo '{"execute":"query-spice"}' +echo '{ "execute": "quit" }') | qemu-system-x86_64 -spice port=9999 -qmp stdio + |