Multiple fixes and automatic test of the device/channel. Improve previous series. Most fixes came from automatic test. Frediano Ziglio (7): smartcard-channel-client: Remove properties code smartcard-channel-client: Use log instead of printf smartcard: Do not crash if reader_id is invalid smartcard: Fix parsing multiple messages from the device test-stream-device: Factor out VMC emulation test-smartcard: Add test for Smartcard device test-smardcard: Improve test coverage server/smartcard-channel-client.c | 29 +-- server/smartcard.c | 31 ++- server/tests/.gitignore | 1 + server/tests/Makefile.am | 6 + server/tests/meson.build | 6 + server/tests/test-smartcard.c | 378 ++++++++++++++++++++++++++++++ server/tests/test-stream-device.c | 224 +++++------------- server/tests/vmc-emu.c | 124 ++++++++++ server/tests/vmc-emu.h | 51 ++++ 9 files changed, 652 insertions(+), 198 deletions(-) create mode 100644 server/tests/test-smartcard.c create mode 100644 server/tests/vmc-emu.c create mode 100644 server/tests/vmc-emu.h -- 2.21.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel