test(test_name, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
timeout: test_timeout,
env: test_env,
suite: ['a11y'] + test_extra_suites,
test('change', test_change,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: changetest_env,
suite: 'css',
)
test('api', test_api,
args: ['--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: csstest_env,
suite: 'css',
)
test('data', test_data,
args: ['--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: csstest_env,
suite: 'css',
)
test('transition', transition,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: csstest_env,
suite: 'css'
)
dependencies: libgtk_dep)
test('nodes', test_nodes,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: nodetest_env,
suite: 'css',
)
'-k',
join_paths(meson.current_source_dir(), testname),
],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir())
)
test('style', test_style,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: styletest_env,
suite: 'css',
)
test(test_name, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
is_parallel: t.get('parallel', false),
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
test(t, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR=@0@'.format(meson.current_build_dir()),
test(test_name, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: [
'GSK_RENDERER=cairo',
'GTK_A11Y=test',
test(test_name, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: [
'GSK_RENDERER=cairo',
'GTK_A11Y=test',
test(test_name, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
timeout: test_timeout,
env: test_env,
suite: ['gtk'] + test_extra_suites,
test(test_name, test_exe,
args: [ '--tap', '-k' ],
- protocol: 'tap',
+ protocol: tap_test_protocol,
timeout: test_timeout,
env: test_env,
suite: ['gtk'] + test_extra_suites,
)
test('c++ keywords', test_exe,
args: [ '--tap', '-k' ],
- #protocol: 'tap',
+ #protocol: tap_test_protocol,
env: test_env,
suite: 'gtk',
)
installed_test_bindir = join_paths(gtk_libexecdir, 'installed-tests', 'gtk-4.0')
installed_test_datadir = join_paths(gtk_datadir, 'installed-tests', 'gtk-4.0')
+if meson.version() == '0.63.0'
+ # Work around https://github.com/mesonbuild/meson/issues/10577
+ tap_test_protocol = 'exitcode'
+else
+ tap_test_protocol = 'tap'
+endif
+
common_env = [
'GIO_USE_VOLUME_MONITOR=unix',
'GSETTINGS_BACKEND=memory',
result = g_test_run ();
- if (using_tap)
- return 0;
-
return result;
}
-
'-o', join_paths(meson.current_build_dir(), 'output'),
join_paths(meson.current_source_dir(), testname),
],
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: reftest_env,
suite: 'reftest',
should_fail: xfails.contains(testname),
test(t, bash,
args: t,
workdir: meson.current_build_dir(),
- protocol: 'tap',
+ protocol: tap_test_protocol,
env: [
'TEST_RESULT_DIR=@0@'.format(join_paths(meson.current_build_dir(), 'output')),
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),