]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Automatically find testsuite subprojects 1426/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 24 Aug 2015 20:55:04 +0000 (15:55 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 24 Aug 2015 20:55:04 +0000 (15:55 -0500)
Glob together all testsuite subprojects instead of maintaining a fixed list
of categories.

tests/CMakeLists.txt

index fe1bcabe962dcc6fa55aafc50656fb75db5be357..784a73c2a13fe33e2dc594beaea9d4ad47fda9b2 100644 (file)
@@ -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:

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.