2017-10-18 08:55:02 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'a11y')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'a11y')
|
|
|
|
|
2018-04-14 14:59:12 +00:00
|
|
|
a11y_state_tests = [
|
2020-02-06 22:12:34 +00:00
|
|
|
'about',
|
2018-04-14 14:59:12 +00:00
|
|
|
'accessible-name',
|
2020-02-06 22:12:34 +00:00
|
|
|
'actionbar',
|
|
|
|
'assistant',
|
2020-02-10 20:06:56 +00:00
|
|
|
#'buttons',
|
2020-02-06 22:12:34 +00:00
|
|
|
'calendar',
|
2018-04-14 14:59:12 +00:00
|
|
|
'colorchooser',
|
2020-02-06 22:12:34 +00:00
|
|
|
'combos',
|
|
|
|
'entries',
|
2018-04-14 14:59:12 +00:00
|
|
|
'expander',
|
2020-02-06 22:12:34 +00:00
|
|
|
'headerbar',
|
|
|
|
'hello-world',
|
|
|
|
'iconview',
|
|
|
|
'infobar',
|
2018-04-14 14:59:12 +00:00
|
|
|
'label',
|
2020-02-06 22:12:34 +00:00
|
|
|
'link',
|
|
|
|
'listbox',
|
2018-04-14 14:59:12 +00:00
|
|
|
'lockbutton',
|
|
|
|
'menubutton',
|
|
|
|
'menubutton2',
|
2020-02-06 22:12:34 +00:00
|
|
|
'messagedialog',
|
|
|
|
'mnemonic',
|
|
|
|
'notebook',
|
|
|
|
'paned',
|
|
|
|
'pickers',
|
|
|
|
'placeholder-text',
|
|
|
|
'progress',
|
|
|
|
'range',
|
|
|
|
'scale-drawvalue',
|
|
|
|
'spinner',
|
|
|
|
'statusbar',
|
2018-04-14 14:59:12 +00:00
|
|
|
'stack',
|
2020-02-06 22:12:34 +00:00
|
|
|
'text',
|
2018-04-14 14:59:12 +00:00
|
|
|
'tooltips',
|
2020-02-06 22:12:34 +00:00
|
|
|
'tree',
|
2018-04-14 14:59:12 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
a11y_dump_bin = executable('accessibility-dump',
|
|
|
|
'accessibility-dump.c',
|
2020-03-06 17:19:24 +00:00
|
|
|
c_args: common_cflags,
|
2018-04-14 14:59:12 +00:00
|
|
|
dependencies: libgtk_dep,
|
2018-09-14 12:15:09 +00:00
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir,
|
2018-04-14 14:59:12 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
foreach t: a11y_state_tests
|
|
|
|
ui_path = join_paths(meson.current_source_dir(), t + '.ui')
|
|
|
|
test (t + ' state',
|
|
|
|
a11y_dump_bin,
|
|
|
|
args: [ '--tap', '-k', ui_path ],
|
2020-03-20 13:39:56 +00:00
|
|
|
protocol: 'tap',
|
2018-04-14 14:59:12 +00:00
|
|
|
env: [
|
|
|
|
'GIO_USE_VOLUME_MONITOR=unix',
|
|
|
|
'GSETTINGS_BACKEND=memory',
|
2020-02-03 14:11:35 +00:00
|
|
|
'GDK_DEBUG=default-settings',
|
2018-04-14 14:59:12 +00:00
|
|
|
'GTK_CSD=1',
|
|
|
|
'G_ENABLE_DIAGNOSTIC=0',
|
|
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
|
|
|
'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
|
|
|
|
],
|
|
|
|
suite: 'a11y',
|
|
|
|
)
|
|
|
|
endforeach
|
|
|
|
|
2017-04-30 21:14:37 +00:00
|
|
|
a11y_tests = [
|
|
|
|
'tree-performance',
|
|
|
|
'text',
|
|
|
|
'children',
|
|
|
|
'derive',
|
|
|
|
'value',
|
|
|
|
'misc',
|
|
|
|
'tree-relationships',
|
|
|
|
'util',
|
|
|
|
]
|
2016-09-26 10:51:17 +00:00
|
|
|
|
2017-04-30 21:14:37 +00:00
|
|
|
foreach t: a11y_tests
|
|
|
|
test_prefix = 'a11y'
|
2016-09-26 10:51:17 +00:00
|
|
|
|
2017-10-10 04:16:10 +00:00
|
|
|
test (t,
|
|
|
|
executable (t, '@0@.c'.format(t),
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir,
|
2017-04-30 21:14:37 +00:00
|
|
|
dependencies: libgtk_dep),
|
|
|
|
args: [ '--tap', '-k', ],
|
2020-03-20 13:39:56 +00:00
|
|
|
protocol: 'tap',
|
2018-04-14 14:59:12 +00:00
|
|
|
timeout: 120,
|
2017-10-18 08:55:02 +00:00
|
|
|
env: [ 'GIO_USE_VOLUME_MONITOR=unix',
|
|
|
|
'GSETTINGS_BACKEND=memory',
|
|
|
|
'GTK_CSD=1',
|
|
|
|
'G_ENABLE_DIAGNOSTIC=0',
|
|
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
2018-02-17 08:48:12 +00:00
|
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
|
|
|
|
'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
|
2017-10-18 08:55:02 +00:00
|
|
|
],
|
2017-10-12 00:33:43 +00:00
|
|
|
suite: 'a11y')
|
2017-04-30 21:14:37 +00:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
a11y_installed_tests = [
|
2017-10-18 00:48:16 +00:00
|
|
|
'tests.test',
|
|
|
|
'children.test',
|
|
|
|
'tree.test',
|
|
|
|
'value.test',
|
|
|
|
'derive.test',
|
|
|
|
'text.test',
|
|
|
|
'util.test',
|
|
|
|
'misc.test',
|
2017-04-30 21:14:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
installed_test_data = [
|
2020-02-06 22:12:34 +00:00
|
|
|
'about.ui', 'about.txt',
|
|
|
|
'accessible-name.ui', 'accessible-name.txt',
|
|
|
|
'actionbar.ui', 'actionbar.txt',
|
|
|
|
'assistant.ui', 'assistant.txt',
|
|
|
|
'buttons.ui', 'buttons.txt',
|
|
|
|
'calendar.ui', 'calendar.txt',
|
|
|
|
'colorchooser.ui', 'colorchooser.txt',
|
|
|
|
'combos.ui', 'combos.txt',
|
|
|
|
'entries.ui', 'entries.txt',
|
|
|
|
'expander.ui', 'expander.txt',
|
|
|
|
'headerbar.ui', 'headerbar.txt',
|
|
|
|
'hello-world.ui', 'hello-world.txt',
|
|
|
|
'iconview.ui', 'iconview.txt',
|
|
|
|
'infobar.ui', 'infobar.txt',
|
|
|
|
'label.ui', 'label.txt',
|
|
|
|
'link.ui', 'link.txt',
|
|
|
|
'listbox.ui', 'listbox.txt',
|
|
|
|
'lockbutton.ui', 'lockbutton.txt',
|
|
|
|
'menubutton.ui', 'menubutton.txt',
|
|
|
|
'menubutton2.ui', 'menubutton2.txt',
|
|
|
|
'messagedialog.ui', 'messagedialog.txt',
|
|
|
|
'mnemonic.ui', 'mnemonic.txt',
|
|
|
|
'notebook.ui', 'notebook.txt',
|
|
|
|
'paned.ui', 'paned.txt',
|
|
|
|
'pickers.ui', 'pickers.txt',
|
|
|
|
'placeholder-text.ui', 'placeholder-text.txt',
|
|
|
|
'progress.ui', 'progress.txt',
|
|
|
|
'range.ui', 'range.txt',
|
|
|
|
'scale-drawvalue.ui', 'scale-drawvalue.txt',
|
|
|
|
'spinner.ui', 'spinner.txt',
|
|
|
|
'stack.ui', 'stack.txt',
|
|
|
|
'statusbar.ui', 'statusbar.txt',
|
|
|
|
'text.ui', 'text.txt',
|
|
|
|
'tooltips.ui', 'tooltips.txt',
|
|
|
|
'tree.ui', 'tree.txt',
|
2017-04-30 21:14:37 +00:00
|
|
|
]
|
|
|
|
|
2017-10-10 04:16:10 +00:00
|
|
|
if get_option('install-tests')
|
|
|
|
test_cdata = configuration_data()
|
|
|
|
test_cdata.set('libexecdir', gtk_libexecdir)
|
|
|
|
|
|
|
|
foreach t: a11y_installed_tests
|
|
|
|
configure_file(input: '@0@.in'.format(t),
|
|
|
|
output: t,
|
|
|
|
configuration: test_cdata,
|
|
|
|
install: true,
|
2017-10-18 00:48:16 +00:00
|
|
|
install_dir: testdatadir)
|
2017-10-10 04:16:10 +00:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
install_data(installed_test_data, install_dir: testexecdir)
|
|
|
|
endif
|