[cig-commits] [commit] master: Give an indication of how many tests we have. (7b851ea)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Tue May 27 17:19:07 PDT 2014


Repository : https://github.com/geodynamics/aspect

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/586c90b1a92e2e5718f052f6dba3463d53fdbe70...434a201f7bdf0ba46f41240cc9b8451e0266593f

>---------------------------------------------------------------

commit 7b851ea491e0e6f8af4597cf910afdfe2d2a6c27
Author: Wolfgang Bangerth <bangerth at math.tamu.edu>
Date:   Tue May 27 19:18:08 2014 -0500

    Give an indication of how many tests we have.


>---------------------------------------------------------------

7b851ea491e0e6f8af4597cf910afdfe2d2a6c27
 tests/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 5877796..8108495 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -106,8 +106,11 @@ ENDIF()
 
 FILE(GLOB _tests *.prm)
 
+MESSAGE(STATUS "Adding tests...")
+SET(_n_tests "0")
 LIST(SORT _tests)
 FOREACH(_test ${_tests})
+  MATH(EXPR _n_tests "${_n_tests} + 1")
   GET_FILENAME_COMPONENT(_test ${_test} NAME_WE)
 
   CHECK_LINEAR_ALGEBRA(${CMAKE_CURRENT_SOURCE_DIR}/${_test}.prm)
@@ -292,3 +295,4 @@ FOREACH(_test ${_tests})
   ENDIF()
 ENDFOREACH()
 
+MESSAGE(STATUS "...added ${_n_tests} tests")



More information about the CIG-COMMITS mailing list