summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorDylan Baker <dylan.c.baker@intel.com>2021-01-13 13:10:21 -0800
committerMarge Bot <eric+marge@anholt.net>2021-10-16 03:22:24 +0000
commite73096bd6d4c1b3ad6609f85140d313e56ae8b99 (patch)
tree5438cdce62e94258ee2f2227ab3ef8aff5cad2f0 /src/intel
parentaac47c4b24adab806148d04c4ea1bbe06acb2828 (diff)
meson: use gtest protocol for gtest based tests when possible
With the `gtest` protocol meson will add some extra arguments to the test to generate better junit results, which may be useful. This protocol is only available in meson 0.55.0+, so keep using the default `exitcode` protocol for meson older than that. Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8484>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/meson.build1
-rw-r--r--src/intel/isl/meson.build1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build
index b4152501358..10c9cff703c 100644
--- a/src/intel/compiler/meson.build
+++ b/src/intel/compiler/meson.build
@@ -183,5 +183,6 @@ if with_tests
dependencies : [idep_gtest, idep_nir, idep_mesautil],
),
suite : ['intel'],
+ protocol : gtest_test_protocol,
)
endif
diff --git a/src/intel/isl/meson.build b/src/intel/isl/meson.build
index 726dc1359b9..b91d8fe4ac1 100644
--- a/src/intel/isl/meson.build
+++ b/src/intel/isl/meson.build
@@ -168,5 +168,6 @@ if with_tests
cpp_args : '-DIN_UNIT_TEST',
),
suite : ['intel'],
+ protocol : gtest_test_protocol,
)
endif