libcamera/test/camera/meson.build
Niklas Söderlund f873d801dd test: camera: Add capture test
Correctly configure the camera using the default configuration and run a
capture session for 100 milliseconds, which is plenty of time, in tests
over 600 requests completed using the vimc pipeline.

The test passes if at least the number of buffers used in the capture
times two number of requests completes to prove we cycle through all
buffers.

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:13 +01:00

14 lines
521 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' ],
[ '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