Adapt tests to having only a subset of types in the build

This commit is contained in:
Martin Kroeker 2020-09-22 23:28:03 +02:00 committed by GitHub
parent dfbc62ef7e
commit 0eaae30e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 3 deletions

View File

@ -17,7 +17,7 @@ if (BUILD_COMPLEX16)
endif()
foreach(test_bin ${OpenBLAS_Tests})
add_executable(${test_bin} ${test_bin}.f)
add_executable(${test_bin} ${test_bin}.f)
target_link_libraries(${test_bin} ${OpenBLAS_LIBNAME})
endforeach()
@ -34,7 +34,19 @@ FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_helper.sh
"fi\n"
)
set(float_types s d c z)
#set(float_types s d c z)
if (BUILD_SINGLE)
list (APPEND float_types s)
endif()
if (BUILD_DOUBLE)
list (APPEND float_types d)
endif()
if (BUILD_COMPLEX)
list (APPEND float_types c)
endif()
if (BUILD_COMPLEX16)
list (APPEND float_types z)
endif()
foreach(float_type ${float_types})
string(TOUPPER ${float_type} float_type_upper)
add_test(NAME "${float_type}blas1"