From: Matthias Maier Date: Mon, 24 Aug 2015 20:55:04 +0000 (-0500) Subject: Testsuite: Automatically find testsuite subprojects X-Git-Tag: v8.4.0-rc2~553^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1426%2Fhead;p=dealii.git Testsuite: Automatically find testsuite subprojects Glob together all testsuite subprojects instead of maintaining a fixed list of categories. --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fe1bcabe96..784a73c2a1 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -82,15 +82,20 @@ FOREACH(_var DIFF_DIR NUMDIFF_DIR TEST_PICKUP_REGEX TEST_TIME_LIMIT) ENDIF() ENDFOREACH() -SET(_categories - a-framework algorithms all-headers aniso arpack base bits build_tests - codim_one deal.II distributed_grids fe gla grid hp integrators lac lapack - manifold matrix_free metis mpi multigrid opencascade petsc serialization - slepc trilinos umfpack sharedtria +# +# Find all testsuite subprojects, i.e., every directory that contains a +# CMakeLists.txt file (with the exception of "quick_tests"). +# +SET(_categories) +FILE(GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/* ) -IF(DEFINED DEAL_II_HAVE_TESTS_DIRECTORY) - -ENDIF() +FOREACH(_dir ${_dirs}) + IF( EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt AND + NOT ${_dir} MATCHES quick_tests) + LIST(APPEND _categories ${_dir}) + ENDIF() +ENDFOREACH() # # Custom targets for the testsuite: