[Spice-devel] [PATCH spice-streaming-agent v2 0/3] first unit test and options parsing improvements

Lukáš Hrázký lhrazky at redhat.com
Tue Feb 13 14:03:17 UTC 2018


This series introduces a C++ unit test framework called Catch to the
codebase, adds a simple unit test for the options parsing for the mjpeg
plugin and improves on the option parsing code.

Since we more or less agreed we can solve the Catch package in RHEL one
way or another, I suppose we can proceed here.

Changes since v1:
- squash the two test patches and keep the BDD version
- update for the explicit namespaces
- use syslog instead of std::cerr for logging the error message
- add temporary files to .gitignore

Lukáš Hrázký (3):
  mjpeg-fallback: a more C++ way of handling options
  src/unitests: add temporary files to .gitignore
  mjpeg-fallback: unittest for the options parsing

 configure.ac                          |  3 ++
 src/mjpeg-fallback.cpp                | 46 ++++++++++++++-------------
 src/mjpeg-fallback.hpp                |  1 +
 src/unittests/.gitignore              |  8 ++++-
 src/unittests/Makefile.am             | 14 +++++++++
 src/unittests/test-mjpeg-fallback.cpp | 58 +++++++++++++++++++++++++++++++++++
 6 files changed, 108 insertions(+), 22 deletions(-)
 create mode 100644 src/unittests/test-mjpeg-fallback.cpp

-- 
2.16.1



More information about the Spice-devel mailing list