OSDN Git Service

tests: qmp-test: add test for new "x-oob"
authorPeter Xu <peterx@redhat.com>
Mon, 26 Mar 2018 06:39:01 +0000 (14:39 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 27 Mar 2018 15:17:45 +0000 (10:17 -0500)
commitfa198ad9bdef7303d4e3613c69ea00eece6b3a75
treececb7fbb98e8e11a219f9f758a512c2bd4675a36
parentddee57e0176f6ab53b13c6c97605b62737a8fd7a
tests: qmp-test: add test for new "x-oob"

Test the new OOB capability. It's mostly the reverted OOB test
(see commit 4fd78ad7), but differs in that:

- It uses the new qtest_init_without_qmp_handshake() parameter to
  create the monitor with "x-oob"
- Squashed the capability tests on greeting message
- Don't use qtest_global any more, instead use self-maintained
  QTestState, which is the trend

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180326063901.27425-9-peterx@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: rebase to qtest_init changes]
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qmp-test.c