2017-10-10 04:18:21 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'css', 'style')
|
2017-10-18 00:48:16 +00:00
|
|
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
2016-08-21 16:01:14 +00:00
|
|
|
|
|
|
|
cssresources = gnome.compile_resources(
|
|
|
|
'cssresources',
|
|
|
|
'test-css-style.gresource.xml',
|
|
|
|
source_dir: '.',
|
|
|
|
)
|
|
|
|
|
|
|
|
test_style = executable(
|
|
|
|
'test-css-style',
|
|
|
|
'test-css-style.c',
|
|
|
|
cssresources,
|
2020-03-06 17:16:54 +00:00
|
|
|
c_args: common_cflags,
|
2017-10-18 00:48:16 +00:00
|
|
|
dependencies: libgtk_dep,
|
2017-10-10 03:32:13 +00:00
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir,
|
2016-08-21 16:01:14 +00:00
|
|
|
)
|
2017-10-18 00:48:16 +00:00
|
|
|
test('style', test_style,
|
|
|
|
args: [ '--tap', '-k' ],
|
2020-03-20 13:39:56 +00:00
|
|
|
protocol: 'tap',
|
2020-05-15 16:57:49 +00:00
|
|
|
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 00:48:16 +00:00
|
|
|
suite: 'css')
|
2017-10-10 03:32:13 +00:00
|
|
|
|
|
|
|
test_data = [
|
|
|
|
'adjacent-states.css',
|
|
|
|
'adjacent-states.nodes',
|
|
|
|
'adjacent-states.ui',
|
2020-01-27 01:49:36 +00:00
|
|
|
'bloomfilter-not.css',
|
|
|
|
'bloomfilter-not.nodes',
|
|
|
|
'bloomfilter-not.ui',
|
2017-10-10 03:32:13 +00:00
|
|
|
'colornames.css',
|
|
|
|
'colornames.nodes',
|
|
|
|
'colornames.ui',
|
|
|
|
'currentcolor.css',
|
|
|
|
'currentcolor.nodes',
|
|
|
|
'currentcolor.ui',
|
|
|
|
'font.css',
|
|
|
|
'font.nodes',
|
|
|
|
'font.ui',
|
|
|
|
'gradient.css',
|
|
|
|
'gradient.nodes',
|
|
|
|
'gradient.ui',
|
|
|
|
'gtk.css',
|
|
|
|
'inherit.css',
|
|
|
|
'inherit.nodes',
|
|
|
|
'inherit.ui',
|
|
|
|
'label.css',
|
|
|
|
'label.nodes',
|
|
|
|
'label.ui',
|
|
|
|
'nth-child.css',
|
|
|
|
'nth-child.nodes',
|
|
|
|
'nth-child.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: 'style.test.in',
|
|
|
|
output: 'style.test',
|
2017-10-10 03:32:13 +00:00
|
|
|
configuration: conf,
|
2017-10-18 00:48:16 +00:00
|
|
|
install_dir: testdatadir)
|
2017-10-10 03:32:13 +00:00
|
|
|
|
|
|
|
install_data(test_data, install_dir: testexecdir)
|
|
|
|
|
|
|
|
endif
|