]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: deal_ii_add_test(): use ./serial subdirectory for output of serial tests 16551/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 26 Jan 2024 19:44:14 +0000 (13:44 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 26 Jan 2024 19:44:14 +0000 (13:44 -0600)
cmake/macros/macro_deal_ii_add_test.cmake

index a987a1d511d05c7e798e86bfc2f31022c3d7183d..438c5c3fc66d0d5d7c8d6c3eed115405f4dffd4e 100644 (file)
@@ -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}")

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.