Eberhard Beilharz
4ad730d6f6
chore(linux): Add code coverage report for keyman-config
2023-10-12 10:21:11 +02:00
Marc Durdin
64202deb44
Merge branch 'epic/linux-mcompile' into chore/merge-master-into-linux-mcompile
2023-10-12 15:52:40 +11:00
Eberhard Beilharz
7bab603b5b
refactor(linux): Simplify adding keyboard
...
Before we add a keyboard we check if we already added this keyboard
(in a different area). If we did (with the same or newer version) we
skip this keyboard. This change now immediately returns whereas previously
we set a flag and then didn't execute the rest of the method.
2023-10-10 18:00:05 +02:00
Eberhard Beilharz
7340c6be1f
chore(linux): Improve process check
2023-10-10 15:52:52 +02:00
Eberhard Beilharz
2356a39efa
chore(linux): Add testname to log file
2023-10-10 15:52:52 +02:00
Eberhard Beilharz
22126a0eef
refactor(linux): Use auto cleanup
2023-10-10 15:52:51 +02:00
Eberhard Beilharz
405f2e8243
Merge pull request #9725 from keymanapp/chore/linux/sentrydetails
...
chore(linux): Improve Sentry reports
2023-10-10 15:06:35 +02:00
Eberhard Beilharz
1343829c1c
Merge pull request #9706 from keymanapp/fix/linux/gtkinit
...
fix(linux): Explicitly initialize GTK
2023-10-10 09:03:12 +02:00
Eberhard Beilharz
1dd3eae01a
chore(linux): Add more details to Sentry events
...
This change adds additional details to Sentry events so that the "All
Events" tab on keyman.sentry.io will show helpful values in the
"device" and "os" columns instead of emptry strings.
2023-10-09 11:44:24 +02:00
Eberhard Beilharz
9650b3f0a2
fix(linux): Fix calculation of user hash
...
The `hash` method that we previously used calculates the hash based on
the memory location, i.e. with each program run we get a different value
for the same user. This change now uses the md5 algorithm so that the
same user always produces the same hash.
2023-10-09 11:42:19 +02:00
Marc Durdin
db76e2541d
chore: rename KM_KBP_ to KM_CORE_
2023-10-09 14:53:22 +07:00
Marc Durdin
ba5f18defd
chore: rename km_kbp_ to km_core_
2023-10-09 14:53:13 +07:00
Marc Durdin
906a0a2ed7
chore: fix typo
2023-10-09 14:41:01 +07:00
Marc Durdin
4ef18f5e29
chore(core): rename keyboardprocessor.h to keyman_core_api.h
...
Fixes #9721 .
Also tweaks some documentation references to keyboardprocessor, but does
not touch those relating to debian/control.
2023-10-09 14:21:01 +07:00
Eberhard Beilharz
2e4dd10522
fix(linux): Explicitly initialize GTK
...
Usually this is done automatically. However, if e.g. no `DISPLAY` variable
is set it'll fail. When we explicitly initialize GTK it still fails, but
shows a more helpful warning instead of throwing a runtime error.
Fixes #9705 .
2023-10-06 16:50:30 +02:00
Sabine
0256c98434
feat(linux): mcompile fill rgkey: numbers and A-Z are filled OK
2023-10-05 17:16:11 +02:00
Sabine
41cc7180b7
feat(linux): mcompile more tidy up
2023-10-04 18:48:03 +02:00
Sabine
1d0bba6320
feat(linux): mcompile tidy up
2023-10-04 18:39:26 +02:00
Sabine
050e80aa86
feat(linux): mcompile use correct mapping for numbers
2023-10-04 16:34:52 +02:00
Marc Durdin
0deff7de3c
Merge pull request #9643 from keymanapp/chore/merge-master-into-linux-mcompile
...
chore: merge master into linux-mcompile 🐘
2023-10-03 15:37:26 +02:00
Sabine
2a46b6fc44
feat(linux): mcompile use mapping Lin-Win that is available already in keyman
2023-10-02 19:27:56 +02:00
Sabine
d321ef0a5b
feat(linux): mcompile in translate key more open functions+rename to KMX_...
2023-09-29 16:43:41 +02:00
Sabine
461ade9633
feat(linux): mcompile in translate key open functions+rename to KMX_... -> program will run but won`t give the right results yet
2023-09-29 16:33:41 +02:00
Sabine
5786137d01
feat(linux): mcompile start of translate key
2023-09-29 13:07:45 +02:00
Eberhard Beilharz
4ab6031d0b
chore(linux): Address code review comments
2023-09-29 10:07:11 +02:00
Eberhard Beilharz
3812a1da3b
refactor(linux): Add more tests for keymanutil.c 🏘️
2023-09-28 17:25:11 +02:00
Sabine
5d57ee714c
feat(linux): mcompile ImportRules- fill rgkeys finished
2023-09-28 16:51:34 +02:00
Eberhard Beilharz
08f0b4dfed
chore(linux): Extract free_info method in kmpdetails.c 🏘️
...
Also add guard to kmpdetails.h.
2023-09-28 13:18:59 +02:00
Sabine
a414542887
feat(linux): mcompile use keycodes from \linux\ibus-keyman\src\key
2023-09-28 12:31:50 +02:00
Sabine
218004d99d
feat(linux): mcompile use keycodes from \linux\ibus-keyman\src\keycodes.h
2023-09-28 12:29:59 +02:00
Darcy Wong
040e41a8f6
Merge pull request #9550 from keymanapp/chore/common/crowdin-mon
...
chore(common): Add Crowdin strings for Mon
2023-09-28 16:03:34 +07:00
Eberhard Beilharz
43ae210494
chore(linux): Fix run-tests.sh script
...
This passes the new parameter to the `setup` call which got introduced in
a previous PR.
2023-09-27 12:58:00 +02:00
Eberhard Beilharz
650c04d21c
chore(linux): Dynamically choose display number
...
This improves reliability if some processes are still running from a
previous run, which previously caused the tests to fail.
Also in the case of failed processes, list which ones are missing.
2023-09-26 18:09:13 +02:00
Sabine
85d7b87175
feat(linux): mcompile some new functions to test content of rgKey; start adding numpad to rgkey
2023-09-26 14:06:52 +02:00
Eberhard Beilharz
4ecaad6ef1
chore(linux): Address code review comments
2023-09-26 13:04:33 +02:00
Eberhard Beilharz
1b5a86607d
chore(linux): Check that background processes are still running
...
Before we run a test we now check that ibus and the other processes
we need are still running. If not we run test setup again.
Maybe fix #9570 .
2023-09-25 18:55:54 +02:00
Eberhard Beilharz
9b3bf85a36
Merge pull request #9606 from keymanapp/fix/linux/9577_testdetection
...
fix(linux): Fix detection of unit tests
2023-09-25 10:54:28 +02:00
Sabine
4dfec70bf6
feat(linux): mcompile use All_Vector for constructor of KMX_VirtualKey for rgkeys
2023-09-22 18:11:31 +02:00
Sabine
feb472d334
feat(linux): mcompile start to adapt ImportRules
2023-09-22 12:01:45 +02:00
Sabine
9ddd4192d8
feat(linux): mcompile add functions to query Vector
2023-09-22 11:59:16 +02:00
Sabine
9a88b6349b
feat(linux): mcompile add more functions to helpers.cpp/.h
2023-09-22 11:56:53 +02:00
Eberhard Beilharz
90627428c4
chore(linux): Debug test failures
...
This no longer suppresses the output of cleanup.
2023-09-21 18:55:28 +02:00
Eberhard Beilharz
4e4a1215ce
chore(linux): Fix bug in ibus-keyman run-tests.sh script
2023-09-21 18:55:27 +02:00
Eberhard Beilharz
3d8cf1830b
chore(linux): Add dependency to build.sh
...
For integration tests ibus-keyman requires keyman-system-service to
be built, so we add this as a dependency.
2023-09-21 16:11:43 +02:00
Sabine
bf9d20fde7
feat(linux): mcompile move all functions that use VectorFile.txt to helpers
2023-09-21 14:14:26 +02:00
Eberhard Beilharz
b2084930af
fix(linux): Fix detection of unit tests
...
When running on Ubuntu 20.04 Focal, one of the Python dependencies
loads the `unittest` module so that running `km-config` output the
message that Sentry would be disabled because unit tests are running.
This change now uses the callstack to check if we're running unit
tests.
Fixes #9577 .
2023-09-21 12:02:33 +02:00
Eberhard Beilharz
447bc842ae
docs(linux): Update readme for ibus-keyman tests
2023-09-21 10:25:48 +02:00
Eberhard Beilharz
c16b602865
chore(linux): Check existence of services directory
...
When running the integration tests, we provide a test service that
replaces `keyman-system-service`. DBus needs the updated `.service`
files in the `services` directory so that it will use the test
service. This change outputs an error and returns an non-zero
exit code if it can't find the `services` directory, which usually
means that `keyman-system-service` didn't get build.
2023-09-21 10:25:48 +02:00
Eberhard Beilharz
89eab5e0ee
chore(linux): Don't crash if error is not set
2023-09-21 10:25:48 +02:00
Sabine
17a311841f
feat(linux): mcompile small change in mc_import_rules
2023-09-20 13:48:00 +02:00