libcamera/test/meson.build
Laurent Pinchart a1b1551446 test: Add test case for signal delivery across threads
The test case creates a receiver inheriting from Object, connects a
signal to one of its slot, moves the receiver to a different thread,
emits the signal and verifies that it gets delivered in the correct
thread with the expected value.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2019-07-11 11:57:37 +03:00

45 lines
1.3 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'],
['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