From aec7733f02e290c8f34c268084bc334d333d9dad Mon Sep 17 00:00:00 2001 From: heister Date: Sat, 2 Nov 2013 20:55:01 +0000 Subject: [PATCH] quicktests: only run if supported git-svn-id: https://svn.dealii.org/trunk@31520 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/tests/quick_tests/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/tests/quick_tests/CMakeLists.txt b/deal.II/tests/quick_tests/CMakeLists.txt index 3389ba5ec1..16b0d31f0d 100644 --- a/deal.II/tests/quick_tests/CMakeLists.txt +++ b/deal.II/tests/quick_tests/CMakeLists.txt @@ -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: -- 2.39.5