diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-16 07:42:27 +1000 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2021-04-20 10:30:17 +0300 |
commit | efa5805032c1f70e391b4066428c61d03abd5cb7 (patch) | |
tree | e38113bb5f2281f2120409b38ba581d20aadb1a8 /test | |
parent | a955dca3d5524f4e3a48c543753533743398c7a1 (diff) | |
download | xorg-lib-libxkbcommon-efa5805032c1f70e391b4066428c61d03abd5cb7.tar.gz |
test: add an LVO argument to the XKB layout tester
Slightly easier to debug if we can have it only parse one single layout.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rwxr-xr-x | test/xkeyboard-config-test.py.in | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/xkeyboard-config-test.py.in b/test/xkeyboard-config-test.py.in index 222f8c5..c39b66b 100755 --- a/test/xkeyboard-config-test.py.in +++ b/test/xkeyboard-config-test.py.in @@ -267,6 +267,13 @@ def main(args): parser.add_argument('--verbose', '-v', default=False, action="store_true") parser.add_argument('--keymap-output-dir', default=None, type=str, help='Directory to print compiled keymaps to') + parser.add_argument('--layout', default=None, type=str, + help='Only test the given layout') + parser.add_argument('--variant', default=None, type=str, + help='Only test the given variant') + parser.add_argument('--option', default=None, type=str, + help='Only test the given option') + args = parser.parse_args() verbose = args.verbose @@ -275,7 +282,14 @@ def main(args): tool = tools[args.tool] - combos = parse(args.path) + if any([args.layout, args.variant, args.option]): + combos = [{ + 'l': args.layout, + 'v': args.variant, + 'o': args.option, + }] + else: + combos = parse(args.path) failed = run(combos, tool, args.jobs, keymapdir) sys.exit(failed) |