quick checks are now independent of the testsuite and cannot be run any
more from the top binary directory; instead a target "test" must be used.
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30757
0785d39b-7218-0410-832d-
ea1e28bc413d
ENABLE_LANGUAGE_OPTIONAL(C)
ENABLE_LANGUAGE_OPTIONAL(Fortran)
-ENABLE_TESTING()
-
INCLUDE(setup_post_project_call)
INCLUDE(setup_deal_ii)
# A minimalistic set of tests:
#
+ENABLE_TESTING()
+
FOREACH(_build ${DEAL_II_BUILD_TYPES})
STRING(TOLOWER ${_build} _build_lowercase)
SET_TESTS_PROPERTIES(${_target} PROPERTIES LABEL "sanity checks")
ENDFOREACH()
+
+#
+# A custom test target:
+#
+# @TIMO: TODO, write a little script to be run after ctest that queries for
+# (affinity|project|etc).(debug|release)-OK and outputs an appropriate
+# message.
+#
+ADD_CUSTOM_TARGET(test
+ COMMAND ${CMAKE_CTEST_COMMAND} --force-new-ctest-process
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+ )
#
MESSAGE(STATUS "Proceed to test definitions now.")
+ENABLE_TESTING()
+
+#
+# Write a minimalistic CTestTestfile.cmake file to CMAKE_BINARY_DIR:
+#
+FILE(WRITE ${CMAKE_BINARY_DIR}/CTestTestfile.cmake
+ "SUBDIRS(tests)"
+ )
#
# Two custom targets to setup and cleanup the testsuite:
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