args: [ '--tap', '-k', ui_path ],
protocol: 'tap',
env: [
- 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
],
suite: 'a11y',
)
args: [ '--tap', '-k', ],
protocol: 'tap',
timeout: 120,
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
],
suite: 'a11y')
endforeach
test('change', test_change,
args: [ '--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
test('api', test_api,
args: ['--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
test('data', test_data,
args: ['--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
'--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',
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir) ],
+ env: [ 'GTK_THEME=Adwaita' ],
suite: [ 'css' ])
test('performance-empty', test_performance,
'--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',
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir) ],
+ env: [ 'GTK_THEME=Empty' ],
suite: [ 'css' ])
endif
test('nodes', test_nodes,
args: [ '--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
join_paths(meson.current_source_dir(), testname),
],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
+ 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
suite: 'css')
endif
test('style', test_style,
args: [ '--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
test(t, test_exe,
args: [ '--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
args: ['--output', join_paths(meson.current_build_dir(), 'compare', renderer[0]),
join_paths(meson.current_source_dir(), 'compare', test + '.node'),
join_paths(meson.current_source_dir(), 'compare', test + '.png')],
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
+ 'GSK_RENDERER=' + renderer[0],
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSK_RENDERER=' + renderer[0]
+ 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
suite: [ 'gsk', 'gsk-compare', 'gsk-' + renderer[0], 'gsk-compare-' + renderer[0] ])
endif
test('parser ' + test, node_parser,
args: [ join_paths(meson.current_source_dir(), 'nodeparser', test)
],
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
+ 'GSK_RENDERER=opengl',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSK_RENDERER=opengl'
+ 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
suite: 'gsk')
endif
test(test_name, test_exe,
args: [ '--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'GSK_RENDERER=cairo',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
- 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
+ 'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
suite: 'gsk')
endforeach
test(test_name, test_exe,
args: [ '--tap', '-k' ],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'NO_AT_BRIDGE=1',
'GSK_RENDERER=cairo',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
],
suite: 'gtk',
should_fail: expect_fail,
test('c++ keywords', test_exe,
args: [ '--tap', '-k' ],
#protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
],
suite: 'gtk')
if get_option('install-tests')
test(test[0] + ' ' + test[1], focus_chain,
args: [ join_paths(meson.current_source_dir(), 'focus-chain', test[0] + '.ui'),
join_paths(meson.current_source_dir(), 'focus-chain', test[0] + '.' + test[1]) ],
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
],
test('performance-layout', test_performance,
args: [ '--mark', 'size allocation', join_paths(meson.current_build_dir(), '../../demos/widget-factory/gtk4-widget-factory') ],
- env: [ 'GTK_THEME=Empty',
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir) ],
+ env: [ 'GTK_THEME=Empty' ],
suite: [ 'gtk' ])
test('performance-snapshot', test_performance,
args: [ '--mark', 'widget snapshot', join_paths(meson.current_build_dir(), '../../demos/widget-factory/gtk4-widget-factory') ],
- env: [ 'GTK_THEME=Empty',
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir) ],
+ env: [ 'GTK_THEME=Empty' ],
suite: [ 'gtk' ])
endif
# otherwise we're going to have failures down the line
diff = find_program('diff', required: true)
+common_env = [
+ 'GIO_USE_VOLUME_MONITOR=unix',
+ 'GSETTINGS_BACKEND=memory',
+ 'GDK_DEBUG=default-settings:misc',
+ 'GTK_CSD=1',
+ 'G_ENABLE_DIAGNOSTIC=0',
+ 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
+]
+
add_test_setup ('x11',
is_default: true,
- env: ['GDK_BACKEND=x11',
- 'TEST_OUTPUT_SUBDIR=x11' ])
+ env: common_env + [
+ 'GDK_BACKEND=x11',
+ 'TEST_OUTPUT_SUBDIR=x11',
+ ])
add_test_setup ('wayland',
- env: ['GDK_BACKEND=wayland',
- 'TEST_OUTPUT_SUBDIR=wayland' ])
+ env: common_env + [
+ 'GDK_BACKEND=wayland',
+ 'TEST_OUTPUT_SUBDIR=wayland',
+ ])
add_test_setup ('broadway',
- env: ['GDK_BACKEND=broadway',
- 'TEST_OUTPUT_SUBDIR=broadway' ])
+ env: common_env + [
+ 'GDK_BACKEND=broadway',
+ 'TEST_OUTPUT_SUBDIR=broadway',
+ ])
subdir('performance')
subdir('gdk')
join_paths(meson.current_source_dir(), testname),
],
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
- 'GTK_CSD=1',
- 'GDK_DEBUG=default-settings',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
+ 'GSK_RENDERER=opengl',
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
- 'GSK_RENDERER=opengl',
- 'REFTEST_MODULE_DIR=@0@'.format(meson.current_build_dir()),
+ 'REFTEST_MODULE_DIR=@0@'.format(meson.current_build_dir())
],
suite: 'reftest',
should_fail: xfails.contains(testname))
args: t,
workdir: meson.current_build_dir(),
protocol: 'tap',
- env: [ 'GIO_USE_VOLUME_MONITOR=unix',
- 'GSETTINGS_BACKEND=memory',
- 'GDK_DEBUG=default-settings',
- 'GTK_CSD=1',
- 'G_ENABLE_DIAGNOSTIC=0',
+ env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
'GTK_BUILDER_TOOL=@0@'.format(get_variable('gtk4_builder_tool').full_path()),