gtk/testsuite/css/meson.build

66 lines
2.3 KiB
Meson
Raw Normal View History

2016-08-21 16:01:14 +00:00
subdir('parser')
subdir('nodes')
subdir('style')
subdir('change')
2016-08-21 16:01:14 +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',
c_args: common_cflags,
dependencies: libgtk_dep,
2017-10-10 03:35:19 +00:00
install: get_option('install-tests'),
install_dir: testexecdir)
test('api', test_api,
args: ['--tap', '-k' ],
protocol: 'tap',
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())
],
suite: 'css')
2017-10-10 03:35:19 +00:00
test_data = executable('data', ['data.c', '../../gtk/css/gtkcssdataurl.c'],
c_args: common_cflags,
include_directories: [confinc, ],
dependencies: gtk_deps,
install: get_option('install-tests'),
install_dir: testexecdir)
test('data', test_data,
args: ['--tap', '-k' ],
protocol: 'tap',
env: [
'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,
install_dir: testdatadir)
2017-10-10 03:35:19 +00:00
endif
if false and get_option ('profiler')
test('performance-adwaita', test_performance,
args: [ '--mark', 'css validation',
'--name', 'performance-adwaita',
'--output', join_paths(meson.current_build_dir(), 'output'),
join_paths(meson.current_build_dir(), '../../demos/widget-factory/gtk4-widget-factory') ],
env: [ 'GTK_THEME=Adwaita' ],
suite: [ 'css' ])
test('performance-empty', test_performance,
args: [ '--mark', 'css validation',
'--name', 'performance-empty',
'--output', join_paths(meson.current_build_dir(), 'output'),
join_paths(meson.current_build_dir(), '../../demos/widget-factory/gtk4-widget-factory') ],
env: [ 'GTK_THEME=Empty' ],
suite: [ 'css' ])
endif