File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,17 @@ foreach(file_dat IN ITEMS
2121 configure_file (${file_dat} ${file_dat} COPYONLY )
2222endforeach ()
2323
24+ set (traditional_test_workdir ${CMAKE_CURRENT_BINARY_DIR} )
25+ function (add_traditional_test test num_proc)
26+ add_test (NAME ${test}
27+ COMMAND ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${num_proc} $<TARGET_FILE:${test} >
28+ WORKING_DIRECTORY ${traditional_test_workdir}
29+ )
30+ set_tests_properties (${test} PROPERTIES
31+ PROCESSORS ${num_proc}
32+ )
33+ endfunction ()
34+
2435add_test (xslu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xslu)
2536add_test (xdlu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xdlu)
2637add_test (xclu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xclu)
You can’t perform that action at this time.
0 commit comments