Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
V. Raffuzzi committed Dec 17, 2024
1 parent 95a0f25 commit 3d55d61
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,16 @@ if(BUILD_TESTS)
list(APPEND UNIT_TESTS_RELATIVE ${_testPath})
endforeach()

if(MPI)
set(MAX_PES_OPTION MAX_PES 1)
else()
set(MAX_PES_OPTION "")
endif()

add_pfunit_ctest(unitTests
TEST_SOURCES ${UNIT_TESTS_RELATIVE}
LINK_LIBRARIES scone
MAX_PES 1
${MAX_PES_OPTION}
)

# pFUnit may have a bug which causes a unused variable `class(Test), allocatable :: t` be
Expand Down

0 comments on commit 3d55d61

Please sign in to comment.