Mesa (main): intel/compiler: Build all tests in a single binary
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 15 17:45:50 UTC 2021
Module: Mesa
Branch: main
Commit: 29177c7ceee351ea9cfa4a0c3f81ae2c70c83d9c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=29177c7ceee351ea9cfa4a0c3f81ae2c70c83d9c
Author: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
Date: Mon Oct 11 23:27:53 2021 -0700
intel/compiler: Build all tests in a single binary
With gtest is possible to filter execution and run only a specific
test suite or individual test, so there's no particular reason here to
generate multiple binaries for the tests of a single module.
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Acked-by: Matt Turner <mattst88 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13303>
---
src/intel/compiler/meson.build | 43 ++++++++++++++++++++++++------------------
1 file changed, 25 insertions(+), 18 deletions(-)
diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build
index 7b9b621a567..b4152501358 100644
--- a/src/intel/compiler/meson.build
+++ b/src/intel/compiler/meson.build
@@ -158,23 +158,30 @@ libintel_compiler = static_library(
)
if with_tests
- foreach t : ['fs_cmod_propagation', 'fs_copy_propagation',
- 'fs_saturate_propagation', 'vf_float_conversions',
- 'vec4_register_coalesce', 'vec4_copy_propagation',
- 'vec4_cmod_propagation', 'vec4_dead_code_eliminate',
- 'eu_compact', 'eu_validate', 'fs_scoreboard']
- test(
- t,
- executable(
- [t, ir_expression_operation_h],
- 'test_ at 0@.cpp'.format(t),
- include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel],
- link_with : [
- libintel_compiler, libintel_common, libintel_dev, libisl,
- ],
- dependencies : [idep_gtest, idep_nir, idep_mesautil],
+ test(
+ 'intel_compiler_tests',
+ executable(
+ 'intel_compiler_tests',
+ files(
+ 'test_eu_compact.cpp',
+ 'test_eu_validate.cpp',
+ 'test_fs_cmod_propagation.cpp',
+ 'test_fs_copy_propagation.cpp',
+ 'test_fs_saturate_propagation.cpp',
+ 'test_fs_scoreboard.cpp',
+ 'test_vec4_cmod_propagation.cpp',
+ 'test_vec4_copy_propagation.cpp',
+ 'test_vec4_dead_code_eliminate.cpp',
+ 'test_vec4_register_coalesce.cpp',
+ 'test_vf_float_conversions.cpp',
),
- suite : ['intel'],
- )
- endforeach
+ ir_expression_operation_h,
+ include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel],
+ link_with : [
+ libintel_compiler, libintel_common, libintel_dev, libisl,
+ ],
+ dependencies : [idep_gtest, idep_nir, idep_mesautil],
+ ),
+ suite : ['intel'],
+ )
endif
More information about the mesa-commit
mailing list