]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Testsuite: Bugfix: Use the correct mpirun executable as found by FindMPI.cmake
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Dec 2013 19:36:22 +0000 (19:36 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 7 Dec 2013 19:36:22 +0000 (19:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@31919 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_add_test.cmake
deal.II/cmake/setup_testsuite.cmake

index c4a2b90a1eddd4deadeb96f1900bcb857d784953..96c677b5c19520828a531e982ec2646806b0a4de 100644 (file)
@@ -131,7 +131,7 @@ MACRO(DEAL_II_ADD_TEST _category _test_name _comparison_file)
         SET(_diff_target ${_test_name}.mpirun${_n_cpu}.${_build_lowercase}.diff) # diff target name
         SET(_test_full ${_category}/${_test_name}.mpirun=${_n_cpu}.${_build_lowercase}) # full test name
         SET(_test_directory ${CMAKE_CURRENT_BINARY_DIR}/${_target}/mpirun=${_n_cpu}) # directory to run the test in
-        SET(_run_command mpirun -np ${_n_cpu} ${CMAKE_CURRENT_BINARY_DIR}/${_target}/${_target}) # the command to issue
+        SET(_run_command ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${_n_cpu} ${MPIEXEC_PREFLAGS} ${CMAKE_CURRENT_BINARY_DIR}/${_target}/${_target} ${MPIEXEC_POSTFLAGS}) # the command to issue
 
       ENDIF()
 
index 98580373d0b469910c31ec04726fc45d0ac7268a..564a99acbf15d76156c8396d37a29730bc0a6983 100644 (file)
@@ -91,7 +91,15 @@ SET(_options)
 LIST(APPEND _options -DDEAL_II_SOURCE_DIR=${CMAKE_SOURCE_DIR})
 LIST(APPEND _options -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR})
 FOREACH(_var
-    DIFF_DIR NUMDIFF_DIR TEST_DIFF TEST_PICKUP_REGEX TEST_TIME_LIMIT
+    DIFF_DIR
+    NUMDIFF_DIR
+    TEST_DIFF
+    TEST_PICKUP_REGEX
+    TEST_TIME_LIMIT
+    MPIEXEC
+    MPIEXEC_NUMPROC_FLAG
+    MPIEXEC_PREFLAGS
+    MPIEXEC_POSTFLAGS
     )
   # always undefine:
   LIST(APPEND _options "-U${_var}")

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.