mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-13 12:19:25 +00:00
This change modifies the `run-tests.sh` script so that tests run on both Wayland (if supported) and X11 unless `--no-wayland` or `--no-x11` is specified. This change also adds the new argument `--wayland` to the `ibus-keyman-tests` executable which runs the tests under Wayland. Note that running Wayland tests is only possible in Ubuntu 21.10+ because it requires a version of `mutter` that supports the headless option which got added in mutter 40. |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| ibusimcontext.c | ||
| ibusimcontext.h | ||
| Makefile.am | ||
| README.md | ||
| run-tests.sh | ||
| testfixture.cpp | ||
| testmodule.c | ||
| testmodule.h | ||
ibus-keyman integration tests
The ibus-keyman integration tests run the tests defined in common/core/desktop/tests/unit/kmx.
The tests run in a separate Xephyr session. Any dconf settings that have to be set during the tests
are stored in ~/.config/glib-2.0/settings/keyfile.
Running tests
The tests get run as part of building ibus-keyman, more specifically when running make check.
Run all tests
All tests can be run with the test script:
./run-tests.sh
Run specific tests
To run a single test you pass the testname (as found in
common/core/desktop/build/arch/*/tests/unit/kmx). Multiple tests should be separated by space.
./run-tests.sh -- k_000___null_keyboard k_005___nul_with_initial_context