From: Matthias Maier Date: Sat, 1 Jul 2023 03:34:41 +0000 (-0500) Subject: CMake: deal_ii_pickup_tests(): print a nice summary X-Git-Tag: relicensing~824^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2013dd9251c5424e6a9d08ce897dc2e68aa26ffd;p=dealii.git CMake: deal_ii_pickup_tests(): print a nice summary 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. --- diff --git a/cmake/macros/macro_deal_ii_pickup_tests.cmake b/cmake/macros/macro_deal_ii_pickup_tests.cmake index e81c90080a..4fab00af79 100644 --- a/cmake/macros/macro_deal_ii_pickup_tests.cmake +++ b/cmake/macros/macro_deal_ii_pickup_tests.cmake @@ -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()