COMMENT "Update build configuration"
)
ADD_DEPENDENCIES(library setup_build_dir)
+FOREACH(_build ${DEAL_II_BUILD_TYPES})
+ ADD_DEPENDENCIES(setup_build_dir ${DEAL_II_BASE_NAME}${DEAL_II_${_build}_SUFFIX})
+ENDFOREACH()
#
# And a script to remove it upon installation from the install prefix:
##
## ---------------------------------------------------------------------
-# Setup the testsuite:
-INCLUDE(cmake/setup_testsuite.cmake)
-
#
-# This is a bloody hack to avoid a severe performance regression with
-# GNU Make that really does not like 12k top level targets at once...
+# This is a bloody hack to avoid a severe performance penalty when using
+# 12k top level targets with GNU Make that really does not like that...
#
# The only choice we have is to set up every test subdirectory as an
# independent project. Unfortunately this adds quite a significant amount
MESSAGE(STATUS "Proceed to test definitions now.")
+#
+# Two custom targets to setup and cleanup the testsuite:
+#
+
ADD_CUSTOM_TARGET(setup_test)
ADD_CUSTOM_TARGET(cleanup_test)
-FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/deal.IITestfile.cmake "")
+
+#
+# The list of subfolders to set up:
+#
SET(_categories
all-headers aniso base bits build_tests codim_one deal.II fe grid hp integrators lac matrix_free multigrid serialization
LIST(APPEND _categories umfpack)
ENDIF()
-FOREACH(_category ${_categories})
- # avoid stale test definitions:
- FILE(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/${_category}/CTestTestfile.cmake)
+#
+# Pass all variables starting with "TEST_" down to the subprojects:
+#
+GET_CMAKE_PROPERTY(_variables VARIABLES)
+SET(_options)
+FOREACH(_var ${_variables})
+ IF(_var MATCHES "^TEST_")
+ LIST(APPEND _options -D${_var}="${${_var}}")
+ ENDIF()
+ENDFOREACH()
+
+#
+# The hook into CTest so that the tests from the suprojects get picked up
+# by the main project:
+#
+
+FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/deal.IITestfile.cmake "")
+SET_PROPERTY(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ APPEND PROPERTY TEST_INCLUDE_FILE deal.IITestfile.cmake
+ )
+
+#
+# Define a subproject for every enabled category:
+#
+
+FOREACH(_category ${_categories})
ADD_CUSTOM_TARGET(setup_test_${_category}
COMMAND ${CMAKE_COMMAND} -E make_directory
${CMAKE_CURRENT_BINARY_DIR}/${_category}
COMMAND cd ${CMAKE_CURRENT_BINARY_DIR}/${_category} &&
- ${CMAKE_COMMAND}
- -G${CMAKE_GENERATOR}
- -DDEAL_II_DIR=${CMAKE_BINARY_DIR}
+ ${CMAKE_COMMAND} -G${CMAKE_GENERATOR}
+ -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
-DDEAL_II_SOURCE_DIR=${CMAKE_SOURCE_DIR}
- -DTEST_CMAKE_DIR=${CMAKE_CURRENT_SOURCE_DIR}/cmake # TODO: Refactor
- -DTEST_DIFF="${TEST_DIFF}" # TODO: Refactor
- -DTEST_PICKUP_REGEX=${TEST_PICKUP_REGEX} # TODO: Refactor
- -DTEST_TIME_LIMIT=${TEST_TIME_LIMIT} # TODO: Refactor
+ ${_options}
${CMAKE_CURRENT_SOURCE_DIR}/${_category}
> /dev/null # Shoo!
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_category}
"SUBDIRS(${_category})\n"
)
ENDFOREACH()
-
-SET_PROPERTY(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- APPEND PROPERTY TEST_INCLUDE_FILE deal.IITestfile.cmake
- )
===================
A test usually consists of a source file and an output file for
-comparison (Under SOURCE_DIR/tests):
+comparison (under SOURCE_DIR/tests):
category/test.cc
category/test.output
---------------------------------------
Normally, a test will be set up for debug and release configuration (if
-deal.II was configured with combined DebugRelease configuration) or for the
+deal.II was configured with combined DebugRelease build type) or for the
available build configuration (if deal.II was configured either with Debug
-or with Release only configuration).
+or with Release only build type).
If a specific test can only be run in debug or release configurations but
not in both it is possible to restrict the setup by prepeding ".debug" or
category/test.with_umfpack=on.output, or
category/test.with_zlib=off.output
-These tests will be only set up if the specified feature was configured
+These tests will only be set up if the specified feature was configured
accordingly.
Note: It is possible to provide different output files for disabled/enabled
contained tests will only be set up if the feature is enabled. In this case
a feature constraint in the output file name is redundant and should be
avoided. (Folder with guards are distributed_grids, lapack, metis, petsc,
-slepc, trilinos, umfpack)
+slepc, trilinos, umfpack, gla, mpi)
Run mpi tests with mpirun
category/test.mpirun=x.output
+Note: It is possible to provide multiple output files for different mpirun
+values.
+
How to set up and run the testsuite
===================================
To enable the testsuite, configure and build deal.II in a build directory
as normal (installation is not necessary). After that you can setup the
-tests via the "setup_test" target:
+testsuite via the "setup_test" target:
# make setup_test
Note: A TEST_PICKUP_REGEX set via cmake always _overrides_ one set via
environment. If you wish to disable this filter again, undefine
-TEST_PICKUP_REGEX in the Cache:
+TEST_PICKUP_REGEX in the cache:
# cmake -UTEST_PICKUP_REGEX .
## ---------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
-
-SET_IF_EMPTY(TEST_PICKUP_REGEX "$ENV{TEST_PICKUP_REGEX}")
-
-SET(TEST_DIFF) # avoid a bogus warning
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
#
# Header tests are special:
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
## ---------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
-
-SET_IF_EMPTY(TEST_PICKUP_REGEX "$ENV{TEST_PICKUP_REGEX}")
-
-#
-# avoid bogus warnings:
-#
-SET(TEST_DIFF)
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
#
# build_tests tests are special:
# - specifying the maximal wall clock time in seconds a test is allowed
# to run
#
-# TEST_CMAKE_DIR
-# - pointing to a cmake folder where normalize.pl and run_test.cmake are
-# located
+# TEST_DIR
+# - pointing to the ./tests folder where normalize.pl and run_test.cmake are
+# located under cmake/scripts
#
#
# Usage:
&& exit 1)
COMMAND
${PERL_EXECUTABLE} -pi
- ${TEST_CMAKE_DIR}/scripts/normalize.pl
+ ${TEST_DIR}/scripts/normalize.pl
${_test_directory}/output
WORKING_DIRECTORY
${_test_directory}
DEPENDS
${_target}
- ${TEST_CMAKE_DIR}/scripts/normalize.pl
+ ${TEST_DIR}/scripts/normalize.pl
)
ADD_CUSTOM_COMMAND(OUTPUT ${_test_directory}/diff
COMMAND
-DTRGT=${_diff_target}
-DTEST=${_test_full}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
- -P ${TEST_CMAKE_DIR}/scripts/run_test.cmake
+ -P ${TEST_DIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${_test_directory}
)
SET_TESTS_PROPERTIES(${_test_full} PROPERTIES
# Strip the quoting from TEST_DIFF:
#
SET(_test_diff ${TEST_DIFF})
- SEPARATE_ARGUMENTS(TEST_DIFF UNIX_COMMAND ${TEST_DIFF})
SET(DEAL_II_SOURCE_DIR) # avoid a bogus warning
+## ---------------------------------------------------------------------
+## $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.
+##
+## ---------------------------------------------------------------------
+
+#
+# This is a small worker to run a single test in the testsuite
#
-# TODO: The following variables have to be set:
+# The following variables have to be set:
#
-# TARGET
-# TEST
-# DEAL_II_BINARY_DIR
+# TRGT - the name of the target that should be invoked
+# TEST - the test name (used for status messages)
+# DEAL_II_BINARY_DIR - the build directory that contains the target
#
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
# Determine whether the CONFIGURE, BUILD or RUN stages were run successfully:
#
- # configure is special because it only exists in build tests:
- STRING(REGEX MATCH "${TEST}: CONFIGURE failed\\." _configure_regex ${_output})
+ # CONFIGURE is special because it only exists in build tests:
+ STRING(REGEX MATCH "${TEST}: CONFIGURE successful\\." _configure_regex ${_output})
+ STRING(REGEX MATCH "${TEST}: CONFIGURE failed\\." _configure_regex_fail ${_output})
STRING(REGEX MATCH "${TEST}: BUILD successful\\." _build_regex ${_output})
STRING(REGEX MATCH "${TEST}: RUN successful\\." _run_regex ${_output})
- IF(NOT "${_configure_regex}" STREQUAL "")
+ IF(NOT "${_configure_regex_fail}" STREQUAL "")
SET(_stage CONFIGURE)
ELSEIF("${_build_regex}" STREQUAL "")
SET(_stage BUILD)
SET(_stage DIFF)
ENDIF()
-
MESSAGE("Test ${TEST}: ${_stage}")
MESSAGE("=============================== OUTPUT BEGIN ===============================")
- IF("${_build_regex}" STREQUAL "")
- # Some special output in case the BUILD stage failed:
+ IF( "${_build_regex}" STREQUAL "" AND
+ "${_configure_regex}" STREQUAL "" )
+ # Some special output in case the BUILD stage failed in a regression test:
MESSAGE("${TEST}: BUILD failed. Output:")
ENDIF()
MESSAGE(${_output})
+++ /dev/null
-## ---------------------------------------------------------------------
-## $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.
-##
-## ---------------------------------------------------------------------
-
-#
-# Load all macros:
-#
-
-FILE(GLOB _macro_files "${CMAKE_CURRENT_LIST_DIR}/macros/*.cmake")
-FOREACH(_file ${_macro_files})
- INCLUDE(${_file})
-ENDFOREACH()
## ---------------------------------------------------------------------
#
-# Setup testsuite:
+# Setup necessary configuration for a testsuite sub project.
#
-# TODO: Describe and document the following:
+# A testsuite subproject assumes the following cached variables to be set:
#
-# TEST_DIFF
-# TEST_TIME_LIMIT
-# NUMDIFF_DIR
+# DEAL_II_BINARY_DIR
+# DEAL_II_SOURCE_DIR
+# - pointing to a source and binary directory of a deal.II build
#
+# This file sets up the following options, that can be overwritten by
+# environment or command line:
+#
+# TEST_DIFF
+# TEST_TIME_LIMIT
+# TEST_PICKUP_REGEX
+#
+#
+
+#
+# Load all macros:
+#
+
+FILE(GLOB _macro_files "${CMAKE_CURRENT_LIST_DIR}/macros/*.cmake")
+FOREACH(_file ${_macro_files})
+ INCLUDE(${_file})
+ENDFOREACH()
+
+#
+# Pick up values from environment:
+#
+
+SET_IF_EMPTY(DEAL_II_BINARY_DIR $ENV{DEAL_II_BINARY_DIR})
+SET_IF_EMPTY(DEAL_II_BINARY_DIR $ENV{DEAL_II_DIR})
+SET_IF_EMPTY(DEAL_II_SOURCE_DIR $ENV{DEAL_II_SOURCE_DIR})
+SET_IF_EMPTY(TEST_DIFF $ENV{TEST_DIFF})
+SET_IF_EMPTY(TEST_TIME_LIMIT $ENV{TEST_TIME_LIMIT})
+SET_IF_EMPTY(TEST_PICKUP_REGEX $ENV{TEST_PICKUP_REGEX})
+
+IF("${DEAL_II_BINARY_DIR}" STREQUAL "")
+ MESSAGE(FATAL_ERROR "DEAL_II_BINARY_DIR must be set for this test subproject to configure correctly")
+ENDIF()
+IF("${DEAL_II_SOURCE_DIR}" STREQUAL "")
+ MESSAGE(FATAL_ERROR "DEAL_II_SOURCE_DIR must be set for this test subproject to configure correctly")
+ENDIF()
+
+#
+# We need deal.II and Perl as external packages:
+#
+
+FIND_PACKAGE(deal.II 8.1 REQUIRED
+ HINTS ${DEAL_II_BINARY_DIR} ${DEAL_II_DIR}
+ )
+
+FIND_PACKAGE(Perl REQUIRED)
#
-# Wee need a diff tool, preferably numdiff:
+# We need a diff tool, preferably numdiff:
#
+FIND_PROGRAM(DIFF_EXECUTABLE
+ NAMES diff
+ )
+
FIND_PROGRAM(NUMDIFF_EXECUTABLE
NAMES numdiff
HINTS ${NUMDIFF_DIR}
PATH_SUFFIXES bin
)
-FIND_PROGRAM(DIFF_EXECUTABLE
- NAMES diff
- )
+
+MARK_AS_ADVANCED(DIFF_EXECUTABLE NUMDIFF_EXECUTABLE)
+
IF( NUMDIFF_EXECUTABLE MATCHES "-NOTFOUND"
AND DIFF_EXECUTABLE MATCHES "-NOTFOUND" )
MESSAGE(FATAL_ERROR
ELSE()
SET_IF_EMPTY(TEST_DIFF "${DIFF_EXECUTABLE}")
ENDIF()
+
#
-# Son, we have to talk about quotings:
+# "Son, we have to talk about quotings". Avoid overquoting. Due to the fact
+# that TEST_DIFF might be passed to the command line as a string, we have
+# to set it up this way :-/
#
-SEPARATE_ARGUMENTS(TEST_DIFF UNIX_COMMAND ${TEST_DIFF})
-MARK_AS_ADVANCED(DIFF_EXECUTABLE NUMDIFF_EXECUTABLE)
+SEPARATE_ARGUMENTS(TEST_DIFF UNIX_COMMAND ${TEST_DIFF})
#
# Set a default time limit of 120 seconds:
#
+
SET_IF_EMPTY(TEST_TIME_LIMIT 120)
+#
+# And finally, enable testing:
+#
+
+ENABLE_TESTING()
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.8)
-FIND_PACKAGE(deal.II 8.1 REQUIRED HINTS ${DEAL_II_DIR})
-FIND_PACKAGE(Perl REQUIRED)
-INCLUDE(${TEST_CMAKE_DIR}/setup_macros.cmake)
-ENABLE_TESTING()
+INCLUDE(${TEST_DIR}/cmake/setup_testsuite.cmake)
DEAL_II_PICKUP_TESTS()