From: Matthias Maier Date: Fri, 26 Jan 2024 19:44:14 +0000 (-0600) Subject: CMake: deal_ii_add_test(): use ./serial subdirectory for output of serial tests X-Git-Tag: relicensing~103^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7da98f6e95f6789ab9eb342f7c09cdf153e20892;p=dealii.git CMake: deal_ii_add_test(): use ./serial subdirectory for output of serial tests --- diff --git a/cmake/macros/macro_deal_ii_add_test.cmake b/cmake/macros/macro_deal_ii_add_test.cmake index a987a1d511..438c5c3fc6 100644 --- a/cmake/macros/macro_deal_ii_add_test.cmake +++ b/cmake/macros/macro_deal_ii_add_test.cmake @@ -407,6 +407,10 @@ function(deal_ii_add_test _category _test_name _comparison_file) set(_test_full ${_category}/${_test_name}) # full test name set(_test_directory ${CMAKE_CURRENT_BINARY_DIR}/${_test_name}.${_build_lowercase}) # directory to run the test in + if("${_n_cpu}" STREQUAL "0" AND "${_n_threads}" STREQUAL "0") + string(APPEND _test_directory "/serial") + endif() + if(NOT "${_n_cpu}" STREQUAL "0") string(APPEND _test_target ".mpirun${_n_cpu}") string(APPEND _test_full ".mpirun=${_n_cpu}")