nir/tests: Use a single binary

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24249>
This commit is contained in:
Konstantin Seurer 2023-07-20 10:35:09 +02:00 committed by Marge Bot
parent 6eb0a3a5b7
commit 1c8577b493

View file

@ -351,6 +351,8 @@ if with_tests
'tests/comparison_pre_tests.cpp',
'tests/control_flow_tests.cpp',
'tests/core_tests.cpp',
'tests/dce_tests.cpp',
'tests/load_store_vectorizer_tests.cpp',
'tests/loop_analyze_tests.cpp',
'tests/loop_unroll_tests.cpp',
'tests/lower_alu_width_tests.cpp',
@ -380,33 +382,4 @@ if with_tests
],
suite : ['compiler', 'nir'],
)
test(
'load_store_vectorizer',
executable(
'load_store_vectorizer',
files('tests/load_store_vectorizer_tests.cpp'),
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
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(
'nir_opt_dce',
executable(
'nir_opt_dce_tests',
files('tests/dce_tests.cpp'),
cpp_args : [cpp_msvc_compat_args],
gnu_symbol_visibility : 'hidden',
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_gallium, inc_gallium_aux],
dependencies : [dep_thread, idep_gtest, idep_nir, idep_mesautil],
),
suite : ['compiler', 'nir'],
)
endif