gtk2/testsuite/css/style/meson.build

62 lines
1.3 KiB
Meson
Raw Normal View History

2017-10-10 04:18:21 +00:00
testexecdir = join_paths(installed_test_bindir, 'css', 'style')
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,
dependencies: libgtk_dep,
install: get_option('install-tests'),
install_dir: testexecdir,
2016-08-21 16:01:14 +00:00
)
test('style', test_style,
args: [ '--tap', '-k' ],
env: installed_test_env,
suite: 'css')
test_data = [
'adjacent-states.css',
'adjacent-states.nodes',
'adjacent-states.ui',
'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)
configure_file(input: 'style.test.in',
output: 'style.test',
configuration: conf,
install_dir: testdatadir)
install_data(test_data, install_dir: testexecdir)
endif