diff mbox

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

Message ID 1495649128-10529-12-git-send-email-vyasevic@redhat.com
State New
Headers show

Commit Message

Vlad Yasevich May 24, 2017, 6:05 p.m. UTC
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(+)

Comments

Dr. David Alan Gilbert May 31, 2017, 9:53 a.m. UTC | #1
* 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
diff mbox

Patch

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
 };