OLD | NEW |
1 from autotest_lib.client.common_lib import error | 1 from autotest_lib.client.common_lib import error |
2 import kvm_test_utils, kvm_monitor | 2 from autotest_lib.client.virt import kvm_monitor |
3 | 3 |
4 | 4 |
5 def run_qmp_basic(test, params, env): | 5 def run_qmp_basic(test, params, env): |
6 """ | 6 """ |
7 QMP Specification test-suite: this checks if the *basic* protocol conforms | 7 QMP Specification test-suite: this checks if the *basic* protocol conforms |
8 to its specification, which is file QMP/qmp-spec.txt in QEMU's source tree. | 8 to its specification, which is file QMP/qmp-spec.txt in QEMU's source tree. |
9 | 9 |
10 IMPORTANT NOTES: | 10 IMPORTANT NOTES: |
11 | 11 |
12 o Most tests depend heavily on QMP's error information (eg. classes), | 12 o Most tests depend heavily on QMP's error information (eg. classes), |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 # Run all suites | 398 # Run all suites |
399 greeting_suite(qmp_monitor) | 399 greeting_suite(qmp_monitor) |
400 input_object_suite(qmp_monitor) | 400 input_object_suite(qmp_monitor) |
401 argument_checker_suite(qmp_monitor) | 401 argument_checker_suite(qmp_monitor) |
402 unknown_commands_suite(qmp_monitor) | 402 unknown_commands_suite(qmp_monitor) |
403 json_parsing_errors_suite(qmp_monitor) | 403 json_parsing_errors_suite(qmp_monitor) |
404 | 404 |
405 # check if QMP is still alive | 405 # check if QMP is still alive |
406 if not qmp_monitor.is_responsive(): | 406 if not qmp_monitor.is_responsive(): |
407 raise error.TestFail('QMP monitor is not responsive after testing') | 407 raise error.TestFail('QMP monitor is not responsive after testing') |
OLD | NEW |