ENABLE_LANGUAGE_OPTIONAL(C)
ENABLE_LANGUAGE_OPTIONAL(Fortran)
+ENABLE_TESTING()
+
INCLUDE(setup_post_project_call)
INCLUDE(setup_deal_ii)
ADD_SUBDIRECTORY(contrib) # has to be included after source
ADD_SUBDIRECTORY(examples)
-IF(DEAL_II_COMPONENT_TESTSUITE AND DEAL_II_HAVE_TESTS_DIRECTORY)
- ENABLE_TESTING()
+IF(BUILD_TESTING AND DEAL_II_HAVE_TESTS_DIRECTORY)
ADD_SUBDIRECTORY(${TEST_DIR} ${CMAKE_BINARY_DIR}/tests)
+ELSE()
+ ADD_SUBDIRECTORY(tests)
ENDIF()
#
--- /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.
+##
+## ---------------------------------------------------------------------
+
+SET(CTEST_PROJECT_NAME "deal.II")
+
+SET(CTEST_NIGHTLY_START_TIME "1:00:00 UTC")
+
+SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
+ "/bundled"
+ "/CMakeFiles/CMakeTmp/"
+ "/contrib"
+ )
+
+#SET(CTEST_USE_LAUNCHERS 1)
OFF
)
-IF(DEAL_II_HAVE_TESTS_DIRECTORY)
- OPTION(DEAL_II_COMPONENT_TESTSUITE
- "Setup the full testsuite. TODO"
- OFF
- )
-ENDIF()
-
OPTION(DEAL_II_ALLOW_AUTODETECTION
"Allow to automatically setup features by setting all undefined DEAL_II_WITH_* variables to ON or OFF"
ON
ENDIF()
+OPTION(BUILD_TESTING
+ "This option will enable the configuration of the build tests"
+ OFF
+ )
+
+
########################################################################
# #
# Compilation and linking: #
--- /dev/null
+ADD_TEST(foobar true)
# NUMDIFF_DIR
#
+SET(CTEST_USE_LAUNCHERS TRUE)
+
#
# We need perl for the testsuite:
#
#
SET_IF_EMPTY(DEAL_II_TEST_TIME_LIMIT 120)
+
MESSAGE(STATUS "Proceed to test definitions")
#$(if $(DEAL_II_USE_MPI:no=), $(if $(USE_CONTRIB_P4EST:no=),mpi,),) \