diff --git a/meson.build b/meson.build index 88ab5e3e454..20f919f4e46 100644 --- a/meson.build +++ b/meson.build @@ -27,14 +27,6 @@ project( default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'rust_std=2021'] ) -# In recent versions, meson can inject some extra arguments to get richer -# results from gtest based tests. Feature was added in 0.55, but requiring -# 0.59.2 to include an important fix. See https://github.com/mesonbuild/meson/pull/9283. -gtest_test_protocol = 'exitcode' -if meson.version().version_compare('>= 0.59.2') - gtest_test_protocol = 'gtest' -endif - cc = meson.get_compiler('c') cpp = meson.get_compiler('cpp') diff --git a/src/asahi/compiler/meson.build b/src/asahi/compiler/meson.build index 4a751e24e39..56640880b6b 100644 --- a/src/asahi/compiler/meson.build +++ b/src/asahi/compiler/meson.build @@ -121,6 +121,6 @@ if with_tests link_with : [libasahi_compiler], ), suite : ['asahi'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/asahi/layout/meson.build b/src/asahi/layout/meson.build index 8b4461bb0f6..b6a8c001133 100644 --- a/src/asahi/layout/meson.build +++ b/src/asahi/layout/meson.build @@ -50,6 +50,6 @@ if with_tests link_with : [libasahi_layout], ), suite : ['asahi'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/asahi/lib/meson.build b/src/asahi/lib/meson.build index 8ec57b6adb4..c314affc843 100644 --- a/src/asahi/lib/meson.build +++ b/src/asahi/lib/meson.build @@ -89,7 +89,7 @@ if with_tests link_with : [libasahi_lib], ), suite : ['asahi'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/compiler/glsl/tests/meson.build b/src/compiler/glsl/tests/meson.build index 226ff373370..1603ac065f9 100644 --- a/src/compiler/glsl/tests/meson.build +++ b/src/compiler/glsl/tests/meson.build @@ -32,7 +32,7 @@ test( dependencies : [dep_clock, dep_thread, idep_gtest, idep_mesautil], ), suite : ['compiler', 'glsl'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) test( @@ -47,7 +47,7 @@ test( dependencies : [dep_thread, idep_gtest, idep_mesautil], ), suite : ['compiler', 'glsl'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) test( @@ -62,7 +62,7 @@ test( dependencies : [dep_thread, idep_gtest], ), suite : ['compiler', 'glsl'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) # Meson can't auto-skip these on cross builds because of the python wrapper diff --git a/src/compiler/meson.build b/src/compiler/meson.build index c14e2300a5c..edac9e89323 100644 --- a/src/compiler/meson.build +++ b/src/compiler/meson.build @@ -88,7 +88,7 @@ if with_tests dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'spirv'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/compiler/nir/meson.build b/src/compiler/nir/meson.build index 6ed71d4f9bd..1c82ea7f899 100644 --- a/src/compiler/nir/meson.build +++ b/src/compiler/nir/meson.build @@ -428,7 +428,7 @@ if with_tests dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil], ), suite : ['compiler', 'nir'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) test( @@ -453,7 +453,7 @@ if with_tests suite : ['compiler', 'nir'], # TODO: Use a negative filter for gtest instead of the expect failure here. should_fail : meson.get_external_property('xfail', '').contains('load_store_vectorizer'), - protocol : gtest_test_protocol, + protocol : 'gtest', ) test( diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build index 5dc998d5e46..3d7ec917e49 100644 --- a/src/gallium/auxiliary/meson.build +++ b/src/gallium/auxiliary/meson.build @@ -534,7 +534,7 @@ if with_tests dependencies : [idep_gtest], ), suite: 'gallium', - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/gallium/drivers/etnaviv/meson.build b/src/gallium/drivers/etnaviv/meson.build index d6d43c1b441..26b1047e3ae 100644 --- a/src/gallium/drivers/etnaviv/meson.build +++ b/src/gallium/drivers/etnaviv/meson.build @@ -144,6 +144,6 @@ if with_tests dependencies : [idep_gtest, idep_nir], ), suite : ['compiler', 'etnaviv'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/gallium/drivers/virgl/tests/meson.build b/src/gallium/drivers/virgl/tests/meson.build index a41fcc0781e..c7701aa7e89 100644 --- a/src/gallium/drivers/virgl/tests/meson.build +++ b/src/gallium/drivers/virgl/tests/meson.build @@ -28,5 +28,5 @@ test( link_with : [libvirgl, libgallium], ), suite : ['virgl'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) diff --git a/src/gallium/targets/libgl-gdi/meson.build b/src/gallium/targets/libgl-gdi/meson.build index b3dd3f4dca1..3b310fce263 100644 --- a/src/gallium/targets/libgl-gdi/meson.build +++ b/src/gallium/targets/libgl-gdi/meson.build @@ -78,6 +78,6 @@ if with_tests suite : ['wgl'], env : wgl_test_env, depends : [libopengl32], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/gallium/targets/osmesa/meson.build b/src/gallium/targets/osmesa/meson.build index a682301ad3d..d16e7858c63 100644 --- a/src/gallium/targets/osmesa/meson.build +++ b/src/gallium/targets/osmesa/meson.build @@ -94,6 +94,6 @@ if with_tests dependencies : [idep_gtest], ), suite: 'gallium', - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/glx/tests/meson.build b/src/glx/tests/meson.build index e068fe0c58e..3f70646767a 100644 --- a/src/glx/tests/meson.build +++ b/src/glx/tests/meson.build @@ -50,6 +50,6 @@ if with_shared_glapi dependencies : [dep_libdrm, dep_glproto, dep_thread, idep_gtest] ), suite : ['glx'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build index 04e7c9168cc..c3010d6dac7 100644 --- a/src/intel/compiler/meson.build +++ b/src/intel/compiler/meson.build @@ -210,6 +210,6 @@ if with_tests dependencies : [idep_gtest, idep_nir, idep_mesautil, idep_intel_dev], ), suite : ['intel'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/intel/isl/meson.build b/src/intel/isl/meson.build index c9436b82142..6b2213b5967 100644 --- a/src/intel/isl/meson.build +++ b/src/intel/isl/meson.build @@ -171,6 +171,6 @@ if with_tests cpp_args : '-DIN_UNIT_TEST', ), suite : ['intel'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/mapi/glapi/meson.build b/src/mapi/glapi/meson.build index eab9882a1cc..516a2b0d74e 100644 --- a/src/mapi/glapi/meson.build +++ b/src/mapi/glapi/meson.build @@ -111,6 +111,6 @@ if with_any_opengl and not with_shared_glapi and with_tests and not with_platfor dependencies : [idep_gtest, dep_thread], ), suite : ['mapi'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/mapi/shared-glapi/meson.build b/src/mapi/shared-glapi/meson.build index ea27ce1acc9..d23cb7d8a5e 100644 --- a/src/mapi/shared-glapi/meson.build +++ b/src/mapi/shared-glapi/meson.build @@ -74,7 +74,7 @@ if with_any_opengl and with_tests dependencies : [dep_thread, idep_gtest, idep_mesautilc11], ), suite : ['mapi'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) if with_symbols_check test( diff --git a/src/mesa/main/tests/meson.build b/src/mesa/main/tests/meson.build index ac0daab00eb..36615c2f288 100644 --- a/src/mesa/main/tests/meson.build +++ b/src/mesa/main/tests/meson.build @@ -47,5 +47,5 @@ test( link_with : [libmesa, libgallium, link_main_test], ), suite : ['mesa'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) diff --git a/src/microsoft/clc/meson.build b/src/microsoft/clc/meson.build index 35e2fb38f78..8e6e77e7c73 100644 --- a/src/microsoft/clc/meson.build +++ b/src/microsoft/clc/meson.build @@ -44,7 +44,7 @@ if dep_dxheaders.found() and host_machine.system() == 'windows' ) if build_machine.system() == 'windows' - test('clc_compiler_test', clc_compiler_test, timeout: 180, protocol : gtest_test_protocol) + test('clc_compiler_test', clc_compiler_test, timeout: 180, protocol : 'gtest') endif endif diff --git a/src/panfrost/compiler/meson.build b/src/panfrost/compiler/meson.build index ed620ffbfd1..367da2e5a4d 100644 --- a/src/panfrost/compiler/meson.build +++ b/src/panfrost/compiler/meson.build @@ -185,6 +185,6 @@ if with_tests link_with : [libpanfrost_bifrost], ), suite : ['panfrost'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/panfrost/lib/meson.build b/src/panfrost/lib/meson.build index 3d702fc1d28..139f34b9afa 100644 --- a/src/panfrost/lib/meson.build +++ b/src/panfrost/lib/meson.build @@ -142,6 +142,6 @@ if with_tests dependencies: [idep_gtest, libpanfrost_dep], ), suite : ['panfrost'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/panfrost/shared/meson.build b/src/panfrost/shared/meson.build index ce197494774..d33161fd945 100644 --- a/src/panfrost/shared/meson.build +++ b/src/panfrost/shared/meson.build @@ -52,6 +52,6 @@ if with_tests link_with : [libpanfrost_shared], ), suite : ['panfrost'], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif diff --git a/src/util/meson.build b/src/util/meson.build index fe57c35a967..e74b187ed69 100644 --- a/src/util/meson.build +++ b/src/util/meson.build @@ -329,7 +329,7 @@ if with_tests 'tests', 'drirc_home'), 'DRIRC_CONFIGDIR=' + join_paths(meson.current_source_dir(), 'tests', 'drirc_configdir')], - protocol : gtest_test_protocol, + protocol : 'gtest', ) endif @@ -381,7 +381,7 @@ if with_tests dependencies : [idep_mesautil, idep_gtest], ), suite : ['util'], - protocol : gtest_test_protocol, + protocol : 'gtest', timeout : 180, )