|
|
9bac43 |
From f4217185263cd9a3e2da574648b9bf72e65d9ad6 Mon Sep 17 00:00:00 2001
|
|
|
9bac43 |
From: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
Date: Wed, 13 Sep 2017 16:20:36 +0200
|
|
|
9bac43 |
Subject: tests/hmp: test "none" machine with memory
|
|
|
9bac43 |
|
|
|
9bac43 |
and add a test case of dump-guest-memory without
|
|
|
9bac43 |
"[begin length]" parameters.
|
|
|
9bac43 |
|
|
|
9bac43 |
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
9bac43 |
Reviewed-by: Thomas Huth <thuth@redhat.com>
|
|
|
9bac43 |
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
9bac43 |
Message-Id: <20170913142036.2469-5-lvivier@redhat.com>
|
|
|
9bac43 |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
9bac43 |
(cherry picked from commit 4e5c3a3742adcf7514b73f4da1c005ee7b35e41b)
|
|
|
9bac43 |
---
|
|
|
9bac43 |
tests/test-hmp.c | 4 ++++
|
|
|
9bac43 |
1 file changed, 4 insertions(+)
|
|
|
9bac43 |
|
|
|
9bac43 |
diff --git a/tests/test-hmp.c b/tests/test-hmp.c
|
|
|
9bac43 |
index 729c033..d124e81 100644
|
|
|
9bac43 |
--- a/tests/test-hmp.c
|
|
|
9bac43 |
+++ b/tests/test-hmp.c
|
|
|
9bac43 |
@@ -35,6 +35,7 @@ static const char *hmp_cmds[] = {
|
|
|
9bac43 |
"mouse_button 0",
|
|
|
9bac43 |
"device_del mouse1",
|
|
|
9bac43 |
"dump-guest-memory /dev/null 0 4096",
|
|
|
9bac43 |
+ "dump-guest-memory /dev/null",
|
|
|
9bac43 |
"gdbserver",
|
|
|
9bac43 |
"host_net_add user id=net0",
|
|
|
9bac43 |
"hostfwd_add tcp::43210-:43210",
|
|
|
9bac43 |
@@ -159,5 +160,8 @@ int main(int argc, char **argv)
|
|
|
9bac43 |
|
|
|
9bac43 |
qtest_cb_for_every_machine(add_machine_test_case);
|
|
|
9bac43 |
|
|
|
9bac43 |
+ /* as none machine has no memory by default, add a test case with memory */
|
|
|
9bac43 |
+ qtest_add_data_func("hmp/none+2MB", g_strdup("none -m 2"), test_machine);
|
|
|
9bac43 |
+
|
|
|
9bac43 |
return g_test_run();
|
|
|
9bac43 |
}
|
|
|
9bac43 |
--
|
|
|
9bac43 |
1.8.3.1
|
|
|
9bac43 |
|