[Qemu-devel] [PATCH 11/12] tests/test-hmp: Add announce parameter tests

Vladislav Yasevich posted 12 patches 8 years, 8 months ago
[Qemu-devel] [PATCH 11/12] tests/test-hmp: Add announce parameter tests
Posted by Vladislav Yasevich 8 years, 8 months ago
Add 2 new commands for announce parameters to the test.

Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
---
 tests/test-hmp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test-hmp.c b/tests/test-hmp.c
index 99e35ec..f3887d1 100644
--- a/tests/test-hmp.c
+++ b/tests/test-hmp.c
@@ -65,6 +65,8 @@ static const char *hmp_cmds[] = {
     "sum 0 512",
     "x /8i 0x100",
     "xp /16x 0",
+    "info announce_parameters",
+    "announce_set_parameter rounds 10",
     NULL
 };
 
-- 
2.7.4


Re: [Qemu-devel] [PATCH 11/12] tests/test-hmp: Add announce parameter tests
Posted by Dr. David Alan Gilbert 8 years, 8 months ago
* Vladislav Yasevich (vyasevic@redhat.com) wrote:
> Add 2 new commands for announce parameters to the test.
> 
> Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
> ---
>  tests/test-hmp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/test-hmp.c b/tests/test-hmp.c
> index 99e35ec..f3887d1 100644
> --- a/tests/test-hmp.c
> +++ b/tests/test-hmp.c
> @@ -65,6 +65,8 @@ static const char *hmp_cmds[] = {
>      "sum 0 512",
>      "x /8i 0x100",
>      "xp /16x 0",
> +    "info announce_parameters",

I don't think you need to do that, test_info_commands
gets the list of info commands and calls them all.

Dave

> +    "announce_set_parameter rounds 10",
>      NULL
>  };
>  
> -- 
> 2.7.4
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK