[libcamera-devel,0/5] test: Unit Test Improvements
mbox series

Message ID 20190101212947.28098-1-kieran.bingham@ideasonboard.com
Headers show
Series
  • test: Unit Test Improvements
Related show

Message

Kieran Bingham Jan. 1, 2019, 9:29 p.m. UTC
A cleanup and refresh now that more patches have been integrated.

Firstly, fix the location of the test definition for the media_device,
then provide a refreshed implementation of the "test: Use foreach
iterators to simplify definitions" patch.

With this change added, the definitions for the test includes somewhat
clutter the base test/meson.build and it seems appropriate that they
live as part of the libtest definitions - so move them there
accordingly.

Then update the media_device suite meson.build to use the foreach syntax
to allow for the unit tests to be extended here.

Finally, with actual classes implemented in the library there is no
further need for the early 'init' test and fake library implementation,
and so this is removed and cleaned up.


Kieran Bingham (4):
  test: media_device: Move test definition
  test: Use foreach iterators to simplify definitions
  test: Move include definitions to libtest
  test: media_device: Convert to foreach

Laurent Pinchart (1):
  libcamera: Remove libcamera class

 include/libcamera/libcamera.h | 10 ----------
 src/libcamera/main.cpp        | 19 -------------------
 src/libcamera/meson.build     |  1 -
 test/init.cpp                 | 16 ----------------
 test/libtest/meson.build      | 12 ++++++++++++
 test/media_device/meson.build | 14 +++++++++++---
 test/meson.build              | 33 ++++++++++++++++-----------------
 7 files changed, 39 insertions(+), 66 deletions(-)
 delete mode 100644 src/libcamera/main.cpp
 delete mode 100644 test/init.cpp