]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
By default only run tests for configured features.
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 23 Jun 2013 15:19:55 +0000 (15:19 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 23 Jun 2013 15:19:55 +0000 (15:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@29847 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index 7acbce28e2b677efa02352e6b0b38d53bd989e36..3ab6b359dd97836a3ab019b4224f2fccf7ec3a01 100644 (file)
@@ -259,24 +259,27 @@ report+mail:
 ############################################################
 # all .cc-files are tests by default. After that, find out which tests
 # require unconfigured prerequisites and eliminate those.
-
-tests_all = $(wildcard *.cc)
-ifeq ($(USE_CONTRIB_PETSC),no)
-  tests1 = $(foreach file, $(tests_all), $(shell grep -L PETScWrappers $(file)))
-else
-  tests1 = $(tests_all)
-endif
-
-ifeq ($(USE_CONTRIB_TRILINOS),no)
-  tests2 = $(foreach file, $(tests1), $(shell grep -L TrilinosWrappers $(file)))
-else
-  tests2 = $(tests1)
+# We first test if $tests exists and in this case do not do anything.
+ifeq ($(tests),)
+  tests_all = $(wildcard *.cc)
+  ifeq ($(USE_CONTRIB_PETSC),no)
+    tests1 = $(foreach file, $(tests_all), $(shell grep -L PETScWrappers $(file)))
+  else
+    tests1 = $(tests_all)
+  endif
+
+  ifeq ($(USE_CONTRIB_TRILINOS),no)
+    tests2 = $(foreach file, $(tests1), $(shell grep -L TrilinosWrappers $(file)))
+  else
+    tests2 = $(tests1)
+  endif
+
+  tests_cc = $(tests2)
+  tests = $(basename $(tests2))
 endif
 
-tests_cc = $(tests2)
-tests_base = $(basename $(tests2))
-tests = $(foreach file, $(tests_base), $(wildcard $(file)/ncpu_*))
-
+show-tests:
+       @echo $(tests)
 ############################################################
 # link with all libraries:
 libraries = $(lib-deal2.g)

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.