mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
960967623a
Add some tests that check the details of calling compute() and resolve() on number and color values.
80 lines
1.7 KiB
Meson
80 lines
1.7 KiB
Meson
csstest_env = environment()
|
|
csstest_env.set('GTK_A11Y', 'test')
|
|
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')
|
|
csstest_env.set('GDK_DEBUG', 'default-settings')
|
|
|
|
subdir('parser')
|
|
subdir('nodes')
|
|
subdir('style')
|
|
subdir('change')
|
|
|
|
test_api = executable('api',
|
|
sources: ['api.c'],
|
|
c_args: common_cflags,
|
|
dependencies: libgtk_dep,
|
|
)
|
|
|
|
test('api', test_api,
|
|
args: ['--tap', '-k' ],
|
|
protocol: 'tap',
|
|
env: csstest_env,
|
|
suite: 'css',
|
|
)
|
|
|
|
test_data = executable('data',
|
|
sources: ['data.c'],
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
|
include_directories: [confinc, ],
|
|
dependencies: libgtk_static_dep,
|
|
)
|
|
|
|
test('data', test_data,
|
|
args: ['--tap', '-k' ],
|
|
protocol: 'tap',
|
|
env: csstest_env,
|
|
suite: 'css',
|
|
)
|
|
|
|
transition = executable('transition',
|
|
sources: ['transition.c'],
|
|
c_args: common_cflags + ['-DGTK_COMPILATION'],
|
|
dependencies: libgtk_static_dep,
|
|
)
|
|
|
|
test('transition', transition,
|
|
args: [ '--tap', '-k' ],
|
|
protocol: 'tap',
|
|
env: csstest_env,
|
|
suite: 'css'
|
|
)
|
|
|
|
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'
|
|
)
|
|
|
|
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'
|
|
)
|