spiegel-keyman/linux/keyman-system-service/tests
Eberhard Beilharz 7abb9b390a
chore(linux): add a stub unit test to allow successful coverage reporting
Previously keyman-system-service didn't have any unit tests. With the
gcov/lcov versions available for Ubuntu 24.04 Noble this suddenly caused
a failure when trying to generate the test coverage report, although it
worked fine with older versions.

This change adds a do-nothing unit test stub for keyman-system-service.
This allows to generate the coverage reporting with Ubuntu 24.04 Noble.

Cherry-pick-of: #13740
2025-04-24 10:15:53 +02:00
..
services feat(linux): Add system service to toggle capslock LED 2023-05-15 09:13:58 +02:00
KeyboardDeviceMock.cpp refactor(linux): Implement ordered output sentinel in keyman-system-service 2025-02-05 11:42:04 +01:00
meson.build chore(linux): add a stub unit test to allow successful coverage reporting 2025-04-24 10:15:53 +02:00
OrderedOutputDeviceMock.cpp refactor(linux): use OrderedOutputDeviceMock when running tests 2025-02-14 16:42:08 +01:00
README.md feat(linux): Add system service to toggle capslock LED 2023-05-15 09:13:58 +02:00
testfixture.cpp chore(linux): add a stub unit test to allow successful coverage reporting 2025-04-24 10:15:53 +02:00

keyman-system-service tests

This directory defines a keyman-test-service. This is mostly identical to keyman-system-service. The differences are:

  • it runs on the session bus instead of system bus
  • KeyboardDevice (which in production interacts with evdev) is mocked so that the tests don't require root permissions.

The keyman-test-service gets called/used by the ibus-keyman integration tests.