libqtest: New hmp() & friends
commit70a4483abbbe3ec938b6c39a3cd0b486b96da93e
authorMarkus Armbruster <armbru@redhat.com>
Thu, 1 Oct 2015 08:59:55 +0000 (1 10:59 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 28 Oct 2015 19:50:05 +0000 (28 14:50 -0500)
treeeb9a170db3795a68294ef66f877a1a2d871a5717
parent39809852a7769e4271928ce7d5f2f1c4baf16fcf
libqtest: New hmp() & friends

New convenience function hmp() to facilitate use of
human-monitor-command in tests.  Use it to simplify its existing uses.

To blend into existing libqtest code, also add qtest_hmpv() and
qtest_hmp().  That, and the egregiously verbose GTK-Doc comment format
make this patch look bigger than it is.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1443689999-12182-7-git-send-email-armbru@redhat.com>
(cherry picked from commit 5fb48d9673b76fc53507a0e717a12968e57d846e)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/drive_del-test.c
tests/ide-test.c
tests/libqtest.c
tests/libqtest.h