mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
Create a subdirectory to contain the libtest helper library. Define two variables to clarify when tests are aimed at public or internal components. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
27 lines
679 B
Meson
27 lines
679 B
Meson
subdir('libtest')
|
|
|
|
test_libraries = [libcamera, libtest]
|
|
|
|
test_includes_public = [
|
|
libtest_includes,
|
|
libcamera_includes,
|
|
]
|
|
|
|
test_includes_internal = [
|
|
test_includes_public,
|
|
libcamera_internal_includes,
|
|
]
|
|
|
|
test_init = executable('test_init', 'init.cpp',
|
|
link_with : test_libraries,
|
|
include_directories : test_includes_public)
|
|
|
|
list = executable('list', 'list.cpp',
|
|
link_with : test_libraries,
|
|
include_directories : test_includes_public)
|
|
|
|
subdir('media_device')
|
|
|
|
test('Initialisation test', test_init)
|
|
test('List Camera API tests', list)
|
|
test('Media Device Test', media_device_test)
|