2020-10-31 00:14:17 +00:00
|
|
|
nodetest_env = environment()
|
2020-11-07 12:50:11 +00:00
|
|
|
nodetest_env.set('GTK_A11Y', 'test')
|
2020-10-31 00:14:17 +00:00
|
|
|
nodetest_env.set('GSK_RENDERER', 'cairo')
|
|
|
|
nodetest_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
|
|
nodetest_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
|
|
nodetest_env.set('GIO_USE_VFS', 'local')
|
|
|
|
nodetest_env.set('GSETTINGS_BACKEND', 'memory')
|
|
|
|
nodetest_env.set('G_ENABLE_DIAGNOSTIC', '0')
|
|
|
|
|
2017-10-18 00:48:16 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'css', 'nodes')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
2017-10-12 08:05:32 +00:00
|
|
|
|
2021-01-22 04:57:24 +00:00
|
|
|
test_nodes = executable('test-css-nodes', 'test-css-nodes.c', '../../testutils.c',
|
2020-03-06 17:16:54 +00:00
|
|
|
c_args: common_cflags,
|
2017-10-10 03:24:23 +00:00
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir,
|
|
|
|
dependencies: libgtk_dep)
|
2017-10-18 00:48:16 +00:00
|
|
|
test('nodes', test_nodes,
|
2020-10-09 17:17:04 +00:00
|
|
|
args: [ '--tap', '-k' ],
|
|
|
|
protocol: 'tap',
|
2020-10-31 00:14:17 +00:00
|
|
|
env: nodetest_env,
|
2020-10-09 17:17:04 +00:00
|
|
|
suite: 'css',
|
|
|
|
)
|
2017-10-10 03:24:23 +00:00
|
|
|
|
|
|
|
test_data = [
|
|
|
|
'box.ltr.nodes',
|
|
|
|
'box.ltr.ui',
|
|
|
|
'box.rtl.nodes',
|
|
|
|
'box.rtl.ui',
|
|
|
|
'buttons.nodes',
|
|
|
|
'buttons.ui',
|
|
|
|
'checkbutton.ltr.nodes',
|
|
|
|
'checkbutton.ltr.ui',
|
|
|
|
'checkbutton.rtl.nodes',
|
|
|
|
'checkbutton.rtl.ui',
|
|
|
|
'combobox.nodes',
|
|
|
|
'combobox.ui',
|
|
|
|
'entries.nodes',
|
|
|
|
'entries.ui',
|
|
|
|
'expander.ltr.nodes',
|
|
|
|
'expander.ltr.ui',
|
|
|
|
'expander.rtl.nodes',
|
|
|
|
'expander.rtl.ui',
|
|
|
|
'levelbar.ltr.nodes',
|
|
|
|
'levelbar.ltr.ui',
|
|
|
|
'levelbar.rtl.nodes',
|
|
|
|
'levelbar.rtl.ui',
|
|
|
|
'notebook-arrows2.nodes',
|
|
|
|
'notebook-arrows2.ui',
|
|
|
|
'notebook-arrows.nodes',
|
|
|
|
'notebook-arrows.ui',
|
|
|
|
'notebook.bottom.ltr.nodes',
|
|
|
|
'notebook.bottom.ltr.ui',
|
|
|
|
'notebook.bottom.rtl.nodes',
|
|
|
|
'notebook.bottom.rtl.ui',
|
|
|
|
'notebook.left.ltr.nodes',
|
|
|
|
'notebook.left.ltr.ui',
|
|
|
|
'notebook.left.rtl.nodes',
|
|
|
|
'notebook.left.rtl.ui',
|
|
|
|
'notebook.right.ltr.nodes',
|
|
|
|
'notebook.right.ltr.ui',
|
|
|
|
'notebook.right.rtl.nodes',
|
|
|
|
'notebook.right.rtl.ui',
|
|
|
|
'notebook.top.ltr.nodes',
|
|
|
|
'notebook.top.ltr.ui',
|
|
|
|
'notebook.top.rtl.nodes',
|
|
|
|
'notebook.top.rtl.ui',
|
|
|
|
'paned.ltr.nodes',
|
|
|
|
'paned.ltr.ui',
|
|
|
|
'paned.rtl.nodes',
|
|
|
|
'paned.rtl.ui',
|
|
|
|
'progressbar.nodes',
|
|
|
|
'progressbar.ui',
|
|
|
|
'scale.nodes',
|
|
|
|
'scale.ui',
|
|
|
|
]
|
|
|
|
|
|
|
|
if get_option('install-tests')
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('libexecdir', gtk_libexecdir)
|
2017-10-18 00:48:16 +00:00
|
|
|
configure_file(input: 'nodes.test.in',
|
|
|
|
output: 'nodes.test',
|
2017-10-10 03:24:23 +00:00
|
|
|
configuration: conf,
|
2017-10-18 00:48:16 +00:00
|
|
|
install_dir: testdatadir)
|
2017-10-10 03:24:23 +00:00
|
|
|
|
|
|
|
install_data(test_data, install_dir: testexecdir)
|
|
|
|
endif
|