2016-08-21 16:01:14 +00:00
|
|
|
subdir('parser')
|
|
|
|
subdir('nodes')
|
|
|
|
subdir('style')
|
2020-01-17 01:04:00 +00:00
|
|
|
subdir('change')
|
2016-08-21 16:01:14 +00:00
|
|
|
|
2017-10-18 00:48:16 +00:00
|
|
|
testexecdir = join_paths(installed_test_bindir, 'css')
|
|
|
|
testdatadir = join_paths(installed_test_datadir, 'css')
|
|
|
|
|
2017-10-10 03:35:19 +00:00
|
|
|
test_api = executable('api', 'api.c',
|
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:35:19 +00:00
|
|
|
install: get_option('install-tests'),
|
2017-10-18 00:48:16 +00:00
|
|
|
install_dir: testexecdir)
|
|
|
|
test('api', test_api,
|
|
|
|
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:35:19 +00:00
|
|
|
|
2019-05-09 01:04:21 +00:00
|
|
|
test_data = executable('data', ['data.c', '../../gtk/css/gtkcssdataurl.c'],
|
2020-03-06 17:16:54 +00:00
|
|
|
c_args: common_cflags,
|
2019-05-09 01:04:21 +00:00
|
|
|
include_directories: [confinc, ],
|
|
|
|
dependencies: gtk_deps,
|
|
|
|
install: get_option('install-tests'),
|
|
|
|
install_dir: testexecdir)
|
|
|
|
test('data', test_data,
|
|
|
|
args: ['--tap', '-k' ],
|
2020-03-20 13:39:56 +00:00
|
|
|
protocol: 'tap',
|
2020-05-15 16:57:49 +00:00
|
|
|
env: [
|
2019-05-09 01:04:21 +00:00
|
|
|
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
|
|
|
|
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
|
|
|
|
],
|
|
|
|
suite: 'css')
|
|
|
|
|
2017-10-10 03:35:19 +00:00
|
|
|
if get_option('install-tests')
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('libexecdir', gtk_libexecdir)
|
|
|
|
configure_file(input: 'api.test.in',
|
|
|
|
output: 'api.test',
|
|
|
|
configuration: conf,
|
2017-10-18 00:48:16 +00:00
|
|
|
install_dir: testdatadir)
|
2017-10-10 03:35:19 +00:00
|
|
|
endif
|
2020-01-22 05:58:13 +00:00
|
|
|
|
2020-03-20 17:47:58 +00:00
|
|
|
if false and get_option ('profiler')
|
2020-01-22 05:58:13 +00:00
|
|
|
|
|
|
|
test('performance-adwaita', test_performance,
|
2020-01-24 01:21:08 +00:00
|
|
|
args: [ '--mark', 'css validation',
|
2020-01-22 20:55:31 +00:00
|
|
|
'--name', 'performance-adwaita',
|
|
|
|
'--output', join_paths(meson.current_build_dir(), 'output'),
|
|
|
|
join_paths(meson.current_build_dir(), '../../demos/widget-factory/gtk4-widget-factory') ],
|
2020-05-15 16:57:49 +00:00
|
|
|
env: [ 'GTK_THEME=Adwaita' ],
|
2020-01-22 05:58:13 +00:00
|
|
|
suite: [ 'css' ])
|
|
|
|
|
|
|
|
test('performance-empty', test_performance,
|
2020-01-24 01:21:08 +00:00
|
|
|
args: [ '--mark', 'css validation',
|
2020-01-22 20:55:31 +00:00
|
|
|
'--name', 'performance-empty',
|
|
|
|
'--output', join_paths(meson.current_build_dir(), 'output'),
|
|
|
|
join_paths(meson.current_build_dir(), '../../demos/widget-factory/gtk4-widget-factory') ],
|
2020-05-15 16:57:49 +00:00
|
|
|
env: [ 'GTK_THEME=Empty' ],
|
2020-01-22 05:58:13 +00:00
|
|
|
suite: [ 'css' ])
|
|
|
|
|
|
|
|
endif
|