• F
    KVM Test: Add qmp_command test. · 81253de1
    Feng Yang 提交于
    This script have coverd following qmp command:
    query-hpet, query-kvm, query-mice, query-status
    query-name, query-uuid, query-version, query-chardev
    query-blockstats, memsave, pmemsave, query-cpus
    cpu, query-vnc, query-block, query-commands
    query-balloon, balloon, cont, stop
    and a negative test with wrong command.
    
    This script will check result by following way:
    cmd_result_check = equal, will compare cmd_return_value with qmp command output.
    cmd_result_check = contain, will try to find cmd_return_value in qmp command output.
    cmd_result_check = m_equal_q, will compare key value in monitor command output and qmp command output.
    cmd_result_check = m_in_q, will try to find monitor command output's key value in qmp command output.
    cmd_result_check = post_contain, will try to find cmd_return_value in post command output.
    
    This update is base on upstream QMP patchset.
    
    Changes from v1:
    Bug fix and update according to ldoktor's comment
    Signed-off-by: NFeng Yang <fyang@redhat.com>
    KVM-test: Add format check for qmp_command test
    Signed-off-by: NYiqiao Pu <ypu@redhat.com>
    81253de1
qmp_command.py 9.7 KB