mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-27 04:04:23 +08:00
meson: replace deprecated meson.get_cross_property(...) with meson.get_external_property(...)
According to the deprecation note: > It's a pure subset of meson.get_external_property, and works strangely > in host == build configurations, since it would be more accurately > described as get_host_property. Signed-off-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19904>
This commit is contained in:
parent
9b6ab40b3b
commit
8140eca23b
@ -24,7 +24,7 @@ fi
|
||||
# tests in their meson.build with:
|
||||
#
|
||||
# test(...,
|
||||
# should_fail: meson.get_cross_property('xfail', '').contains(t),
|
||||
# should_fail: meson.get_external_property('xfail', '').contains(t),
|
||||
# )
|
||||
#
|
||||
# where t is the name of the test, and the '' is the string to search when
|
||||
|
@ -437,7 +437,7 @@ if with_tests
|
||||
),
|
||||
suite : ['compiler', 'nir'],
|
||||
# TODO: Use a negative filter for gtest instead of the expect failure here.
|
||||
should_fail : meson.get_cross_property('xfail', '').contains('load_store_vectorizer'),
|
||||
should_fail : meson.get_external_property('xfail', '').contains('load_store_vectorizer'),
|
||||
protocol : gtest_test_protocol,
|
||||
)
|
||||
|
||||
|
@ -140,7 +140,7 @@ if with_tests and with_gallium_softpipe and draw_with_llvm
|
||||
link_with : [libllvmpipe, libgallium],
|
||||
),
|
||||
suite : ['llvmpipe'],
|
||||
should_fail : meson.get_cross_property('xfail', '').contains(t),
|
||||
should_fail : meson.get_external_property('xfail', '').contains(t),
|
||||
timeout: 240,
|
||||
)
|
||||
endforeach
|
||||
|
@ -39,7 +39,7 @@ foreach t : ['pipe_barrier_test', 'u_cache_test', 'u_half_test',
|
||||
endif
|
||||
elif t != 'u_cache_test' # u_cache_test is slow
|
||||
test(t, exe, suite: 'gallium',
|
||||
should_fail : meson.get_cross_property('xfail', '').contains(t),
|
||||
should_fail : meson.get_external_property('xfail', '').contains(t),
|
||||
)
|
||||
endif
|
||||
endforeach
|
||||
|
@ -7,6 +7,6 @@ foreach t : ['srgb', 'u_format_test', 'u_format_compatible_test']
|
||||
dependencies : idep_mesautil,
|
||||
),
|
||||
suite : 'format',
|
||||
should_fail : meson.get_cross_property('xfail', '').contains(t),
|
||||
should_fail : meson.get_external_property('xfail', '').contains(t),
|
||||
)
|
||||
endforeach
|
||||
|
Loading…
Reference in New Issue
Block a user