gnome-control-center/tests/keyboard/meson.build
Sebastian Keller 7f6dc4511f tests: Add test for keyboard shortcut normalization
This tests if the shortcuts generated from an event are in the format
that the shell expects.
2022-08-22 12:49:13 +00:00

33 lines
787 B
Meson

test_units = [
'test-keyboard-shortcuts'
]
env = [
'G_MESSAGES_DEBUG=all',
'BUILDDIR=' + meson.current_build_dir(),
'TOP_BUILDDIR=' + meson.build_root(),
# Disable ATK, this should not be required but it caused CI failures -- 2018-12-07
'NO_AT_BRIDGE=1'
]
cflags = [
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir())
]
includes = [top_inc, include_directories('../../panels/keyboard')]
foreach unit: test_units
exe = executable(
unit,
[unit + '.c'],
dependencies : common_deps,
include_directories : includes,
link_with : [keyboard_panel_lib],
c_args : cflags
)
endforeach
test(
'test-keyboard',
find_program('test-keyboard.py'),
env : env,
timeout : 60
)