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@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13303>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2021-10-11 23:27:53 -07:00
parent 35b6990706
commit 29177c7cee

View file

@ -158,23 +158,30 @@ libintel_compiler = static_library(
) )
if with_tests if with_tests
foreach t : ['fs_cmod_propagation', 'fs_copy_propagation', test(
'fs_saturate_propagation', 'vf_float_conversions', 'intel_compiler_tests',
'vec4_register_coalesce', 'vec4_copy_propagation', executable(
'vec4_cmod_propagation', 'vec4_dead_code_eliminate', 'intel_compiler_tests',
'eu_compact', 'eu_validate', 'fs_scoreboard'] files(
test( 'test_eu_compact.cpp',
t, 'test_eu_validate.cpp',
executable( 'test_fs_cmod_propagation.cpp',
[t, ir_expression_operation_h], 'test_fs_copy_propagation.cpp',
'test_@0@.cpp'.format(t), 'test_fs_saturate_propagation.cpp',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel], 'test_fs_scoreboard.cpp',
link_with : [ 'test_vec4_cmod_propagation.cpp',
libintel_compiler, libintel_common, libintel_dev, libisl, 'test_vec4_copy_propagation.cpp',
], 'test_vec4_dead_code_eliminate.cpp',
dependencies : [idep_gtest, idep_nir, idep_mesautil], 'test_vec4_register_coalesce.cpp',
'test_vf_float_conversions.cpp',
), ),
suite : ['intel'], ir_expression_operation_h,
) include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_intel],
endforeach link_with : [
libintel_compiler, libintel_common, libintel_dev, libisl,
],
dependencies : [idep_gtest, idep_nir, idep_mesautil],
),
suite : ['intel'],
)
endif endif