Logo AND Algorithmique Numérique Distribuée

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