From 2013dd9251c5424e6a9d08ce897dc2e68aa26ffd Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 30 Jun 2023 22:34:41 -0500 Subject: [PATCH] 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. --- cmake/macros/macro_deal_ii_pickup_tests.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) 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() -- 2.39.5