]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Intermediate
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 21 Aug 2013 18:41:40 +0000 (18:41 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 21 Aug 2013 18:41:40 +0000 (18:41 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30378 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_add_test.cmake
deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake [new file with mode: 0644]
tests/CMakeLists.txt
tests/TODO
tests/aniso/CMakeLists.txt
tests/base/CMakeLists.txt

index 5c923717efd05df7fbda95e3d9f00d05b8e07392..182472015f6e7d9102ec6918f454386c7f5c08ed 100644 (file)
@@ -91,14 +91,21 @@ MACRO(DEAL_II_ADD_TEST _category _test_name)
         )
 
 
+      SET(_comparison ${CMAKE_CURRENT_SOURCE_DIR}/${_test_name})
+      IF(EXISTS ${_comparison}.${_build_lowercase}.output)
+        SET(_comparison ${_comparison}.${_build_lowercase}.output)
+      ELSE()
+        SET(_comparison ${_comparison}.output)
+      ENDIF()
+
       ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_test}/diff
         COMMAND ${DEAL_II_TEST_DIFF}
           ${CMAKE_CURRENT_BINARY_DIR}/${_test}/output
-          ${CMAKE_CURRENT_SOURCE_DIR}/${_test_name}.output
+          ${_comparison}
           | tee ${CMAKE_CURRENT_BINARY_DIR}/${_test}/diff
         DEPENDS
           ${CMAKE_CURRENT_BINARY_DIR}/${_test}/output
-          ${CMAKE_CURRENT_SOURCE_DIR}/${_test_name}.output
+          ${_comparison}
         )
       ADD_CUSTOM_TARGET(${_test}.diff
         DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_test}/diff
diff --git a/deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake b/deal.II/cmake/macros/macro_deal_ii_pickup_tests.cmake
new file mode 100644 (file)
index 0000000..e3b907e
--- /dev/null
@@ -0,0 +1,44 @@
+## ---------------------------------------------------------------------
+## $Id$
+##
+## Copyright (C) 2013 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## The deal.II library is free software; you can use it, redistribute
+## it, and/or modify it under the terms of the GNU Lesser General
+## Public License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+## The full text of the license can be found in the file LICENSE at
+## the top level of the deal.II distribution.
+##
+## ---------------------------------------------------------------------
+
+#
+# A Macro to pick up all tests in a test subdirectory
+#
+# Usage:
+#     DEAL_II_PICKUP_TESTS()
+#
+
+MACRO(DEAL_II_PICKUP_TESTS)
+  GET_FILENAME_COMPONENT(_category ${CMAKE_CURRENT_SOURCE_DIR} NAME)
+
+  FILE(GLOB _tests "*.output")
+
+  FOREACH(_test ${_tests})
+
+    GET_FILENAME_COMPONENT(_test ${_test} NAME_WE)
+
+    IF(_test MATCHES debug)
+      SET(_configuration DEBUG)
+    ELSEIF(_test MATCHES release)
+      SET(_configuration RELEASE)
+    ELSE()
+      SET(_configuration)
+    ENDIF()
+
+    STRING(REGEX REPLACE "\\..*" "." _test ${_test})
+    DEAL_II_ADD_TEST(${_category} ${_test} ${_configuration})
+  ENDFOREACH()
+ENDMACRO()
index 244bc326b162ff026e40b577f9abced6c6a06628..2b177334d4d4f64b1e2286520683a6a3c0b751cf 100644 (file)
@@ -66,3 +66,5 @@ MESSAGE(STATUS "Proceed to test definitions")
 
 ADD_SUBDIRECTORY(aniso)
 ADD_SUBDIRECTORY(base)
+#ADD_SUBDIRECTORY(bits)
+ADD_SUBDIRECTORY(codim_one)
index 58f158b47fade5e126995b7c6793aba610ca8b63..ebac033b9946894d8a9461f8ed0e3e070557dfd6 100644 (file)
@@ -2,3 +2,10 @@ DoFTools::count_dofs_per_block
 FiniteElement:: blocks
 MGTools::compute_row_length_vector
 MGTools::count_dofs_per_block
+
+
+Porting:
+
+all-headers
+benchmark
+the readme
index b901b9ed18918a9a6753986ff932a4380a36e450..0efb828f2cdd3b0c36c15d1e5b924ceffff3d77a 100644 (file)
@@ -1,8 +1 @@
-GET_FILENAME_COMPONENT(_category ${CMAKE_CURRENT_SOURCE_DIR} NAME)
-
-FILE(GLOB _tests "*.output")
-
-FOREACH(_test ${_tests})
-  GET_FILENAME_COMPONENT(_test ${_test} NAME_WE)
-  DEAL_II_ADD_TEST(${_category} ${_test})
-ENDFOREACH()
+DEAL_II_PICKUP_TESTS()
index b901b9ed18918a9a6753986ff932a4380a36e450..0efb828f2cdd3b0c36c15d1e5b924ceffff3d77a 100644 (file)
@@ -1,8 +1 @@
-GET_FILENAME_COMPONENT(_category ${CMAKE_CURRENT_SOURCE_DIR} NAME)
-
-FILE(GLOB _tests "*.output")
-
-FOREACH(_test ${_tests})
-  GET_FILENAME_COMPONENT(_test ${_test} NAME_WE)
-  DEAL_II_ADD_TEST(${_category} ${_test})
-ENDFOREACH()
+DEAL_II_PICKUP_TESTS()

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.