]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not put testing unconfigured features on the list.
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 23 Jun 2013 15:12:18 +0000 (15:12 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 23 Jun 2013 15:12:18 +0000 (15:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@29846 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index 7c0522db169a8a1bfd5640b21bb10837f311bddb..7acbce28e2b677efa02352e6b0b38d53bd989e36 100644 (file)
@@ -257,12 +257,26 @@ report+mail:
          done
 
 ############################################################
-# by default, all .cc-files are tests. individual Makefiles
-# may overrule this:
-ifeq ($(tests),)
-tests = $(basename $(wildcard *.cc))
+# 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)
+endif
+
+tests_cc = $(tests2)
+tests_base = $(basename $(tests2))
+tests = $(foreach file, $(tests_base), $(wildcard $(file)/ncpu_*))
+
 ############################################################
 # 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.