Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8bfb8f080af8c7d6f19e458d98cab6777a9482b7
[simgrid.git] / buildtools / Cmake / src / CMakeTest.txt
1 ### Be sure we can execut some launch file
2 exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh" OUTPUT_VARIABLE "OKITOKI")
3 exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/src/smpi/smpicc" OUTPUT_VARIABLE "OKITOKI")
4 exec_program("chmod a=rwx ${PROJECT_DIRECTORY}/src/smpi/smpirun" OUTPUT_VARIABLE "OKITOKI")
5
6 ### For code coverage
7 ### Set some variables
8 SET(UPDATE_TYPE "svn")
9 SET(DROP_METHOD "http")
10 SET(DROP_SITE "cdash.inria.fr/CDash")
11 SET(DROP_LOCATION "/submit.php?project=${PROJECT_NAME}")
12 SET(DROP_SITE_CDASH TRUE)
13 SET(TRIGGER_SITE "http://cdash.inria.fr/CDash/cgi-bin/Submit-Random-TestingResults.cgi")
14 SET(COVERAGE_COMMAND "${GCOV_PATH}/gcov")
15 #SET(VALGRIND_COMMAND "${VALGRIND_PATH}/valgrind")
16 #SET(MEMORYCHECK_COMMAND "${VALGRIND_PATH}/valgrind")
17 #set(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes --read-var-info=no")
18 set(MEMORYCHECK_COMMAND_OPTIONS "--trace-children=yes --leak-check=full --show-reachable=yes --track-origins=yes --read-var-info=no --valgrind ${VALGRIND_PATH}")
19 SET(VALGRIND_COMMAND "${PROJECT_DIRECTORY}/buildtools/Cmake/my_valgrind.pl")
20 SET(MEMORYCHECK_COMMAND "${PROJECT_DIRECTORY}/buildtools/Cmake/my_valgrind.pl")
21 #If you use the --read-var-info option Memcheck will run more slowly but may give a more detailed description of any illegal address.
22
23 ### Check 32bits or 64bits
24 INCLUDE (CheckTypeSize)
25 CHECK_TYPE_SIZE("long" SIZEOF_LONG)
26 IF(SIZEOF_LONG EQUAL 4)
27   SET(ARCH_32_BITS 1)
28 ELSE(SIZEOF_LONG EQUAL 4)
29   SET(ARCH_32_BITS 0)
30 ENDIF(SIZEOF_LONG EQUAL 4)
31
32 INCLUDE(CTest)
33 ENABLE_TESTING()
34
35 if(NOT enable_memcheck)
36 ADD_TEST(tesh-self-basic                ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" basic.tesh)
37 ADD_TEST(tesh-self-cd                   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" cd.tesh)
38 ADD_TEST(tesh-self-IO-broken-pipe       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" IO-broken-pipe.tesh)
39 ADD_TEST(tesh-self-IO-orders            ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" IO-orders.tesh)
40 ADD_TEST(tesh-self-IO-bigsize           ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" IO-bigsize.tesh)
41 ADD_TEST(tesh-self-set-return           ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" set-return.tesh)
42 ADD_TEST(tesh-self-set-signal           ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" set-signal.tesh)
43 ADD_TEST(tesh-self-set-timeout          ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" set-timeout.tesh)
44 ADD_TEST(tesh-self-set-ignore-output    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" set-ignore-output.tesh)
45 ADD_TEST(tesh-self-catch-return         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" catch-return.tesh)
46 ADD_TEST(tesh-self-catch-signal         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" catch-signal.tesh)
47 ADD_TEST(tesh-self-catch-timeout        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" catch-timeout.tesh)
48 ADD_TEST(tesh-self-catch-wrong-output   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" catch-wrong-output.tesh)
49 ADD_TEST(tesh-self-bg-basic             ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" bg-basic.tesh)
50 ADD_TEST(tesh-self-bg-set-signal        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" bg-set-signal.tesh)
51 ADD_TEST(tesh-self-background           ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd "${PROJECT_DIRECTORY}/tools/tesh" background.tesh)
52
53 # BEGIN TESH TESTS
54
55 # teshsuite/xbt
56 ADD_TEST(tesh-log-large         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite xbt/log_large_test.tesh)
57 ADD_TEST(tesh-log-parallel      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite xbt/parallel_log_crashtest.tesh)
58
59 # teshsuite/gras/datadesc directory
60 ADD_TEST(tesh-gras-dd-mem       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_mem.tesh)
61 ADD_TEST(tesh-gras-dd-rw        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_rw.tesh)
62 ADD_TEST(tesh-gras-dd-r_little32_4      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_r_little32_4.tesh)
63 ADD_TEST(tesh-gras-dd-r_little64        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_r_little64.tesh)
64 ADD_TEST(tesh-gras-dd-r_big32_8_4       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_r_big32_8_4.tesh)
65 ADD_TEST(tesh-gras-dd-r_big32_8         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_r_big32_8.tesh)
66 ADD_TEST(tesh-gras-dd-r_big32_2         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/datadesc/datadesc_r_big32_2.tesh)
67
68 IF(${ARCH_32_BITS})
69   ADD_TEST(tesh-gras-msg_handle-sg-32   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/msg_handle/test_sg_32)
70 ELSE(${ARCH_32_BITS})
71   ADD_TEST(tesh-gras-msg_handle-sg-64   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/msg_handle/test_sg_64)
72 ENDIF(${ARCH_32_BITS})
73
74 ADD_TEST(tesh-gras-empty_main-rl        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/empty_main/test_rl)
75 ADD_TEST(tesh-gras-empty_main-sg        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/empty_main/test_sg)
76
77 IF(${ARCH_32_BITS})
78   ADD_TEST(tesh-gras-small_sleep-sg-32  ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/small_sleep/test_sg_32)
79 ELSE(${ARCH_32_BITS})
80   ADD_TEST(tesh-gras-small_sleep-sg-64  ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite gras/small_sleep/test_sg_64)
81 ENDIF(${ARCH_32_BITS})
82
83 ADD_TEST(tesh-msg-get_sender    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite msg/get_sender.tesh)                               
84 ADD_TEST(tesh-simdag-reinit_costs       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/test_reinit_costs.tesh)
85 ADD_TEST(tesh-simdag-parser             ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/platforms/basic_parsing_test.tesh)
86 ADD_TEST(tesh-simdag-flatifier          ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/platforms/flatifier.tesh)
87 ADD_TEST(tesh-simdag-basic0     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic0.tesh)
88 ADD_TEST(tesh-simdag-basic1     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic1.tesh)
89 ADD_TEST(tesh-simdag-basic2     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic2.tesh)
90 ADD_TEST(tesh-simdag-basic3     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic3.tesh)
91 ADD_TEST(tesh-simdag-basic4     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic4.tesh)
92 ADD_TEST(tesh-simdag-basic5     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic5.tesh)
93 ADD_TEST(tesh-simdag-basic6     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/basic6.tesh)
94 ADD_TEST(tesh-simdag-p2p-1      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency1.tesh)
95 ADD_TEST(tesh-simdag-p2p-2      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency2.tesh)
96 ADD_TEST(tesh-simdag-p2p-3      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency3.tesh)
97 ADD_TEST(tesh-simdag-p2p-3      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/p2p/test_latency_bound.tesh)
98 ADD_TEST(tesh-simdag-mxn-1      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_all2all.tesh)
99 ADD_TEST(tesh-simdag-mxn-2      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_independent_comm.tesh)
100 ADD_TEST(tesh-simdag-mxn-3      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/network/mxn/test_intra_scatter.tesh)
101 ADD_TEST(tesh-simdag-par-1      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/partask/test_comp_only_seq.tesh)
102 ADD_TEST(tesh-simdag-par-2      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/teshsuite simdag/partask/test_comp_only_par.tesh)
103
104 # GRAS examples
105 ADD_TEST(gras-ping-rl           ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/ping test_rl)
106 ADD_TEST(gras-rpc-rl            ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/rpc test_rl)
107 ADD_TEST(gras-spawn-rl          ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/spawn test_rl)
108 ADD_TEST(gras-timer-rl          ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/timer test_rl)
109 ADD_TEST(gras-chrono-rl         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/chrono test_rl)
110 ADD_TEST(gras-simple_token-rl   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token test_rl)
111 ADD_TEST(gras-mmrpc-rl          ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/mmrpc test_rl)
112 ADD_TEST(gras-all2all-rl        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/all2all test_rl)
113 ADD_TEST(gras-pmm-rl            ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/pmm test_rl)
114 ADD_TEST(gras-synchro-rl        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/synchro test_rl)
115 ADD_TEST(gras-properties-rl     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/properties test_rl)
116
117 # MSG examples
118 ADD_TEST(msg-sendrecv_CLM03     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg sendrecv/sendrecv_CLM03.tesh)
119 ADD_TEST(msg-sendrecv_Vegas     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg sendrecv/sendrecv_Vegas.tesh)
120 ADD_TEST(msg-sendrecv_Reno      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg sendrecv/sendrecv_Reno.tesh)
121 ADD_TEST(msg-suspend            ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg suspend/suspend.tesh)
122 ADD_TEST(msg-masterslave        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave.tesh)
123 ADD_TEST(msg-masterslave-forwarder      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_forwarder.tesh)
124 ADD_TEST(msg-masterslave-failure        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_failure.tesh)
125 ADD_TEST(msg-masterslave-bypass ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_bypass.tesh)
126 ADD_TEST(msg-masterslave-mailbox        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_mailbox.tesh)
127 ADD_TEST(msg-masterslave-vivaldi        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_vivaldi.tesh)
128 ADD_TEST(msg-migration          ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg migration/migration.tesh)
129 ADD_TEST(msg-ptask              ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg parallel_task/parallel_task.tesh)
130 ADD_TEST(msg-priority           ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg priority/priority.tesh)
131 ADD_TEST(msg-properties         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg properties/msg_prop.tesh)
132 ADD_TEST(msg-trace              ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg trace/trace.tesh)
133 ADD_TEST(msg-masterslave_cpu_ti ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg masterslave/masterslave_cpu_ti.tesh)
134
135 IF(HAVE_TRACING)
136   ADD_TEST(tracing-ms ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg tracing/ms.tesh)
137   ADD_TEST(tracing-categories ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg tracing/categories.tesh)
138   ADD_TEST(tracing-process-migration ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg tracing/procmig.tesh)
139 ENDIF(HAVE_TRACING)
140
141
142 IF(${ARCH_32_BITS})
143   ADD_TEST(gras-ping-sg-32      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/ping test_sg_32)
144   ADD_TEST(gras-rpc-sg-32       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/rpc test_sg_32)
145   ADD_TEST(gras-spawn-sg-32     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/spawn test_sg_32)
146   ADD_TEST(gras-timer-sg-32     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/timer test_sg_32)
147   ADD_TEST(gras-chrono-sg-32    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/chrono test_sg_32)
148   ADD_TEST(gras-simple_token-sg-32      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token test_sg_32)
149   ADD_TEST(gras-mmrpc-sg-32     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/mmrpc test_sg_32)
150   ADD_TEST(gras-all2all-sg-32   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/all2all test_sg_32)
151   ADD_TEST(gras-pmm-sg-32       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/pmm test_sg_32)
152   ADD_TEST(gras-synchro-sg-32   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/synchro test_sg_32)
153 ELSE(${ARCH_32_BITS})
154   ADD_TEST(gras-ping-sg-64      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/ping test_sg_64)
155   ADD_TEST(gras-rpc-sg-64       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/rpc test_sg_64)
156   ADD_TEST(gras-spawn-sg-64     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/spawn test_sg_64)
157   ADD_TEST(gras-timer-sg-64     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/timer test_sg_64)
158   ADD_TEST(gras-chrono-sg-64    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/chrono test_sg_64)
159   ADD_TEST(gras-simple_token-sg-64      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token test_sg_64)
160   ADD_TEST(gras-mmrpc-sg-64     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/mmrpc test_sg_64)
161   ADD_TEST(gras-all2all-sg-64   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/all2all test_sg_64)
162   ADD_TEST(gras-pmm-sg-64       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/pmm test_sg_64)
163   ADD_TEST(gras-synchro-sg-64   ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/synchro test_sg_64)
164 ENDIF(${ARCH_32_BITS})
165 ADD_TEST(gras-properties-sg     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/gras/properties test_sg)
166
167 # amok examples
168 ADD_TEST(amok-bandwidth-rl      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/amok bandwidth/bandwidth_rl.tesh)
169 ADD_TEST(amok-saturate-rl       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/amok saturate/saturate_rl.tesh)
170 IF(${ARCH_32_BITS})
171   ADD_TEST(amok-bandwidth-sg-32 ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/amok bandwidth/bandwidth_sg_32.tesh)
172   ADD_TEST(amok-saturate-sg-32  ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/amok saturate/saturate_sg_32.tesh)
173 ELSE(${ARCH_32_BITS})
174   ADD_TEST(amok-bandwidth-sg-64 ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/amok bandwidth/bandwidth_sg_64.tesh)
175   ADD_TEST(amok-saturate-sg-64  ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/amok saturate/saturate_sg_64.tesh)
176 ENDIF(${ARCH_32_BITS})
177
178 # simdag examples
179 ADD_TEST(simdag-test_simdag     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/simdag test_simdag.tesh)
180 ADD_TEST(simdag-test_simdag2    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/simdag test_simdag2.tesh)
181 ADD_TEST(simdag-test_prop       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/simdag properties/test_prop.tesh)
182 ADD_TEST(simdag-metaxml_test    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/simdag metaxml/metaxml_test.tesh)
183
184 # smpi examples
185 ADD_TEST(smpi-bcast     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/smpi bcast.tesh)
186 ADD_TEST(smpi-reduce    ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/smpi reduce.tesh)
187
188 if(HAVE_GTNETS)
189 ADD_TEST(msg-gtnets-waxman      ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-waxman.tesh)
190 ADD_TEST(msg-gtnets-dogbone     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-dogbone-gtnets.tesh)
191 ADD_TEST(msg-gtnets-onelink     ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-onelink-gtnets.tesh)
192 ADD_TEST(msg-gtnets-dogbone-lv08        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-dogbone-lv08.tesh)
193 ADD_TEST(msg-gtnets-onelink-lv08        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/msg gtnets/gtnets-onelink-lv08.tesh)
194 endif(HAVE_GTNETS)
195
196 # Lua examples
197 if(HAVE_LUA)
198 ADD_TEST(lua-masterslave        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/lua master_slave.tesh)
199 ADD_TEST(lua-mult_matrix        ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/lua mult_matrix.tesh)
200 endif(HAVE_LUA)
201
202 # Ruby examples
203 if(HAVE_RUBY)
204 ADD_TEST(ruby-masterslave       ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/ruby MasterSlave.tesh)
205 ADD_TEST(ruby-ping_pong         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/ruby PingPong.tesh)
206 ADD_TEST(ruby-quicksort         ${PROJECT_DIRECTORY}/tools/tesh/tesh --cd ${PROJECT_DIRECTORY}/examples/ruby Quicksort.tesh)
207 endif(HAVE_RUBY)
208 # END TESH TESTS
209
210 if(HAVE_JAVA)
211 # java examples
212 ADD_TEST(java-basic     ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/basic BasicTest ${PROJECT_DIRECTORY})
213 ADD_TEST(java-pingpong  ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/ping_pong PingPongTest ${PROJECT_DIRECTORY})
214 ADD_TEST(java-comm_time ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/comm_time CommTimeTest ${PROJECT_DIRECTORY})
215 ADD_TEST(java-suspend   ${PROJECT_DIRECTORY}/buildtools/Cmake/test_java.sh ${PROJECT_DIRECTORY}/examples/java/suspend SuspendTest ${PROJECT_DIRECTORY})
216 endif(HAVE_JAVA)
217
218 ###
219 ### Declare that we know that some tests are broken
220 ###
221
222 # Amok is broken in RL since before v3.3 (should fix it one day)
223 set_tests_properties(amok-bandwidth-rl PROPERTIES WILL_FAIL true)
224 set_tests_properties(amok-saturate-rl PROPERTIES WILL_FAIL true)
225
226 # Expected to fail until we regenerate the data
227 set_tests_properties(tesh-gras-dd-r_big32_8 PROPERTIES WILL_FAIL true)
228 set_tests_properties(tesh-gras-dd-r_big32_2 PROPERTIES WILL_FAIL true)
229
230 # Expected to fail until the parser gets better (v3.3.5?)
231 set_tests_properties(simdag-metaxml_test PROPERTIES WILL_FAIL true)   
232 set_tests_properties(tesh-simdag-flatifier PROPERTIES WILL_FAIL true)
233
234 if(HAVE_RUBY)
235 set_tests_properties(ruby-quicksort PROPERTIES WILL_FAIL true)
236 endif(HAVE_RUBY)
237 endif(NOT enable_memcheck)
238
239 # testsuite directory
240 add_test(test-xbt-log           ${PROJECT_DIRECTORY}/testsuite/xbt/log_usage)
241 add_test(test-xbt-graphxml      ${PROJECT_DIRECTORY}/testsuite/xbt/graphxml_usage ${PROJECT_DIRECTORY}/testsuite/xbt/graph.xml)
242 add_test(test-xbt-heap          ${PROJECT_DIRECTORY}/testsuite/xbt/heap_bench)
243
244 add_test(test-surf-lmm          ${PROJECT_DIRECTORY}/testsuite/surf/lmm_usage)
245 add_test(test-surf-maxmin       ${PROJECT_DIRECTORY}/testsuite/surf/maxmin_bench)
246 add_test(test-surf-usage        ${PROJECT_DIRECTORY}/testsuite/surf/surf_usage  --cfg=path:${PROJECT_DIRECTORY}/testsuite/surf/ platform.xml)
247 add_test(test-surf_usage2       ${PROJECT_DIRECTORY}/testsuite/surf/surf_usage2  --cfg=path:${PROJECT_DIRECTORY}/testsuite/surf/ platform.xml)
248 add_test(test-surf-trace        ${PROJECT_DIRECTORY}/testsuite/surf/trace_usage --cfg=path:${PROJECT_DIRECTORY}/testsuite/surf/)
249
250 add_test(test-simdag-1 ${PROJECT_DIRECTORY}/testsuite/simdag/sd_test --cfg=path:${PROJECT_DIRECTORY}/testsuite/simdag small_platform_variable.xml)
251 add_test(test-simdag-2 ${PROJECT_DIRECTORY}/testsuite/simdag/sd_test --cfg=path:${PROJECT_DIRECTORY}/testsuite/simdag ${PROJECT_DIRECTORY}/examples/msg/small_platform.xml)
252 add_test(test-simdag-3 ${PROJECT_DIRECTORY}/testsuite/simdag/sd_test --cfg=path:${PROJECT_DIRECTORY}/testsuite/simdag ${PROJECT_DIRECTORY}/examples/msg/msg_platform.xml)
253
254 add_test(testall                ${PROJECT_DIRECTORY}/src/testall)
255
256 include(${PROJECT_DIRECTORY}/buildtools/Cmake/src/memcheck_tests.txt)