libcamera/test/camera/meson.build
Niklas Söderlund af2144231e test: camera: Add state machine test
Add a test of the different access level enforced by the state machine
inside the camera. The state machine aims to limit operations on the
camera to the cameras state.

The test exercises all states of the camera and verifies that only the
intended operations are possible at each stage.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2019-03-14 15:59:17 +01:00

15 lines
573 B
Meson

# Tests are listed in order of complexity.
# They are not alphabetically sorted.
camera_tests = [
[ 'configuration_default', 'configuration_default.cpp' ],
[ 'configuration_set', 'configuration_set.cpp' ],
[ 'statemachine', 'statemachine.cpp' ],
[ 'capture', 'capture.cpp' ],
]
foreach t : camera_tests
exe = executable(t[0], [t[1], 'camera_test.cpp'],
link_with : test_libraries,
include_directories : test_includes_internal)
test(t[0], exe, suite: 'camera', is_parallel: false)
endforeach