]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Testsuite: Add a-framework/configure
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 20 Oct 2013 23:45:14 +0000 (23:45 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 20 Oct 2013 23:45:14 +0000 (23:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@31366 0785d39b-7218-0410-832d-ea1e28bc413d

tests/a-framework/CMakeLists.txt

index e39c51b85d2fa39981f342cb7b34ad9e3e6e2830..3af6528f1dd25e97069ce1d8ee1e0d42800dedf6 100644 (file)
@@ -3,3 +3,32 @@ INCLUDE(${DEAL_II_SOURCE_DIR}/cmake/setup_testsuite.cmake)
 PROJECT(testsuite CXX)
 INCLUDE(${DEAL_II_TARGET_CONFIG})
 DEAL_II_PICKUP_TESTS()
+
+#
+# And a configure test:
+#
+
+FOREACH(_build ${DEAL_II_BUILD_TYPES})
+  STRING(TOLOWER ${_build} _build_lowercase)
+
+  SET(_target a-framework-configure)
+  SET(_test a-framework/configure.${_build_lowercase})
+
+  # Respect TEST_PICKUP_REGEX:
+  IF( "${TEST_PICKUP_REGEX}" STREQUAL "" OR
+      _test MATCHES "${TEST_PICKUP_REGEX}"  )
+    ADD_CUSTOM_TARGET(${_target}
+      COMMAND echo "${_test}: CONFIGURE failed." && exit 1
+      )
+    ADD_TEST(NAME ${_test}
+      COMMAND ${CMAKE_COMMAND} -DTRGT=${_target} -DTEST=${_test}
+        -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR} -DEXPECT=configure
+        -P ${DEAL_II_SOURCE_DIR}/cmake/scripts/run_test.cmake
+      WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+      )
+    SET_TESTS_PROPERTIES(${_test} PROPERTIES
+      LABEL "${_category}"
+      TIMEOUT ${TEST_TIME_LIMIT}
+      )
+  ENDIF()
+ENDFOREACH()

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.