mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
5d17bc19e5
commit
accc5913ec
@ -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() {
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user