aboutsummaryrefslogtreecommitdiff
path: root/tests/test-hmp.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-08-16 13:35:55 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-23 18:46:23 +0200
commit1f4a0d81af8dfbe176ea20085fa894a94d28b125 (patch)
tree2c625e12fc6e9c6cfc9b066b134e7176c7da6045 /tests/test-hmp.c
parent29551fdcf4d9970ee73d32fc3875d3ddc958a26c (diff)
tests: Skip old versioned machine types in quick testing mode
The tests that check something for all machine types currently spend a lot of time checking old machine types (like "pc-i440fx-2.0" for example). The chances that we find something new there in addition to checking the latest version of a machine type are pretty low, so we should not waste the time of the developers by testing this again and again in the "quick" testing mode. Thus let's add some code to determine whether we are testing a current machine type or an old one, and only test the old types if we are running in "SPEED=slow" mode. This decreases the testing time quite a bit now, e.g. the qom-test now finishes within 4 seconds for qemu-system-x86_64 instead of 30 seconds when testing all machines. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1534419358-10932-6-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/test-hmp.c')
-rw-r--r--tests/test-hmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-hmp.c b/tests/test-hmp.c
index 5352c9c088..1a3a9c5099 100644
--- a/tests/test-hmp.c
+++ b/tests/test-hmp.c
@@ -158,7 +158,7 @@ int main(int argc, char **argv)
g_test_init(&argc, &argv, NULL);
- qtest_cb_for_every_machine(add_machine_test_case);
+ qtest_cb_for_every_machine(add_machine_test_case, g_test_quick());
/* as none machine has no memory by default, add a test case with memory */
qtest_add_data_func("hmp/none+2MB", g_strdup("none -m 2"), test_machine);