]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: deal_ii_pickup_tests(): print a nice summary
authorMatthias Maier <tamiko@43-1.org>
Sat, 1 Jul 2023 03:34:41 +0000 (22:34 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 1 Jul 2023 04:22:46 +0000 (23:22 -0500)
Let us print a nice little summary at the end of the
deal_ii_pickup_tests() macro that summarizes how many test artifacts
have been found.

cmake/macros/macro_deal_ii_pickup_tests.cmake

index e81c90080afc6948ff73fd3fb0f68ce1e62474a8..4fab00af7999bb651eed91d4771f4c30fe19fd04 100644 (file)
@@ -85,6 +85,12 @@ endmacro()
 
 
 macro(deal_ii_pickup_tests)
+  #
+  # Initialize two counters to zero:
+  #
+  set(_number_of_tests 0)
+  set(_number_of_test_dependencies 0)
+
   #
   # Find bash and perl interpreter:
   #
@@ -343,4 +349,6 @@ Comparison operator \"=\" expected for boolean match.\n"
     deal_ii_add_test(${_category} ${_test} ${_comparison})
 
   endforeach()
+
+  message(STATUS "Test category \"${_category}\": ${_number_of_tests} tests (and ${_number_of_test_dependencies} test dependencies)")
 endmacro()

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.