gtk2/testsuite/a11y/meson.build

157 lines
3.9 KiB
Meson
Raw Normal View History

2017-10-18 08:55:02 +00:00
testexecdir = join_paths(installed_test_bindir, 'a11y')
testdatadir = join_paths(installed_test_datadir, 'a11y')
a11y_state_tests = [
'about',
'accessible-name',
'actionbar',
'assistant',
#'buttons',
'calendar',
'colorchooser',
'combos',
'entries',
'expander',
'headerbar',
'hello-world',
'iconview',
'infobar',
'label',
'link',
'listbox',
'lockbutton',
'menubutton',
'menubutton2',
'messagedialog',
'mnemonic',
'notebook',
'paned',
'pickers',
'placeholder-text',
'progress',
'range',
'scale-drawvalue',
'spinner',
'statusbar',
'stack',
'text',
'tooltips',
'tree',
]
a11y_dump_bin = executable('accessibility-dump',
'accessibility-dump.c',
c_args: common_cflags,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir,
)
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 ],
protocol: 'tap',
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
],
suite: 'a11y',
)
endforeach
a11y_tests = [
'tree-performance',
'text',
'children',
'derive',
'value',
'misc',
'tree-relationships',
'util',
]
2016-09-26 10:51:17 +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'),
c_args: common_cflags,
2017-10-10 04:16:10 +00:00
install_dir: testexecdir,
dependencies: libgtk_dep),
args: [ '--tap', '-k', ],
protocol: 'tap',
timeout: 120,
env: [
2017-10-18 08:55:02 +00:00
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
2017-10-18 08:55:02 +00:00
],
suite: 'a11y')
endforeach
a11y_installed_tests = [
'tests.test',
'children.test',
'tree.test',
'value.test',
'derive.test',
'text.test',
'util.test',
'misc.test',
]
installed_test_data = [
'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-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,
install_dir: testdatadir)
2017-10-10 04:16:10 +00:00
endforeach
install_data(installed_test_data, install_dir: testexecdir)
endif