[libcamera-devel] [PATCH 0/5] test: camera: Add basic tests for the camera

Niklas Söderlund niklas.soderlund at ragnatech.se
Wed Mar 6 03:47:50 CET 2019


Hi,

This series fixes a bug in the state machine and goes on to add basic 
tests for the camera implementation. The tests involve reading and 
setting formats, access control of the state machine and capturing 
frames.

All tests uses the vimc pipeline to allow the tests to run on as many 
platforms as possible. Down the line this might be expanded to run an 
all cameras detected by libcamera.

Niklas Söderlund (5):
  libcamera: camera: Fix access bug in configureStreams()
  test: camera: Add read default format test
  test: camera: Add setting of format test
  test: camera: Add capture test
  test: camera: Add state machine test

 src/libcamera/camera.cpp       |   2 +-
 test/camera/camera_test.cpp    |  47 ++++++
 test/camera/camera_test.h      |  32 ++++
 test/camera/capture.cpp        | 130 ++++++++++++++++
 test/camera/format_default.cpp |  71 +++++++++
 test/camera/format_set.cpp     |  88 +++++++++++
 test/camera/meson.build        |  15 ++
 test/camera/statemachine.cpp   | 275 +++++++++++++++++++++++++++++++++
 test/meson.build               |   1 +
 9 files changed, 660 insertions(+), 1 deletion(-)
 create mode 100644 test/camera/camera_test.cpp
 create mode 100644 test/camera/camera_test.h
 create mode 100644 test/camera/capture.cpp
 create mode 100644 test/camera/format_default.cpp
 create mode 100644 test/camera/format_set.cpp
 create mode 100644 test/camera/meson.build
 create mode 100644 test/camera/statemachine.cpp

-- 
2.21.0



More information about the libcamera-devel mailing list