]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
quicktests: only run if supported
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 2 Nov 2013 20:55:01 +0000 (20:55 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 2 Nov 2013 20:55:01 +0000 (20:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@31520 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/tests/quick_tests/CMakeLists.txt

index 3389ba5ec1ee3ca383549cdde02f6b1e2fdce05c..16b0d31f0d21d9647ffc7776d3f63e78276a72ad 100644 (file)
@@ -101,6 +101,7 @@ ADD_CUSTOM_TARGET(${_target}.run
        DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_target}-OK
        COMMAND echo "${_target}: PASSED.")
 
+IF (DEAL_II_WITH_MPI)
 ADD_TEST(NAME ${_target}
     COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.run -DTEST=${_target}
       -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
@@ -108,6 +109,7 @@ ADD_TEST(NAME ${_target}
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     )
 SET_TESTS_PROPERTIES(${_target} PROPERTIES LABEL "sanity checks")
+ENDIF()
 
 # test p4est. This test exposes a bug in OpenMPI 1.3 and 1.4
 # Update to OpenMPI 1.5 or newer.
@@ -125,6 +127,7 @@ ADD_CUSTOM_TARGET(${_target}.run
        DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_target}-OK
        COMMAND echo "${_target}: PASSED.")
 
+IF (DEAL_II_WITH_P4EST)
 ADD_TEST(NAME ${_target}
     COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.run -DTEST=${_target}
       -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
@@ -132,7 +135,7 @@ ADD_TEST(NAME ${_target}
     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     )
 SET_TESTS_PROPERTIES(${_target} PROPERTIES LABEL "sanity checks")
-
+ENDIF()
 
 #
 # A custom test target:

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.