Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 30, 2024
1 parent 2cc27ef commit 7b98cf0
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,10 @@ foreach (dbcsr_perf_test ${DBCSR_PERF_TESTS})
COMMAND $<TARGET_FILE:dbcsr_perf>
"${CMAKE_CURRENT_SOURCE_DIR}/${dbcsr_perf_test}")
endif ()
set_tests_properties(dbcsr_perf:${dbcsr_perf_test}
PROPERTIES
ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS}
PROCESSORS ${test_processors}
)
set_tests_properties(
dbcsr_perf:${dbcsr_perf_test}
PROPERTIES ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS} PROCESSORS
${test_processors})
endforeach ()

# =================================== DBCSR CORRECTNESS TESTS Define all the
Expand Down Expand Up @@ -139,11 +138,9 @@ foreach (dbcsr_test ${DBCSR_TESTS_FTN})
if (OpenMP_FOUND)
target_link_libraries(${dbcsr_test} OpenMP::OpenMP_Fortran)
endif ()
set_tests_properties(${dbcsr_test}
PROPERTIES
ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS}
PROCESSORS ${test_processors}
)
set_tests_properties(
${dbcsr_test} PROPERTIES ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS}
PROCESSORS ${test_processors})
endforeach ()

# set the __SHORT_FILE__ per file for dbcsr sources
Expand Down Expand Up @@ -171,11 +168,10 @@ if (WITH_C_API)
else ()
add_test(NAME ${dbcsr_test_cpp_name} COMMAND ./${dbcsr_test_cpp_name})
endif ()
set_tests_properties(${dbcsr_test_cpp_name}
PROPERTIES
ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS}
PROCESSORS ${test_processors}
)
set_tests_properties(
${dbcsr_test_cpp_name}
PROPERTIES ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS} PROCESSORS
${test_processors})
endforeach ()
endif ()

Expand All @@ -188,11 +184,10 @@ if (NOT USE_MPI)
target_link_libraries(${dbcsr_test_backend} PRIVATE dbcsr)
# register unittest executable with CMake
add_test(NAME ${dbcsr_test_backend} COMMAND ./${dbcsr_test_backend})
set_tests_properties(${dbcsr_test_backend}
PROPERTIES
ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS}
PROCESSORS ${NUM_THREADS}
)
set_tests_properties(
${dbcsr_test_backend}
PROPERTIES ENVIRONMENT OMP_NUM_THREADS=${NUM_THREADS} PROCESSORS
${NUM_THREADS})
endforeach ()
endif ()

Expand Down

0 comments on commit 7b98cf0

Please sign in to comment.