]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add helper library for testing the qemu monitor code
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 20 Aug 2012 13:06:21 +0000 (14:06 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 7 Sep 2012 12:18:04 +0000 (13:18 +0100)
commit8d78fd04be695a069ca166d86c3eae780e81dbf1
tree866020b149ddc37945a686b0a4c378b148d93a1e
parent1f490138baa463461003b2d4c5fe49a60a20860e
Add helper library for testing the qemu monitor code

To be able to test the QEMU monitor code, we need to have a fake
QEMU monitor server. This introduces a simple (dumb) framework
that can do this. The test case registers a series of items to
be sent back as replies to commands that will be executed. A
thread runs the event loop looking for incoming replies and
sending back this pre-registered data. This allows testing all
QEMU monitor code that deals with parsing responses and errors
from QEMU, without needing QEMU around

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
cfg.mk
tests/Makefile.am
tests/qemumonitortestutils.c [new file with mode: 0644]
tests/qemumonitortestutils.h [new file with mode: 0644]