]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Patch by Lukas Korous: Disable the testsuite for Microsoft Visual Studio because...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Dec 2014 12:54:53 +0000 (06:54 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 3 Dec 2014 12:54:53 +0000 (06:54 -0600)
CMakeLists.txt
tests/CMakeLists.txt

index 12a7428d7e111d71ea060d1014607c4cfb18b5e2..24fd216a4163de714e26e4f0c6004766546ec096 100644 (file)
@@ -156,7 +156,10 @@ ADD_SUBDIRECTORY(contrib) # has to be included after source
 ADD_SUBDIRECTORY(examples)
 
 IF(DEAL_II_HAVE_TESTS_DIRECTORY)
-  ADD_SUBDIRECTORY(tests)
+  # Turn this off for MSVC. The commands 'test', '> /dev/null', 'rm' are Linux shell commands not available on Windows.
+  IF(NOT DEAL_II_MSVC)
+    ADD_SUBDIRECTORY(tests)
+  ENDIF()
 ENDIF()
 
 #
index 67678d6fabb58bc42161f663506549ca46a628da..103e90ab39f4a8adb55be65ef264ed236dcfa03a 100644 (file)
@@ -75,11 +75,14 @@ ADD_CUSTOM_TARGET(setup_tests)
 # Remove all tests:
 ADD_CUSTOM_TARGET(prune_tests)
 
-# Regenerate tests (run "make rebuild_cache" in subprojects):
-ADD_CUSTOM_TARGET(regen_tests)
-
-# Regenerate tests (run "make clean" in subprojects):
-ADD_CUSTOM_TARGET(clean_tests)
+# Turn this off for MSVC as none of the sub-targets is used for MSVC (see below).
+IF(NOT DEAL_II_MSVC)
+  # Regenerate tests (run "make rebuild_cache" in subprojects):
+  ADD_CUSTOM_TARGET(regen_tests)
+
+  # Regenerate tests (run "make clean" in subprojects):
+  ADD_CUSTOM_TARGET(clean_tests)
+ENDIF()
 
 FOREACH(_category ${_categories})
   SET(_category_dir ${CMAKE_SOURCE_DIR}/tests/${_category})

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.