Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
For make a cdash report on windows.
[simgrid.git] / buildtools / Cmake / AddTestsWin.cmake
1 if(enable_memcheck)\r
2         exec_program("valgrind --version " OUTPUT_VARIABLE "VALGRIND_VERSION")\r
3         if(VALGRIND_VERSION AND PERL_EXECUTABLE)\r
4                 string(REGEX MATCH "[0-9].[0-9].[0-9]" NEW_VALGRIND_VERSION "${VALGRIND_VERSION}")\r
5                 if(NEW_VALGRIND_VERSION)\r
6                         exec_program("${PROJECT_DIRECTORY}/buildtools/Cmake/generate_memcheck_tests.pl ${PROJECT_DIRECTORY} ${PROJECT_DIRECTORY}/buildtools/Cmake/AddTests.cmake > ${PROJECT_DIRECTORY}/buildtools/Cmake/memcheck_tests.cmake")\r
7                 else(NEW_VALGRIND_VERSION)\r
8                         set(enable_memcheck false)\r
9                         message("Command valgrind not found --> enable_memcheck autoset to false.")\r
10                 endif(NEW_VALGRIND_VERSION)\r
11         else(VALGRIND_VERSION AND PERL_EXECUTABLE)\r
12                 set(enable_memcheck false)\r
13                 message(FATAL_ERROR "Command valgrind or perl not found --> enable_memcheck autoset to false.")\r
14         endif(VALGRIND_VERSION AND PERL_EXECUTABLE)\r
15 endif(enable_memcheck)\r
16 \r
17 ### For code coverage\r
18 ### Set some variables\r
19 SET(UPDATE_TYPE "svn")\r
20 SET(DROP_METHOD "http")\r
21 SET(DROP_SITE "cdash.inria.fr/CDash")\r
22 SET(DROP_LOCATION "/submit.php?project=${PROJECT_NAME}")\r
23 SET(DROP_SITE_CDASH TRUE)\r
24 SET(TRIGGER_SITE "http://cdash.inria.fr/CDash/cgi-bin/Submit-Random-TestingResults.cgi")\r
25 set(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes --read-var-info=no")\r
26 SET(VALGRIND_COMMAND "${PROJECT_DIRECTORY}/buildtools/Cmake/my_valgrind.pl")\r
27 SET(MEMORYCHECK_COMMAND "${PROJECT_DIRECTORY}/buildtools/Cmake/my_valgrind.pl")\r
28 #If you use the --read-var-info option Memcheck will run more slowly but may give a more detailed description of any illegal address.\r
29 \r
30 INCLUDE(CTest)\r
31 ENABLE_TESTING()\r
32 \r
33 # BEGIN TESH TESTS\r
34 \r
35 # teshsuite/xbt\r
36 IF(${ARCH_32_BITS})\r
37   ADD_TEST(tesh-gras-msg_handle-sg-32   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/msg_handle/test_sg_32)\r
38 ELSE(${ARCH_32_BITS})\r
39   ADD_TEST(tesh-gras-msg_handle-sg-64   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/msg_handle/test_sg_64)\r
40 ENDIF(${ARCH_32_BITS})\r
41 \r
42 ADD_TEST(tesh-gras-empty_main-rl        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/empty_main/test_rl)\r
43 ADD_TEST(tesh-gras-empty_main-sg        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/empty_main/test_sg)\r
44 \r
45 IF(${ARCH_32_BITS})\r
46   ADD_TEST(tesh-gras-small_sleep-sg-32  perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/small_sleep/test_sg_32)\r
47 ELSE(${ARCH_32_BITS})\r
48   ADD_TEST(tesh-gras-small_sleep-sg-64  perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite gras/small_sleep/test_sg_64)\r
49 ENDIF(${ARCH_32_BITS})\r
50 \r
51 ADD_TEST(tesh-msg-get_sender    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite msg/get_sender.tesh)                              \r
52 ADD_TEST(tesh-simdag-reinit_costs       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/test_reinit_costs.tesh)\r
53 ADD_TEST(tesh-simdag-parser             perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite/simdag/platforms basic_parsing_test.tesh)\r
54 ADD_TEST(tesh-simdag-flatifier          perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite/simdag/platforms flatifier.tesh)\r
55 ADD_TEST(tesh-simdag-basic0     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic0.tesh)\r
56 ADD_TEST(tesh-simdag-basic1     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic1.tesh)\r
57 ADD_TEST(tesh-simdag-basic2     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic2.tesh)\r
58 ADD_TEST(tesh-simdag-basic3     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic3.tesh)\r
59 ADD_TEST(tesh-simdag-basic4     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic4.tesh)\r
60 ADD_TEST(tesh-simdag-basic5     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic5.tesh)\r
61 ADD_TEST(tesh-simdag-basic6     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/basic6.tesh)\r
62 ADD_TEST(tesh-simdag-p2p-1      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency1.tesh)\r
63 ADD_TEST(tesh-simdag-p2p-2      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency2.tesh)\r
64 ADD_TEST(tesh-simdag-p2p-3      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency3.tesh)\r
65 ADD_TEST(tesh-simdag-p2p-3      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency_bound.tesh)\r
66 ADD_TEST(tesh-simdag-mxn-1      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_all2all.tesh)\r
67 ADD_TEST(tesh-simdag-mxn-2      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_independent_comm.tesh)\r
68 ADD_TEST(tesh-simdag-mxn-3      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_scatter.tesh)\r
69 ADD_TEST(tesh-simdag-par-1      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/partask/test_comp_only_seq.tesh)\r
70 ADD_TEST(tesh-simdag-par-2      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/teshsuite simdag/partask/test_comp_only_par.tesh)\r
71 \r
72 # GRAS examples\r
73 ADD_TEST(gras-ping-rl           perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/ping test_rl)\r
74 ADD_TEST(gras-rpc-rl            perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/rpc test_rl)\r
75 ADD_TEST(gras-spawn-rl          perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/spawn test_rl)\r
76 \r
77 ADD_TEST(gras-timer-rl          perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/timer test_rl)\r
78 set_tests_properties(gras-timer-rl PROPERTIES TIMEOUT 10)\r
79 \r
80 ADD_TEST(gras-chrono-rl         perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/chrono test_rl)\r
81 set_tests_properties(gras-chrono-rl PROPERTIES TIMEOUT 10)\r
82 \r
83 ADD_TEST(gras-simple_token-rl   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token test_rl)\r
84 \r
85 ADD_TEST(gras-mmrpc-rl          perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/mmrpc test_rl)\r
86 set_tests_properties(gras-mmrpc-rl PROPERTIES TIMEOUT 10)\r
87 \r
88 ADD_TEST(gras-all2all-rl        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/all2all test_rl)\r
89 set_tests_properties(gras-all2all-rl PROPERTIES TIMEOUT 10)\r
90 \r
91 ADD_TEST(gras-pmm-rl            perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/pmm test_rl)\r
92 set_tests_properties(gras-pmm-rl PROPERTIES TIMEOUT 10)\r
93 \r
94 ADD_TEST(gras-synchro-rl        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/synchro test_rl)\r
95 set_tests_properties(gras-synchro-rl PROPERTIES TIMEOUT 10)\r
96 \r
97 ADD_TEST(gras-properties-rl     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/properties test_rl)\r
98 set_tests_properties(gras-properties-rl PROPERTIES TIMEOUT 10)\r
99 \r
100 # MSG examples\r
101 ADD_TEST(msg-suspend            perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg suspend/suspend.tesh)\r
102 ADD_TEST(msg-masterslave        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave.tesh)\r
103 ADD_TEST(msg-masterslave-forwarder      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_forwarder.tesh)\r
104 ADD_TEST(msg-masterslave-failure        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_failure.tesh)\r
105 ADD_TEST(msg-masterslave-bypass perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_bypass.tesh)\r
106 ADD_TEST(msg-masterslave-mailbox        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_mailbox.tesh)\r
107 ADD_TEST(msg-masterslave-vivaldi        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_vivaldi.tesh)\r
108 ADD_TEST(msg-migration          perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg migration/migration.tesh)\r
109 ADD_TEST(msg-ptask              perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg parallel_task/parallel_task.tesh)\r
110 ADD_TEST(msg-priority           ${PROJECT_DIRECTORY}/examples/msg/priority/priority.exe ${PROJECT_DIRECTORY}/examples/msg/small_platform.xml  ${PROJECT_DIRECTORY}/examples/msg/priority/deployment_priority.xml)\r
111 ADD_TEST(msg-properties         perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg properties/msg_prop.tesh)\r
112 ADD_TEST(msg-trace              perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg trace/trace.tesh)\r
113 ADD_TEST(msg-masterslave_cpu_ti perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_cpu_ti.tesh)\r
114 ADD_TEST(msg_icomms perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg/icomms peer.tesh)\r
115 ADD_TEST(msg_icomms_waitany ${PROJECT_DIRECTORY}/examples/msg/icomms/peer3 \r
116                                                                 ${PROJECT_DIRECTORY}/examples/msg/icomms/small_platform.xml\r
117                                                                 ${PROJECT_DIRECTORY}/examples/msg/icomms/deployment_peer05.xml)\r
118 \r
119 IF(HAVE_TRACING)\r
120   ADD_TEST(tracing-ms perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg tracing/ms.tesh)\r
121   ADD_TEST(tracing-categories perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg tracing/categories.tesh)\r
122   ADD_TEST(tracing-volume perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg tracing/volume.tesh)\r
123   ADD_TEST(tracing-tasks perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg tracing/tasks.tesh)\r
124   ADD_TEST(tracing-process-migration perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg tracing/procmig.tesh)\r
125 ENDIF(HAVE_TRACING)\r
126 \r
127 IF(${ARCH_32_BITS})\r
128   ADD_TEST(gras-ping-sg-32      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/ping test_sg_32)\r
129   ADD_TEST(gras-rpc-sg-32       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/rpc test_sg_32)\r
130   ADD_TEST(gras-spawn-sg-32     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/spawn test_sg_32)\r
131   ADD_TEST(gras-timer-sg-32     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/timer test_sg_32)\r
132   ADD_TEST(gras-chrono-sg-32    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/chrono test_sg_32)\r
133   ADD_TEST(gras-simple_token-sg-32      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token test_sg_32)\r
134   ADD_TEST(gras-mmrpc-sg-32     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/mmrpc test_sg_32)\r
135   ADD_TEST(gras-all2all-sg-32   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/all2all test_sg_32)\r
136   ADD_TEST(gras-pmm-sg-32       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/pmm test_sg_32)\r
137   ADD_TEST(gras-synchro-sg-32   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/synchro test_sg_32)\r
138 ELSE(${ARCH_32_BITS})\r
139   ADD_TEST(gras-ping-sg-64      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/ping test_sg_64)\r
140   ADD_TEST(gras-rpc-sg-64       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/rpc test_sg_64)\r
141   ADD_TEST(gras-spawn-sg-64     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/spawn test_sg_64)\r
142   ADD_TEST(gras-timer-sg-64     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/timer test_sg_64)\r
143   ADD_TEST(gras-chrono-sg-64    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/chrono test_sg_64)\r
144   ADD_TEST(gras-simple_token-sg-64      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token test_sg_64)\r
145   ADD_TEST(gras-mmrpc-sg-64     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/mmrpc test_sg_64)\r
146   ADD_TEST(gras-all2all-sg-64   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/all2all test_sg_64)\r
147   ADD_TEST(gras-pmm-sg-64       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/pmm test_sg_64)\r
148   ADD_TEST(gras-synchro-sg-64   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/synchro test_sg_64)\r
149 ENDIF(${ARCH_32_BITS})\r
150 ADD_TEST(gras-properties-sg     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/gras/properties test_sg)\r
151 \r
152 # simdag examples\r
153 ADD_TEST(simdag-test_simdag     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/simdag test_simdag.tesh)\r
154 ADD_TEST(simdag-test_simdag2    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/simdag test_simdag2.tesh)\r
155 ADD_TEST(simdag-test_simdag_seq_access  perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/simdag test_simdag_seq_access.tesh)\r
156 ADD_TEST(simdag-test_prop       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/simdag properties/test_prop.tesh)\r
157 ADD_TEST(simdag-metaxml_test    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/simdag metaxml/metaxml_test.tesh)\r
158 set_tests_properties(simdag-metaxml_test PROPERTIES WILL_FAIL true)\r
159 ADD_TEST(simdag-minmin_test     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/simdag/scheduling test_minmin.tesh)\r
160 \r
161 if(enable_smpi)\r
162 # smpi examples\r
163 ADD_TEST(smpi-bcast     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${CMAKE_BINARY_DIR}/examples/smpi ${PROJECT_DIRECTORY}/examples/smpi/bcast.tesh)\r
164 ADD_TEST(smpi-reduce    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${CMAKE_BINARY_DIR}/examples/smpi ${PROJECT_DIRECTORY}/examples/smpi/reduce.tesh)\r
165 if(HAVE_TRACING)\r
166   ADD_TEST(smpi-tracing-ptp perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${CMAKE_BINARY_DIR}/examples/smpi ${PROJECT_DIRECTORY}/examples/smpi/smpi_traced.tesh)\r
167 endif(HAVE_TRACING)\r
168 endif(enable_smpi)\r
169 \r
170 if(HAVE_GTNETS)\r
171 ADD_TEST(msg-gtnets-waxman                      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-waxman.tesh)\r
172 ADD_TEST(msg-gtnets-dogbone                     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-dogbone-gtnets.tesh)\r
173 ADD_TEST(msg-gtnets-onelink                     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-onelink-gtnets.tesh)\r
174 ADD_TEST(msg-gtnets-dogbone-lv08        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-dogbone-lv08.tesh)\r
175 ADD_TEST(msg-gtnets-onelink-lv08        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-onelink-lv08.tesh)\r
176   if(HAVE_TRACING)\r
177   ADD_TEST(msg-tracing-gtnets-waxman                    perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-waxman.tesh)\r
178   ADD_TEST(msg-tracing-gtnets-dogbone                   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-dogbone-gtnets.tesh)\r
179   ADD_TEST(msg-tracing-gtnets-onelink                   perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-onelink-gtnets.tesh)\r
180   ADD_TEST(msg-tracing-gtnets-dogbone-lv08      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-dogbone-lv08.tesh)\r
181   ADD_TEST(msg-tracing-gtnets-onelink-lv08      perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg gtnets/tracing-gtnets-onelink-lv08.tesh)\r
182   endif(HAVE_TRACING)\r
183 endif(HAVE_GTNETS)\r
184 \r
185 # Lua examples\r
186 if(HAVE_LUA)\r
187 ADD_TEST(lua-masterslave                perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/lua master_slave.tesh)\r
188 ADD_TEST(lua-mult_matrix                perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/lua mult_matrix.tesh)\r
189 ADD_TEST(lua-masterslave_bypass perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/lua master_slave_bypass.tesh)\r
190 ADD_TEST(msg-masterslave-console        perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg/masterslave/ masterslave_console.tesh)\r
191 endif(HAVE_LUA)\r
192 \r
193 # Ruby examples\r
194 if(HAVE_RUBY)\r
195 ADD_TEST(ruby-masterslave       perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/ruby MasterSlave.tesh)\r
196 ADD_TEST(ruby-ping_pong         perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/ruby PingPong.tesh)\r
197 ADD_TEST(ruby-quicksort         perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/ruby Quicksort.tesh)\r
198 endif(HAVE_RUBY)\r
199 \r
200 # END TESH TESTS\r
201 \r
202 if(HAVE_MC)\r
203 ADD_TEST(mc-bugged1                     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg/mc bugged1.tesh)\r
204 ADD_TEST(mc-bugged2                     perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg/mc bugged2.tesh)\r
205 ADD_TEST(mc-centralized         perl ${PROJECT_DIRECTORY}/buildtools/Cmake/tesh.pl ${PROJECT_DIRECTORY}/examples/msg/mc centralized.tesh)\r
206 endif(HAVE_MC)\r
207 \r
208 if(HAVE_JAVA)\r
209 # java examples\r
210 ADD_TEST(java-basic     ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/basic BasicTest ${simgrid_BINARY_DIR})\r
211 ADD_TEST(java-pingpong  ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/ping_pong PingPongTest ${simgrid_BINARY_DIR})\r
212 ADD_TEST(java-comm_time ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/comm_time CommTimeTest ${simgrid_BINARY_DIR})\r
213 ADD_TEST(java-suspend   ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/suspend SuspendTest ${simgrid_BINARY_DIR})\r
214 endif(HAVE_JAVA)\r
215 \r
216 if(HAVE_RUBY)\r
217 set_tests_properties(ruby-quicksort PROPERTIES WILL_FAIL true)\r
218 endif(HAVE_RUBY)\r
219 \r
220 ADD_TEST(tesh-log-large         ${PROJECT_DIRECTORY}/teshsuite/xbt/log_large_test --log=root.fmt:%m%n)\r
221 \r
222 ADD_TEST(msg-sendrecv_CLM03     ${PROJECT_DIRECTORY}/examples/msg/sendrecv/sendrecv.exe ${PROJECT_DIRECTORY}/examples/msg/sendrecv/platform_sendrecv.xml ${PROJECT_DIRECTORY}/examples/msg/sendrecv/deployment_sendrecv.xml --cfg=workstation/model:CLM03 --cfg=cpu/model:Cas01 --cfg=network/model:CM02)\r
223 ADD_TEST(msg-sendrecv_Vegas     ${PROJECT_DIRECTORY}/examples/msg/sendrecv/sendrecv.exe ${PROJECT_DIRECTORY}/examples/msg/sendrecv/platform_sendrecv.xml ${PROJECT_DIRECTORY}/examples/msg/sendrecv/deployment_sendrecv.xml "--cfg=workstation/model:compound cpu/model:Cas01 network/model:Vegas")\r
224 ADD_TEST(msg-sendrecv_Reno      ${PROJECT_DIRECTORY}/examples/msg/sendrecv/sendrecv.exe ${PROJECT_DIRECTORY}/examples/msg/sendrecv/platform_sendrecv.xml ${PROJECT_DIRECTORY}/examples/msg/sendrecv/deployment_sendrecv.xml "--cfg=workstation/model:compound cpu/model:Cas01 network/model:Reno" --log=surf_lagrange.thres=critical)\r
225 \r
226 \r
227 # testsuite directory\r
228 add_test(test-xbt-log           ${PROJECT_DIRECTORY}/testsuite/xbt/log_usage)\r
229 add_test(test-xbt-graphxml      ${PROJECT_DIRECTORY}/testsuite/xbt/graphxml_usage ${PROJECT_DIRECTORY}/testsuite/xbt/graph.xml)\r
230 add_test(test-xbt-heap          ${PROJECT_DIRECTORY}/testsuite/xbt/heap_bench)\r
231 \r
232 add_test(test-simdag-1 ${PROJECT_DIRECTORY}/testsuite/simdag/sd_test --cfg=path:${PROJECT_DIRECTORY}/testsuite/simdag small_platform_variable.xml)\r
233 add_test(test-simdag-2 ${PROJECT_DIRECTORY}/testsuite/simdag/sd_test --cfg=path:${PROJECT_DIRECTORY}/testsuite/simdag ${PROJECT_DIRECTORY}/examples/msg/small_platform.xml)\r
234 add_test(test-simdag-3 ${PROJECT_DIRECTORY}/testsuite/simdag/sd_test --cfg=path:${PROJECT_DIRECTORY}/testsuite/simdag ${PROJECT_DIRECTORY}/examples/msg/msg_platform.xml)\r
235 \r
236 add_test(testall                ${PROJECT_DIRECTORY}/src/testall)