libcamera/test/meson.build
Kieran Bingham 3900b0771e test: Move test objects to libtest
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>
2019-01-01 18:24:22 +02:00

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)