1 # See http://formalverification.cs.utah.edu/ISP_Tests/
3 set(umpire_tests_passing
17 no-error-interleaved-isend
23 no-error-waitany-any_src2
24 no-error-waitany-any_src3
27 no-error-wait-any_src2
28 no-error-wait-any_src3
29 no-error-wait-any_src4
30 no-error-waitany-any_src
37 ) # Passing (no deadlock) tests
39 # These are supposed to deadlock but ISP does not find deadlock
40 # and we don't either. What should be test here?
41 set(umpire_tests_missed_deadlock
48 set(umpire_tests_deadlock
49 any_src-can-deadlock10
50 any_src-can-deadlock10_mod
51 any_src-can-deadlock11
53 any_src-can-deadlock4_mod
55 any_src-can-deadlock5_mod
57 any_src-can-deadlock6_mod
61 any_src-waitall-deadlock
62 any_src-waitall-deadlock2
63 any_src-waitall-deadlock3
64 any_src-waitany-deadlock2
65 any_src-waitany-deadlock
67 any_src-wait-deadlock2
69 basic-deadlock-comm_create
70 basic-deadlock-comm_dup
71 basic-deadlock-comm_split
75 collective-misorder-allreduce
85 ) # failing (deadlocking) tests
87 set(umpire_tests_problematic
88 deadlock-config # No deadlock detected by ISP unless MPI_Send blocking activated
92 # These files are not listed on http://formalverification.cs.utah.edu/ISP_Tests/
98 basic-deadlock-cart_create.c
99 basic-deadlock-cart_sub.c
100 basic-deadlock-graph_create.c
101 basic-deadlock-intercomm_create.c
102 basic-deadlock-intercomm_merge.c
103 change-send-buffer-exhaustive.c
104 change-send-buffer-type-exhaustive.c
105 collective-exhaustive-byte-int-mismatch.c
106 collective-exhaustive-no-error.c
107 collective-misorder.c
108 collective-misorder2.c
110 deadlock-config_blocking.c
111 errhandler-no-error.c
116 group-no-error-exhaustive.c
120 group-no-free-exhaustive.c
121 intercomm_create-deadlock2.c
122 intercomm_create-deadlock3.c
123 intercomm_create-deadlock4.c
124 intercomm_create-deadlock.c
125 intercomm_create-no-error.c
126 intercomm_merge-deadlock.c
132 no-error-derived-comms.c
134 no-error-persistent-all-completions.c
135 no-error-persistent.c
136 no-error-persistent-test.c
137 no-error-persistent-testpartial.c
138 no-error-persistent-waitpartial.c
139 no-error-probe-any_src.c
140 no-error-probe-any_tag.c
143 # no-error-wait2.c # Does not compile.
144 no-error-waitall-any_src2.c
145 no-error-waitall-any_src3.c
146 no-error-waitall-any_src.c
152 partial-recv-exhaustive.c
153 partial-recv-persistent2.c
154 partial-recv-persistent3.c
155 partial-recv-persistent4.c
156 partial-recv-persistent.c
161 probe-any_src-types-can-mismatch.c
162 probe-any_tag-types-can-mismatch.c
164 pt2pt-byte-int-mismatch.c
165 remote_group-no-error.c
168 type-no-error-exhaustive.c
169 type-no-error-exhaustive-with-isends.c
173 type-no-free-exhaustive.c
180 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/README PARENT_SCOPE)
182 if(enable_smpi AND enable_smpi_ISP_testsuite)
183 set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
184 set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
186 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
188 include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
190 foreach (test ${umpire_tests_passing} ${umpire_tests_deadlock} ${umpire_tests_problematic} )
191 add_executable(${test} ${test}.c)
192 target_link_libraries(${test} simgrid)
193 set_source_files_properties(${test}.c PROPERTIES COMPILE_FLAGS "-Wno-error")
194 set(umpire_tesh ${umpire_tesh} ${test})
195 set(files_to_clean ${files_to_clean} ${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh)
198 # TODO, what should we do about ${umpire_tests_missed_deadlock}?
200 foreach (test ${umpire_tests_passing})
201 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "! timeout 30")
202 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "! output display" APPEND)
203 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "\$ \${bindir:=.}/../../../../bin/smpirun -wrapper \"\${bindir:=.}/../../../../bin/simgrid-mc\" -hostfile ../../hostfile -platform ../../../../examples/platforms/small_platform.xml --log=xbt_cfg.thresh:warning -np 3 --cfg=smpi/running_power:1e9 --cfg=smpi/coll_selector:mpich \${bindir:=.}/${test} --log=smpi_coll.thresh:error" APPEND)
206 foreach (test ${umpire_tests_deadlock} ${umpire_tests_problematic} )
207 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "! timeout 30" )
208 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "! expect return 3" APPEND)
209 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "! output display" APPEND)
210 write_file(${CMAKE_CURRENT_BINARY_DIR}/${test}.tesh "\$ \${bindir:=.}/../../../../bin/smpirun -wrapper \"\${bindir:=.}/../../../../bin/simgrid-mc\" -hostfile ../../hostfile -platform ../../../../examples/platforms/small_platform.xml --log=xbt_cfg.thresh:warning -np 3 --cfg=smpi/running_power:1e9 --cfg=smpi/coll_selector:mpich \${bindir:=.}/${test} --log=smpi_coll.thresh:error" APPEND)
214 # If the tests are disabled, still add their files in the archive
215 #################################################################
218 foreach(file ${umpire_src_other})
219 set(sources ${sources} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
222 foreach(file ${umpire_tests_passing} ${umpire_tests_deadlock} ${umpire_tests_missed_deadlock} ${umpire_tests_problematic} )
223 set(sources ${sources} ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c)
226 set(txt_files ${txt_files} ${sources} PARENT_SCOPE)
229 # Erase all tesh files on cleanup: they are generated anyway
230 set_directory_properties ( PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${files_to_clean}" )
232 if(enable_smpi AND enable_smpi_ISP_testsuite)
233 foreach (tesh ${umpire_tesh})
234 ADD_TESH(mc-umpire-${tesh}
235 --setenv srcdir=${CMAKE_CURRENT_SOURCE_DIR}
236 --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}
237 --cd ${CMAKE_CURRENT_SOURCE_DIR}
238 ${CMAKE_CURRENT_BINARY_DIR}/${tesh}.tesh)