Add simple test which lists all cameras detected in the system. The test fails if no camera can be found. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
17 lines
490 B
Meson
17 lines
490 B
Meson
libtest_sources = files([
|
|
'test.cpp',
|
|
])
|
|
|
|
libtest = static_library('libtest', libtest_sources)
|
|
|
|
test_init = executable('test_init', 'init.cpp',
|
|
link_with : libcamera,
|
|
include_directories : libcamera_includes)
|
|
|
|
list = executable('list', 'list.cpp',
|
|
link_with : [libcamera, libtest],
|
|
include_directories : libcamera_includes)
|
|
|
|
test('Initialisation test', test_init)
|
|
test('List Camera API tests', list)
|