spiegel-keyman/linux/ibus-keyman/test
2020-02-26 16:40:20 +07:00
..
change_keyboard.py cleanup change_keyboard 2018-12-17 20:17:49 +07:00
keypress_actions.py keypress_actions: add ctrlr, port to python3 2018-12-17 20:14:36 +07:00
README.md chore(linux): Update references from keyboardprocessor to desktop 2020-02-26 16:40:20 +07:00
runtests.sh rename new tests to 038, 039 2018-12-18 08:41:21 +07:00
sequence_step.py add keypress_actions and sequence_step from LDTP 2018-12-17 17:52:38 +07:00
test_ibus_keyman.py use keypress_actions instead of pynput 2018-12-17 20:17:14 +07:00

ibus-keyman tests

Setup

You need pynput to generate keypresses

pip3 install pynput

These tests assume that the test kmx and kmn are located in ~/.local/share/keyman/test_kmx

You may like to link common/core/desktop/tests/unit/kmx to that location

Running tests

To run all the tests

./runtests.sh

To run an individual test

python3 ./test_ibus_keyman.py "<testname>"

If your keyboard isn't "us" then you need to set the keyboard before running the test

setxkbmap us

You may like to setxkbmap -query|grep layout before you run the test to find out what to set it back to afterwards.

Test output

The tests produce <testname>.in and <testname>.out files <testname>.in is the expected output <testname>.out is the actual output

You may use diff or something else to compare them