File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,21 @@ 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
28+ ${MPIEXEC}
29+ ${MPIEXEC_NUMPROC_FLAG} ${num_proc}
30+ ${MPIEXEC_PREFLAGS}
31+ $<TARGET_FILE:${test} >
32+ WORKING_DIRECTORY ${traditional_test_workdir}
33+ )
34+ set_tests_properties (${test} PROPERTIES
35+ PROCESSORS ${num_proc}
36+ )
37+ endfunction ()
38+
2439add_test (xslu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xslu)
2540add_test (xdlu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xdlu)
2641add_test (xclu ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} xclu)
You can’t perform that action at this time.
0 commit comments