mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-25 17:57:41 +00:00
When running tests we use the `OrderedOutputDeviceMock` class which sends a dbus message for a sentinel key press instead of creating/using a real "virtual" keyboard.
29 lines
661 B
Meson
29 lines
661 B
Meson
test_service_files = files(
|
|
'../src/main.cpp',
|
|
'../src/KeymanSystemService.cpp',
|
|
'../src/OrderedOutputDevice.cpp',
|
|
'KeyboardDeviceMock.cpp',
|
|
'OrderedOutputDeviceMock.cpp',
|
|
)
|
|
|
|
deps = [evdev, systemd]
|
|
|
|
test_c_args = [
|
|
'-DKEYMAN_TESTING',
|
|
'-DKeyboardDevice=KeyboardDeviceMock',
|
|
]
|
|
|
|
exe = executable(
|
|
'keyman-test-service',
|
|
sources: [test_service_files],
|
|
c_args: test_c_args,
|
|
cpp_args: test_c_args,
|
|
dependencies: deps,
|
|
include_directories: [ '..', '../src' ]
|
|
)
|
|
|
|
# we currently don't have any unit tests for keyman-system-service.
|
|
# The keyman-test-service we build here gets used by the ibus-keyman
|
|
# integration tests.
|
|
|
|
subdir('services')
|