a25c937f8a
Test that setting the log file and log levels works from an application point of view. The test uses the internal logging mechanism as well, just to write to the log file. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
47 lines
1.4 KiB
Meson
47 lines
1.4 KiB
Meson
subdir('libtest')
|
|
|
|
subdir('camera')
|
|
subdir('controls')
|
|
subdir('ipa')
|
|
subdir('ipc')
|
|
subdir('media_device')
|
|
subdir('pipeline')
|
|
subdir('stream')
|
|
subdir('v4l2_subdevice')
|
|
subdir('v4l2_videodevice')
|
|
|
|
public_tests = [
|
|
['event', 'event.cpp'],
|
|
['event-dispatcher', 'event-dispatcher.cpp'],
|
|
['geometry', 'geometry.cpp'],
|
|
['list-cameras', 'list-cameras.cpp'],
|
|
['signal', 'signal.cpp'],
|
|
['timer', 'timer.cpp'],
|
|
]
|
|
|
|
internal_tests = [
|
|
['camera-sensor', 'camera-sensor.cpp'],
|
|
['log', 'log.cpp'],
|
|
['message', 'message.cpp'],
|
|
['signal-threads', 'signal-threads.cpp'],
|
|
['threads', 'threads.cpp'],
|
|
]
|
|
|
|
foreach t : public_tests
|
|
exe = executable(t[0], t[1],
|
|
dependencies : libcamera_dep,
|
|
link_with : test_libraries,
|
|
include_directories : test_includes_public)
|
|
|
|
test(t[0], exe)
|
|
endforeach
|
|
|
|
foreach t : internal_tests
|
|
exe = executable(t[0], t[1],
|
|
dependencies : libcamera_dep,
|
|
link_with : test_libraries,
|
|
include_directories : test_includes_internal)
|
|
|
|
test(t[0], exe)
|
|
endforeach
|