sci-libs/flexiblas: Use explicit skips for CBLAS tests on mkl

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-10-06 07:49:28 +02:00
parent 5d17bc19e5
commit accc5913ec
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 8 additions and 24 deletions

View File

@ -189,30 +189,22 @@ my_test() {
local -x OMP_NUM_THREADS=1
local -x OPENBLAS_NUM_THREADS=1
local failures=()
local backend
for backend in "${@}"; do
# TODO: remove this, and XFAIL them properly when cmake.eclass
# is fixed to respect nonfatal, https://bugs.gentoo.org/961929
local args=()
if [[ ${backend} == Mkl* ]]; then
einfo "Skipping ${backend} tests, XFAIL"
continue
# XFAIL
args+=( -E 'cblat[23]' )
fi
local -x FLEXIBLAS_TEST=${backend}
local log=${BUILD_DIR}/Testing/Temporary/LastTest.log
einfo "Testing backend ${backend}"
if ! nonfatal cmake_src_test; then
failures+=( "${backend}" )
fi
cmake_src_test "${args[@]}"
if grep -q 'BLAS backend .* not found' "${log}"; then
die "Backend ${backend} failed to load while testing, see ${log}"
fi
done
if [[ ${failures[@]} ]]; then
die "Test runs failed for backends: ${failures[*]}"
fi
}
src_test() {

View File

@ -180,30 +180,22 @@ my_test() {
local -x OMP_NUM_THREADS=1
local -x OPENBLAS_NUM_THREADS=1
local failures=()
local backend
for backend in "${@}"; do
# TODO: remove this, and XFAIL them properly when cmake.eclass
# is fixed to respect nonfatal, https://bugs.gentoo.org/961929
local args=()
if [[ ${backend} == Mkl* ]]; then
einfo "Skipping ${backend} tests, XFAIL"
continue
# XFAIL
args+=( -E 'cblat[23]' )
fi
local -x FLEXIBLAS_TEST=${backend}
local log=${BUILD_DIR}/Testing/Temporary/LastTest.log
einfo "Testing backend ${backend}"
if ! nonfatal cmake_src_test; then
failures+=( "${backend}" )
fi
cmake_src_test "${args[@]}"
if grep -q 'BLAS backend .* not found' "${log}"; then
die "Backend ${backend} failed to load while testing, see ${log}"
fi
done
if [[ ${failures[@]} ]]; then
die "Test runs failed for backends: ${failures[*]}"
fi
}
src_test() {