]> https://gitweb.dealii.org/ - dealii.git/commitdiff
small cleanup 1436/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 26 Aug 2015 03:55:35 +0000 (22:55 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 26 Aug 2015 14:46:15 +0000 (09:46 -0500)
cmake/macros/macro_deal_ii_pickup_tests.cmake
doc/developers/testsuite.html

index 1ba3844c2df1cb7f90d2520facf5a8526fd66c33..f8730ff37ad72d4839b2d5c84585d6c689e58b11 100644 (file)
@@ -152,7 +152,7 @@ MACRO(DEAL_II_PICKUP_TESTS)
     #
 
     STRING(REGEX MATCHALL
-      "compiler=([a-z]|[A-Z])*(>=|<=|=|>|<)(on|off|yes|no|true|false|[0-9]+(\\.[0-9]+)*)" _matches ${_test}
+      "compiler=[a-zA-Z]*(>=|<=|=|>|<)(on|off|yes|no|true|false|[0-9]+(\\.[0-9]+)*)" _matches ${_test}
       )
 
     FOREACH(_match ${_matches})
@@ -161,10 +161,9 @@ MACRO(DEAL_II_PICKUP_TESTS)
       # (a possible) version number from the feature constraint:
       #
       STRING(REGEX REPLACE
-        "^compiler=(([a-z]|[A-Z])*)(=|>=|<=|<).*$" "\\1"
-        _compiler ${_match}
+        "^compiler=([a-zA-Z]*)(=|>=|<=|>|<).*$" "\\1" _compiler ${_match}
         )
-      STRING(REGEX REPLACE "^compiler=(([a-z]|[A-Z])*)(>=|<=|=|>|<).*$" "\\3"  _operator ${_match})
+      STRING(REGEX REPLACE "^compiler=[a-zA-Z]*(>=|<=|=|>|<).*$" "\\1"  _operator ${_match})
       STRING(REGEX MATCH "(on|off|yes|no|true|false)$" _boolean ${_match})
       STRING(REGEX MATCH "([0-9]+(\\.[0-9]+)*)$" _version ${_match})
 
@@ -269,22 +268,18 @@ Comparison operator \"=\" expected for boolean match.\n"
       # Process version constraints:
       #
       IF(NOT "${_version}" STREQUAL "")
-        IF(NOT ${DEAL_II_WITH_${_feature}})
-          SET(_define_test FALSE)
-        ELSEIF( "${_operator}" STREQUAL "=" AND
-                NOT "${DEAL_II_${_feature}_VERSION}" VERSION_EQUAL "${_version}" )
-          SET(_define_test FALSE)
-        ELSEIF( "${_operator}" STREQUAL ">" AND
-                NOT "${DEAL_II_${_feature}_VERSION}" VERSION_GREATER "${_version}" )
-          SET(_define_test FALSE)
-        ELSEIF( "${_operator}" STREQUAL "<" AND
-                NOT "${DEAL_II_${_feature}_VERSION}" VERSION_LESS "${_version}" )
-          SET(_define_test FALSE)
-        ELSEIF( "${_operator}" STREQUAL ">=" AND
-                "${DEAL_II_${_feature}_VERSION}" VERSION_LESS "${_version}" )
-          SET(_define_test FALSE)
-        ELSEIF( "${_operator}" STREQUAL "<=" AND
-                "${DEAL_II_${_feature}_VERSION}" VERSION_GREATER "${_version}" )
+
+        IF( ( NOT ${DEAL_II_WITH_${_feature}} ) OR
+            ( "${_operator}" STREQUAL "=" AND
+              NOT "${DEAL_II_${_feature}_VERSION}" VERSION_EQUAL "${_version}" ) OR
+            ( "${_operator}" STREQUAL ">" AND
+              NOT "${DEAL_II_${_feature}_VERSION}" VERSION_GREATER "${_version}" ) OR
+            ( "${_operator}" STREQUAL "<" AND
+              NOT "${DEAL_II_${_feature}_VERSION}" VERSION_LESS "${_version}" ) OR
+            ( "${_operator}" STREQUAL ">=" AND
+              "${DEAL_II_${_feature}_VERSION}" VERSION_LESS "${_version}" ) OR
+            ( "${_operator}" STREQUAL "<=" AND
+              "${DEAL_II_${_feature}_VERSION}" VERSION_GREATER "${_version}" ) )
           SET(_define_test FALSE)
         ENDIF()
       ENDIF()
index 8900d8ba2fdf4e15719a1f20b2cb7a4d711d689b..ab59777e3fa5042d017362cf8f3da13c8e17aa43 100644 (file)
@@ -468,7 +468,7 @@ category/test.compiler=Intel&gt;=15.0.3.output
     </p>
     <p>
       The third declaration is an example of how to specify a version
-      constraint: This tets will be set up if deal.II is configured with
+      constraint: This test will be set up if deal.II is configured with
       the Intel compiler version 15.0.3 or higher. The operators
       <code>=</code>, <code>&lt;</code>, <code>&gt;</code>, <code>&lt;=</code>,
       <code>&gt;</code>= are supported.

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.