2020-10-09 17:17:04 +00:00
|
|
|
csstest_env = environment()
|
2020-11-07 12:50:11 +00:00
|
|
|
csstest_env.set('GTK_A11Y', 'test')
|
2020-10-09 17:17:04 +00:00
|
|
|
csstest_env.set('GSK_RENDERER', 'cairo')
|
|
|
|
csstest_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
|
|
|
csstest_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
|
|
|
csstest_env.set('GSETTINGS_BACKEND', 'memory')
|
|
|
|
csstest_env.set('G_ENABLE_DIAGNOSTIC', '0')
|
2021-02-03 16:56:43 +00:00
|
|
|
csstest_env.set('GDK_DEBUG', 'default-settings')
|
2020-10-09 17:17:04 +00:00
|
|
|
|
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
|
|
|
|
2022-12-20 04:11:20 +00:00
|
|
|
test_api = executable('api',
|
|
|
|
sources: ['api.c'],
|
2020-12-15 12:31:38 +00:00
|
|
|
c_args: common_cflags,
|
|
|
|
dependencies: libgtk_dep,
|
|
|
|
)
|
|
|
|
|
2017-10-18 00:48:16 +00:00
|
|
|
test('api', test_api,
|
2020-12-15 12:31:38 +00:00
|
|
|
args: ['--tap', '-k' ],
|
|
|
|
protocol: 'tap',
|
|
|
|
env: csstest_env,
|
|
|
|
suite: 'css',
|
|
|
|
)
|
2017-10-10 03:35:19 +00:00
|
|
|
|
2022-12-20 04:11:20 +00:00
|
|
|
test_data = executable('data',
|
|
|
|
sources: ['data.c'],
|
2023-05-09 18:01:21 +00:00
|
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
2020-12-15 12:31:38 +00:00
|
|
|
include_directories: [confinc, ],
|
2021-02-03 14:02:06 +00:00
|
|
|
dependencies: libgtk_static_dep,
|
2020-12-15 12:31:38 +00:00
|
|
|
)
|
|
|
|
|
2019-05-09 01:04:21 +00:00
|
|
|
test('data', test_data,
|
2020-12-15 12:31:38 +00:00
|
|
|
args: ['--tap', '-k' ],
|
|
|
|
protocol: 'tap',
|
|
|
|
env: csstest_env,
|
|
|
|
suite: 'css',
|
|
|
|
)
|
2019-05-09 01:04:21 +00:00
|
|
|
|
2022-12-20 04:11:20 +00:00
|
|
|
transition = executable('transition',
|
|
|
|
sources: ['transition.c'],
|
2023-05-09 18:01:21 +00:00
|
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
2021-02-03 13:56:57 +00:00
|
|
|
dependencies: libgtk_static_dep,
|
|
|
|
)
|
|
|
|
|
2021-02-03 19:32:50 +00:00
|
|
|
test('transition', transition,
|
2021-02-03 13:56:57 +00:00
|
|
|
args: [ '--tap', '-k' ],
|
|
|
|
protocol: 'tap',
|
|
|
|
env: csstest_env,
|
|
|
|
suite: 'css'
|
|
|
|
)
|
|
|
|
|
2024-06-01 01:23:46 +00:00
|
|
|
color = executable('color',
|
|
|
|
sources: ['color.c'],
|
|
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
|
|
|
dependencies: libgtk_static_dep,
|
|
|
|
)
|
|
|
|
|
|
|
|
test('color', color,
|
|
|
|
args: [ '--tap', '-k'],
|
|
|
|
protocol: 'tap',
|
|
|
|
env: csstest_env,
|
|
|
|
suite: 'css'
|
|
|
|
)
|
2024-07-07 19:49:03 +00:00
|
|
|
|
|
|
|
compute = executable('compute',
|
|
|
|
sources: ['compute.c'],
|
|
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
|
|
|
dependencies: libgtk_static_dep
|
|
|
|
)
|
|
|
|
|
|
|
|
test('compute', compute,
|
|
|
|
args: [ '--tap', '-k'],
|
|
|
|
protocol: 'tap',
|
|
|
|
env: csstest_env,
|
|
|
|
suite: 'css'
|
|
|
|
)
|