spiegel-keyman/linux/keyman-system-service/tests/meson.build
Eberhard Beilharz e4c7332e1c
refactor(linux): use OrderedOutputDeviceMock when running tests
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.
2025-02-14 16:42:08 +01:00

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')