test-stream-device: Factor out VMC emulation

Enterprise / Virtualization / SPICE - Frediano Ziglio [redhat.com] - 9 October 2019 09:33 EDT

Allows to reuse code for emulating a character device. It will be used for Smardcard test.

b4e50888 test-stream-device: Factor out VMC emulation
server/tests/Makefile.am | 2 +
server/tests/meson.build | 2 +
server/tests/test-stream-device.c | 224 +++++++++++---------------------------
server/tests/vmc-emu.c | 121 ++++++++++++++++++++
server/tests/vmc-emu.h | 48 ++++++++
5 files changed, 236 insertions(+), 161 deletions(-)

Upstream: cgit.freedesktop.org


  • Share