From: maier Date: Sun, 20 Oct 2013 23:45:14 +0000 (+0000) Subject: Testsuite: Add a-framework/configure X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cfdd88df5094d36e42887a5626536010bf4b91e;p=dealii-svn.git Testsuite: Add a-framework/configure git-svn-id: https://svn.dealii.org/trunk@31366 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/a-framework/CMakeLists.txt b/tests/a-framework/CMakeLists.txt index e39c51b85d..3af6528f1d 100644 --- a/tests/a-framework/CMakeLists.txt +++ b/tests/a-framework/CMakeLists.txt @@ -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()