[Spice-devel] [PATCH spice-server v3 0/5] Multiple improvements for Smartcard code

Frediano Ziglio fziglio at redhat.com
Wed Oct 9 09:22:57 UTC 2019


Multiple fixes and automatic test of the device/channel.
Improve previous series.
Most fixes came from automatic test.

Changes since v2:
- update some comments;
- split one fix into 2.

Frediano Ziglio (5):
  smartcard: Fix copying remaining request
  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.c                |  27 ++-
 server/tests/.gitignore           |   1 +
 server/tests/Makefile.am          |   6 +
 server/tests/meson.build          |   6 +
 server/tests/test-smartcard.c     | 379 ++++++++++++++++++++++++++++++
 server/tests/test-stream-device.c | 224 +++++-------------
 server/tests/vmc-emu.c            | 124 ++++++++++
 server/tests/vmc-emu.h            |  51 ++++
 8 files changed, 648 insertions(+), 170 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



More information about the Spice-devel mailing list