Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Generate tests for memcheck.
[simgrid.git] / buildtools / Cmake / memcheck_tests.cmake
1 if(enable_memcheck)
2
3 # teshsuite/xbt
4 ADD_TEST(memcheck-tesh-log-large-0 xbt/log_large_test --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
5 ADD_TEST(memcheck-tesh-log-large-1 xbt/log_large_test --log=root.fmt:%m%n  --cd ${PROJECT_DIRECTORY}/teshsuite/)
6 ADD_TEST(memcheck-tesh-log-parallel-0 xbt/parallel_log_crashtest --log=root.fmt:%m%n  --cd ${PROJECT_DIRECTORY}/teshsuite/)
7
8 # teshsuite/gras/datadesc directory
9 ADD_TEST(memcheck-tesh-gras-dd-mem-0 gras/datadesc/datadesc_usage --copy --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
10 ADD_TEST(memcheck-tesh-gras-dd-rw-0 rm -f datadesc_usage.out --cd ${PROJECT_DIRECTORY}/teshsuite/)
11 ADD_TEST(memcheck-tesh-gras-dd-rw-1 gras/datadesc/datadesc_usage --write --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
12 ADD_TEST(memcheck-tesh-gras-dd-rw-2 gras/datadesc/datadesc_usage --read --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
13 ADD_TEST(memcheck-tesh-gras-dd-r_little32_4-0 gras/datadesc/datadesc_usage --read ./gras/datadesc/datadesc.little32_4 --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
14 ADD_TEST(memcheck-tesh-gras-dd-r_little64-0 gras/datadesc/datadesc_usage --read ./gras/datadesc/datadesc.little64 --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
15 ADD_TEST(memcheck-tesh-gras-dd-r_big32_8_4-0 gras/datadesc/datadesc_usage --read ./gras/datadesc/datadesc.big32_8_4 --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
16 ADD_TEST(memcheck-tesh-gras-dd-r_big32_8-0 gras/datadesc/datadesc_usage --read ./gras/datadesc/datadesc.big32_8 --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
17 ADD_TEST(memcheck-tesh-gras-dd-r_big32_2-0 gras/datadesc/datadesc_usage --read ./gras/datadesc/datadesc.big32_2 --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/teshsuite/)
18
19 IF(${ARCH_32_BITS})
20 ADD_TEST(memcheck-tesh-gras-msg_handle-sg-32-0 gras/msg_handle/msg_handle_simulator ./../examples/msg/small_platform.xml ./gras/msg_handle/msg_handle.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
21 ELSE(${ARCH_32_BITS})
22 ADD_TEST(memcheck-tesh-gras-msg_handle-sg-64-0 gras/msg_handle/msg_handle_simulator ./../examples/msg/small_platform.xml ./gras/msg_handle/msg_handle.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
23 ENDIF(${ARCH_32_BITS})
24
25 ADD_TEST(memcheck-tesh-gras-empty_main-sg-0 ./gras/empty_main/empty_main_simulator ./../examples/msg/small_platform.xml ./gras/empty_main/empty_main.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
26
27 IF(${ARCH_32_BITS})
28 ADD_TEST(memcheck-tesh-gras-small_sleep-sg-32-0 ./gras/small_sleep/small_sleep_simulator ./../examples/msg/small_platform.xml ./gras/small_sleep/small_sleep.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
29 ELSE(${ARCH_32_BITS})
30 ADD_TEST(memcheck-tesh-gras-small_sleep-sg-64-0 ./gras/small_sleep/small_sleep_simulator ./../examples/msg/small_platform.xml ./gras/small_sleep/small_sleep.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
31 ENDIF(${ARCH_32_BITS})
32
33 ADD_TEST(memcheck-tesh-simdag-reinit_costs-0 simdag/network/test_reinit_costs ./simdag/network/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
34 ADD_TEST(memcheck-tesh-simdag-parser-0 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_cluster_foreach.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
35 ADD_TEST(memcheck-tesh-simdag-parser-1 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_cluster_one_host_random.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
36 ADD_TEST(memcheck-tesh-simdag-parser-2 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_cluster_one_host.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
37 ADD_TEST(memcheck-tesh-simdag-parser-3 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_cluster_properties_foreach.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
38 ADD_TEST(memcheck-tesh-simdag-parser-4 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_cluster.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
39 ADD_TEST(memcheck-tesh-simdag-parser-5 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host_availability.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
40 ADD_TEST(memcheck-tesh-simdag-parser-6 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host_properties.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
41 ADD_TEST(memcheck-tesh-simdag-parser-7 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host_state_file.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
42 ADD_TEST(memcheck-tesh-simdag-parser-8 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host_state_off.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
43 ADD_TEST(memcheck-tesh-simdag-parser-9 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host_state_on.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
44 ADD_TEST(memcheck-tesh-simdag-parser-10 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host_trace_inside.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
45 ADD_TEST(memcheck-tesh-simdag-parser-11 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_host.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
46 ADD_TEST(memcheck-tesh-simdag-parser-12 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_link_availability.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
47 ADD_TEST(memcheck-tesh-simdag-parser-13 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_link_fatpipe.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
48 ADD_TEST(memcheck-tesh-simdag-parser-14 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_link_shared.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
49 ADD_TEST(memcheck-tesh-simdag-parser-15 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms one_link_state_file.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
50 ADD_TEST(memcheck-tesh-simdag-parser-16 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms three_hosts_non_symmetric_route.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
51 ADD_TEST(memcheck-tesh-simdag-parser-17 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms two_clusters_symmetric.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
52 ADD_TEST(memcheck-tesh-simdag-parser-18 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms two_clusters.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
53 ADD_TEST(memcheck-tesh-simdag-parser-19 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms two_hosts_multi_hop.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
54 ADD_TEST(memcheck-tesh-simdag-parser-20 simdag/platforms/basic_parsing_test --log=xbt_cfg.thres:critical --cfg=path:./simdag/platforms two_hosts_one_link.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
55 ADD_TEST(memcheck-tesh-simdag-flatifier-0 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_cluster.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
56 ADD_TEST(memcheck-tesh-simdag-flatifier-1 false --cd ${PROJECT_DIRECTORY}/teshsuite/)
57 ADD_TEST(memcheck-tesh-simdag-flatifier-2 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_cluster_foreach.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
58 ADD_TEST(memcheck-tesh-simdag-flatifier-3 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_cluster_one_host_random.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
59 ADD_TEST(memcheck-tesh-simdag-flatifier-4 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_cluster_one_host.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
60 ADD_TEST(memcheck-tesh-simdag-flatifier-5 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_cluster_properties_foreach.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
61 ADD_TEST(memcheck-tesh-simdag-flatifier-6 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_cluster_properties_override.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
62 ADD_TEST(memcheck-tesh-simdag-flatifier-7 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_availability.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
63 ADD_TEST(memcheck-tesh-simdag-flatifier-8 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_properties.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
64 ADD_TEST(memcheck-tesh-simdag-flatifier-9 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_state_file.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
65 ADD_TEST(memcheck-tesh-simdag-flatifier-10 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_state_off.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
66 ADD_TEST(memcheck-tesh-simdag-flatifier-11 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_state_on.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
67 ADD_TEST(memcheck-tesh-simdag-flatifier-12 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_trace_file.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
68 ADD_TEST(memcheck-tesh-simdag-flatifier-13 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host_trace_inside.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
69 ADD_TEST(memcheck-tesh-simdag-flatifier-14 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_host.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
70 ADD_TEST(memcheck-tesh-simdag-flatifier-15 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_link_availability.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
71 ADD_TEST(memcheck-tesh-simdag-flatifier-16 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_link_fatpipe.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
72 ADD_TEST(memcheck-tesh-simdag-flatifier-17 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_link_shared.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
73 ADD_TEST(memcheck-tesh-simdag-flatifier-18 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ one_link_state_file.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
74 ADD_TEST(memcheck-tesh-simdag-flatifier-19 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ route_override.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
75 ADD_TEST(memcheck-tesh-simdag-flatifier-20 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ three_hosts_non_symmetric_route.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
76 ADD_TEST(memcheck-tesh-simdag-flatifier-21 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ two_clusters_symmetric.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
77 ADD_TEST(memcheck-tesh-simdag-flatifier-22 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ two_clusters.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
78 ADD_TEST(memcheck-tesh-simdag-flatifier-23 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ two_hosts_multi_hop.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
79 ADD_TEST(memcheck-tesh-simdag-flatifier-24 ./simdag/platforms/flatifier --cfg=path:./simdag/platforms/ two_hosts_one_link.xml --cd ${PROJECT_DIRECTORY}/teshsuite/)
80 ADD_TEST(memcheck-tesh-simdag-basic0-0 simdag/basic0 ./simdag/basic_platform.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
81 ADD_TEST(memcheck-tesh-simdag-basic1-0 simdag/basic1 ./simdag/basic_platform.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
82 ADD_TEST(memcheck-tesh-simdag-basic2-0 simdag/basic2 ./simdag/basic_platform.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
83 ADD_TEST(memcheck-tesh-simdag-basic3-0 simdag/basic3 ./simdag/basic_platform.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
84 ADD_TEST(memcheck-tesh-simdag-basic4-0 simdag/basic4 ./simdag/basic_platform.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
85 ADD_TEST(memcheck-tesh-simdag-basic5-0 simdag/basic5 ./simdag/basic_platform.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
86 ADD_TEST(memcheck-tesh-simdag-basic6-0 simdag/basic6 ./simdag/network/p2p/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/teshsuite/)
87 ADD_TEST(memcheck-tesh-simdag-p2p-1-0 simdag/network/p2p/test_latency1 ./simdag/network/p2p/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
88 ADD_TEST(memcheck-tesh-simdag-p2p-1-1 simdag/network/p2p/test_latency1 ./simdag/network/p2p/platform_2p_1fl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
89 ADD_TEST(memcheck-tesh-simdag-p2p-1-2 simdag/network/p2p/test_latency1 ./simdag/network/p2p/platform_2p_1switch.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
90 ADD_TEST(memcheck-tesh-simdag-p2p-2-0 simdag/network/p2p/test_latency2 ./simdag/network/p2p/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
91 ADD_TEST(memcheck-tesh-simdag-p2p-2-1 simdag/network/p2p/test_latency2 ./simdag/network/p2p/platform_2p_1fl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
92 ADD_TEST(memcheck-tesh-simdag-p2p-2-2 simdag/network/p2p/test_latency2 ./simdag/network/p2p/platform_2p_1switch.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
93 ADD_TEST(memcheck-tesh-simdag-p2p-3-0 simdag/network/p2p/test_latency3 ./simdag/network/p2p/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
94 ADD_TEST(memcheck-tesh-simdag-p2p-3-1 simdag/network/p2p/test_latency3 ./simdag/network/p2p/platform_2p_1fl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
95 ADD_TEST(memcheck-tesh-simdag-p2p-3-2 simdag/network/p2p/test_latency3 ./simdag/network/p2p/platform_2p_1switch.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
96 ADD_TEST(memcheck-tesh-simdag-p2p-3-0 simdag/network/p2p/test_latency_bound ./simdag/network/p2p/platform_2p_1bb.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
97 ADD_TEST(memcheck-tesh-simdag-mxn-1-0 simdag/network/mxn/test_intra_all2all ./simdag/network/mxn/platform_4p_1switch.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
98 ADD_TEST(memcheck-tesh-simdag-mxn-2-0 simdag/network/mxn/test_intra_independent_comm ./simdag/network/mxn/platform_4p_1switch.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
99 ADD_TEST(memcheck-tesh-simdag-mxn-3-0 simdag/network/mxn/test_intra_scatter ./simdag/network/mxn/platform_4p_1switch.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
100 ADD_TEST(memcheck-tesh-simdag-par-1-0 simdag/partask/test_comp_only_seq ./simdag/partask/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
101 ADD_TEST(memcheck-tesh-simdag-par-2-0 simdag/partask/test_comp_only_par ./simdag/partask/platform_2p_1sl.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
102 ADD_TEST(memcheck-tesh-simdag-par-2-1 simdag/partask/test_comp_only_par ./simdag/partask/platform_2p_1sl_hetero.xml --surf-path=${PROJECT_DIRECTORY}/src --log=sd_kernel.thres=warning --cd ${PROJECT_DIRECTORY}/teshsuite/)
103
104 # GRAS examples
105 ADD_TEST(memcheck-gras-spawn-rl-0 ./spawn_father 4602 5 --log=root.fmt=%m%n --cd ${PROJECT_DIRECTORY}/examples/gras/spawn/)
106 ADD_TEST(memcheck-gras-timer-rl-0 ./timer_client --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/examples/gras/timer/)
107 ADD_TEST(memcheck-gras-chrono-rl-0 ./chrono_multiplier --log=root.fmt:%m%n --cd ${PROJECT_DIRECTORY}/examples/gras/chrono/)
108 ADD_TEST(memcheck-gras-synchro-rl-0 ./synchro_philosopher 4 --log=root.fmt=%m%n --cd ${PROJECT_DIRECTORY}/examples/gras/synchro/)
109 ADD_TEST(memcheck-gras-properties-rl-0 ./properties_alice --log=root.fmt=%P:%t%e%m%n --cd ${PROJECT_DIRECTORY}/examples/gras/properties/)
110 ADD_TEST(memcheck-gras-properties-rl-1 ./properties_bob --log=root.fmt=%P:%t%e%m%n --cd ${PROJECT_DIRECTORY}/examples/gras/properties/)
111
112 # MSG examples
113 ADD_TEST(memcheck-msg-sendrecv_CLM03-0 sendrecv/sendrecv ./sendrecv/platform_sendrecv.xml ./sendrecv/deployment_sendrecv.xml --cfg=workstation/model:CLM03 --cfg=cpu/model:Cas01 --cfg=network/model:CM02 --cd ${PROJECT_DIRECTORY}/examples/msg/)
114 ADD_TEST(memcheck-msg-sendrecv_Vegas-0 sendrecv/sendrecv ./sendrecv/platform_sendrecv.xml ./sendrecv/deployment_sendrecv.xml "--cfg=workstation/model:compound cpu/model:Cas01 network/model:Vegas" --cd ${PROJECT_DIRECTORY}/examples/msg/)
115 ADD_TEST(memcheck-msg-sendrecv_Reno-0 sendrecv/sendrecv ./sendrecv/platform_sendrecv.xml ./sendrecv/deployment_sendrecv.xml "--cfg=workstation/model:compound cpu/model:Cas01 network/model:Reno" --log=surf_lagrange.thres=critical --cd ${PROJECT_DIRECTORY}/examples/msg/)
116 ADD_TEST(memcheck-msg-suspend-0 suspend/suspend ./msg_platform.xml ./suspend/deployment_suspend.xml  --cd ${PROJECT_DIRECTORY}/examples/msg/)
117 ADD_TEST(memcheck-msg-masterslave-0 masterslave/masterslave_forwarder ./small_platform_with_routers.xml ./masterslave/deployment_masterslave.xml --trace --cd ${PROJECT_DIRECTORY}/examples/msg/)
118 ADD_TEST(memcheck-msg-masterslave-forwarder-0 masterslave/masterslave_forwarder ./msg_platform.xml ./masterslave/deployment_masterslave_forwarder.xml  --cd ${PROJECT_DIRECTORY}/examples/msg/)
119 ADD_TEST(memcheck-msg-masterslave-failure-0 masterslave/masterslave_failure --log=xbt_cfg.thres:critical --log=no_loc ./small_platform_with_failures.xml ./masterslave/deployment_masterslave.xml --cfg=path:${PROJECT_DIRECTORY}/src --cd ${PROJECT_DIRECTORY}/examples/msg/)
120 ADD_TEST(memcheck-msg-masterslave-bypass-0 masterslave/masterslave_bypass --log=no_loc  --cd ${PROJECT_DIRECTORY}/examples/msg/)
121 ADD_TEST(memcheck-msg-masterslave-mailbox-0 masterslave/masterslave_mailbox ./small_platform_with_routers.xml ./masterslave/deployment_masterslave_mailbox.xml --trace --cd ${PROJECT_DIRECTORY}/examples/msg/)
122 ADD_TEST(memcheck-msg-masterslave-vivaldi-0 ./masterslave/masterslave_mailbox --cfg=network/model:Vivaldi ../platforms/vivaldi.xml ./masterslave/deployment_masterslave_vivaldi.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
123 ADD_TEST(memcheck-msg-migration-0 migration/migration ./msg_platform.xml ./migration/migration.deploy  --cd ${PROJECT_DIRECTORY}/examples/msg/)
124 ADD_TEST(memcheck-msg-ptask-0 parallel_task/parallel_task ./small_platform.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
125 ADD_TEST(memcheck-msg-ptask-1 parallel_task/test_ptask ./parallel_task/test_ptask_platform.xml ./parallel_task/test_ptask_deployment.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
126 ADD_TEST(memcheck-msg-priority-0 priority/priority ./small_platform.xml  ./priority/deployment_priority.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
127 ADD_TEST(memcheck-msg-properties-0 properties/msg_prop ./../platforms/prop.xml ./properties/deployment_properties.xml  --cd ${PROJECT_DIRECTORY}/examples/msg/)
128 ADD_TEST(memcheck-msg-trace-0 trace/test_trace_integration ./trace/test1.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
129 ADD_TEST(memcheck-msg-trace-1 trace/test_trace_integration ./trace/test2.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
130 ADD_TEST(memcheck-msg-trace-2 trace/test_trace_integration ./trace/test3.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
131 ADD_TEST(memcheck-msg-trace-3 trace/test_trace_integration ./trace/test4.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
132 ADD_TEST(memcheck-msg-trace-4 trace/test_trace_integration ./trace/test5.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
133 ADD_TEST(memcheck-msg-trace-5 trace/test_trace_integration ./trace/test6.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
134 ADD_TEST(memcheck-msg-trace-6 trace/test_trace_integration ./trace/test7.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
135 ADD_TEST(memcheck-msg-trace-7 trace/test_trace_integration ./trace/test8.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
136 ADD_TEST(memcheck-msg-trace-8 trace/test_trace_integration ./trace/test9.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
137 ADD_TEST(memcheck-msg-trace-9 trace/test_trace_integration ./trace/test10.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
138 ADD_TEST(memcheck-msg-trace-10 trace/test_trace_integration ./trace/test11.xml --cfg=workstation/model:compound --cfg=network/model:CM02 --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
139 ADD_TEST(memcheck-msg-masterslave_cpu_ti-0 masterslave/masterslave_forwarder ./small_platform.xml ./masterslave/deployment_masterslave.xml --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
140 ADD_TEST(memcheck-msg-masterslave_cpu_ti-1 masterslave/masterslave_forwarder ./msg_platform.xml ./masterslave/deployment_masterslave_forwarder.xml --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
141 ADD_TEST(memcheck-msg-masterslave_cpu_ti-2 masterslave/masterslave_failure --log=xbt_cfg.thres:critical --log=no_loc ./small_platform_with_failures.xml ./masterslave/deployment_masterslave.xml --cfg=path:${PROJECT_DIRECTORY}/src --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
142 ADD_TEST(memcheck-msg-masterslave_cpu_ti-3 masterslave/masterslave_bypass --log=no_loc --cfg=cpu/model:CpuTI --cd ${PROJECT_DIRECTORY}/examples/msg/)
143
144 IF(HAVE_TRACING)
145 ADD_TEST(memcheck-tracing-ms-0 tracing/ms ./tracing/platform.xml ./tracing/deployment.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
146 ADD_TEST(memcheck-tracing-ms-1 cat ./tracing/../ms.trace --cd ${PROJECT_DIRECTORY}/examples/msg/)
147 ADD_TEST(memcheck-tracing-categories-0 tracing/categories ./tracing/platform.xml ./tracing/deployment.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
148 ADD_TEST(memcheck-tracing-categories-1 cat ./tracing/../categories.trace --cd ${PROJECT_DIRECTORY}/examples/msg/)
149 ADD_TEST(memcheck-tracing-volume-0 tracing/volume ./tracing/platform.xml ./tracing/deployment.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
150 ADD_TEST(memcheck-tracing-tasks-0 tracing/tasks ./tracing/platform.xml ./tracing/deployment.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
151 ADD_TEST(memcheck-tracing-process-migration-0 tracing/procmig ./tracing/platform.xml ./tracing/procmig-deploy.xml --cd ${PROJECT_DIRECTORY}/examples/msg/)
152 ENDIF(HAVE_TRACING)
153
154 IF(${ARCH_32_BITS})
155 ADD_TEST(memcheck-gras-ping-sg-32-0 ./ping_simulator ./../../msg/small_platform.xml ./ping.xml --cd ${PROJECT_DIRECTORY}/examples/gras/ping/)
156 ADD_TEST(memcheck-gras-rpc-sg-32-0 ./rpc_simulator ./../../msg/small_platform.xml ./rpc.xml --log=root.fmt:"'[%h:%P:(%i)] [%c/%p] %m%n'" --cd ${PROJECT_DIRECTORY}/examples/gras/rpc/)
157 ADD_TEST(memcheck-gras-spawn-sg-32-0 ./spawn_simulator ./../../msg/small_platform.xml ./spawn.xml --cd ${PROJECT_DIRECTORY}/examples/gras/spawn/)
158 ADD_TEST(memcheck-gras-timer-sg-32-0 ./timer_simulator ./../../msg/small_platform.xml ./timer.xml --cd ${PROJECT_DIRECTORY}/examples/gras/timer/)
159 ADD_TEST(memcheck-gras-chrono-sg-32-0 ./chrono_simulator ./../../msg/small_platform.xml ./chrono.xml --cd ${PROJECT_DIRECTORY}/examples/gras/chrono/)
160 ADD_TEST(memcheck-gras-simple_token-sg-32-0 ./simple_token_simulator ./../../../msg/small_platform.xml ./simple_token.xml  --cd ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/)
161 ADD_TEST(memcheck-gras-mmrpc-sg-32-0 ./mmrpc_simulator ./../../msg/small_platform.xml ./mmrpc.xml --cd ${PROJECT_DIRECTORY}/examples/gras/mmrpc/)
162 ADD_TEST(memcheck-gras-all2all-sg-32-0 ./all2all_simulator ./../../msg/small_platform.xml ./all2all.xml --cd ${PROJECT_DIRECTORY}/examples/gras/all2all/)
163 ADD_TEST(memcheck-gras-pmm-sg-32-0 ./pmm_simulator ./../../msg/msg_platform.xml ./pmm.xml --cd ${PROJECT_DIRECTORY}/examples/gras/pmm/)
164 ADD_TEST(memcheck-gras-synchro-sg-32-0 ./synchro_simulator ./../../msg/small_platform.xml ./synchro.xml --cd ${PROJECT_DIRECTORY}/examples/gras/synchro/)
165 ELSE(${ARCH_32_BITS})
166 ADD_TEST(memcheck-gras-ping-sg-64-0 ./ping_simulator ./../../msg/small_platform.xml ./ping.xml --cd ${PROJECT_DIRECTORY}/examples/gras/ping/)
167 ADD_TEST(memcheck-gras-rpc-sg-64-0 ./rpc_simulator ./../../msg/small_platform.xml ./rpc.xml --log=root.fmt:"'[%h:%P:(%i)] [%c/%p] %m%n'" --cd ${PROJECT_DIRECTORY}/examples/gras/rpc/)
168 ADD_TEST(memcheck-gras-spawn-sg-64-0 ./spawn_simulator ./../../msg/small_platform.xml ./spawn.xml --cd ${PROJECT_DIRECTORY}/examples/gras/spawn/)
169 ADD_TEST(memcheck-gras-timer-sg-64-0 ./timer_simulator ./../../msg/small_platform.xml ./timer.xml --cd ${PROJECT_DIRECTORY}/examples/gras/timer/)
170 ADD_TEST(memcheck-gras-chrono-sg-64-0 ./chrono_simulator ./../../msg/small_platform.xml ./chrono.xml --cd ${PROJECT_DIRECTORY}/examples/gras/chrono/)
171 ADD_TEST(memcheck-gras-simple_token-sg-64-0 ./simple_token_simulator ./../../../msg/small_platform.xml ./simple_token.xml  --cd ${PROJECT_DIRECTORY}/examples/gras/mutual_exclusion/simple_token/)
172 ADD_TEST(memcheck-gras-mmrpc-sg-64-0 ./mmrpc_simulator ./../../msg/small_platform.xml ./mmrpc.xml --cd ${PROJECT_DIRECTORY}/examples/gras/mmrpc/)
173 ADD_TEST(memcheck-gras-all2all-sg-64-0 ./all2all_simulator ./../../msg/small_platform.xml ./all2all.xml --cd ${PROJECT_DIRECTORY}/examples/gras/all2all/)
174 ADD_TEST(memcheck-gras-pmm-sg-64-0 ./pmm_simulator ./../../msg/msg_platform.xml ./pmm.xml --cd ${PROJECT_DIRECTORY}/examples/gras/pmm/)
175 ADD_TEST(memcheck-gras-synchro-sg-64-0 ./synchro_simulator ./../../msg/small_platform.xml ./synchro.xml --cd ${PROJECT_DIRECTORY}/examples/gras/synchro/)
176 ENDIF(${ARCH_32_BITS})
177 ADD_TEST(memcheck-gras-properties-sg-0 ./properties_simulator ./../../platforms/prop.xml ./properties.xml --cd ${PROJECT_DIRECTORY}/examples/gras/properties/)
178
179 # amok examples
180 IF(${ARCH_32_BITS})
181 ADD_TEST(memcheck-amok-bandwidth-sg-32-0 bandwidth/bandwidth_simulator ./../msg/small_platform.xml ./bandwidth/bandwidth.xml --cd ${PROJECT_DIRECTORY}/examples/amok/)
182 ADD_TEST(memcheck-amok-saturate-sg-32-0 saturate/saturate_simulator ./../msg/small_platform.xml ./saturate/saturate.xml --cd ${PROJECT_DIRECTORY}/examples/amok/)
183 ELSE(${ARCH_32_BITS})
184 ADD_TEST(memcheck-amok-bandwidth-sg-64-0 bandwidth/bandwidth_simulator ./../msg/small_platform.xml ./bandwidth/bandwidth.xml --cd ${PROJECT_DIRECTORY}/examples/amok/)
185 ADD_TEST(memcheck-amok-saturate-sg-64-0 saturate/saturate_simulator ./../msg/small_platform.xml ./saturate/saturate.xml --cd ${PROJECT_DIRECTORY}/examples/amok/)
186 ENDIF(${ARCH_32_BITS})
187
188 # simdag examples
189 ADD_TEST(memcheck-simdag-test_simdag-0 ./sd_test ./../msg/msg_platform.xml --cd ${PROJECT_DIRECTORY}/examples/simdag/)
190 ADD_TEST(memcheck-simdag-test_simdag2-0 ./sd_test2 ./2clusters.xml --cd ${PROJECT_DIRECTORY}/examples/simdag/)
191 ADD_TEST(memcheck-simdag-test_prop-0 properties/sd_prop ./../platforms/prop.xml --cd ${PROJECT_DIRECTORY}/examples/simdag/)
192 ADD_TEST(memcheck-simdag-metaxml_test-0 metaxml/sd_meta ./../platforms/metaxml.xml --cd ${PROJECT_DIRECTORY}/examples/simdag/)
193
194 if(enable_smpi)
195 # smpi examples
196 ADD_TEST(memcheck-smpi-bcast-0 ${CMAKE_BINARY_DIR}/bin/smpirun -map -hostfile ./hostfile -platform ./../msg/small_platform.xml -np 3 ./bcast -q --cd ${PROJECT_DIRECTORY}/examples/smpi/)
197 ADD_TEST(memcheck-smpi-bcast-1 ${CMAKE_BINARY_DIR}/bin/smpirun -map -hostfile ./hostfile -platform ./../msg/small_platform.xml -np 6 ./bcast -q --cd ${PROJECT_DIRECTORY}/examples/smpi/)
198 ADD_TEST(memcheck-smpi-bcast-2 ${CMAKE_BINARY_DIR}/bin/smpirun -map -hostfile ./hostfile -platform ./../msg/small_platform.xml -np 12 ./bcast -q --cd ${PROJECT_DIRECTORY}/examples/smpi/)
199 ADD_TEST(memcheck-smpi-reduce-0 ${CMAKE_BINARY_DIR}/bin/smpirun -map -hostfile ./hostfile -platform ./../msg/small_platform.xml -np 3 ./reduce -q --cd ${PROJECT_DIRECTORY}/examples/smpi/)
200 ADD_TEST(memcheck-smpi-reduce-1 ${CMAKE_BINARY_DIR}/bin/smpirun -map -hostfile ./hostfile -platform ./../msg/small_platform.xml -np 6 ./reduce -q --cd ${PROJECT_DIRECTORY}/examples/smpi/)
201 ADD_TEST(memcheck-smpi-reduce-2 ${CMAKE_BINARY_DIR}/bin/smpirun -map -hostfile ./hostfile -platform ./../msg/small_platform.xml -np 12 ./reduce -q  --cd ${PROJECT_DIRECTORY}/examples/smpi/)
202 endif(enable_smpi)
203
204 if(HAVE_GTNETS)
205 ADD_TEST(memcheck-msg-gtnets-waxman-0 gtnets/gtnets gtnets/waxman-p.xml gtnets/waxman-d.xml --cfg=workstation/model:compound --cfg=cpu/model:Cas01 --cfg=network/model:GTNets --cd ${PROJECT_DIRECTORY}/examples/msg/)
206 ADD_TEST(memcheck-msg-gtnets-dogbone-0 gtnets/gtnets gtnets/dogbone-p.xml gtnets/dogbone-d.xml --cfg=workstation/model:compound --cfg=cpu/model:Cas01 --cfg=network/model:GTNets --cd ${PROJECT_DIRECTORY}/examples/msg/)
207 ADD_TEST(memcheck-msg-gtnets-onelink-0 gtnets/gtnets gtnets/onelink-p.xml gtnets/onelink-d.xml --cfg=workstation/model:compound --cfg=cpu/model:Cas01 --cfg=network/model:GTNets --cd ${PROJECT_DIRECTORY}/examples/msg/)
208 ADD_TEST(memcheck-msg-gtnets-dogbone-lv08-0 gtnets/gtnets gtnets/dogbone-p.xml gtnets/dogbone-d.xml --cfg=workstation/model:compound --cfg=cpu/model:Cas01 --cfg=network/model:LV08 --cd ${PROJECT_DIRECTORY}/examples/msg/)
209 ADD_TEST(memcheck-msg-gtnets-onelink-lv08-0 gtnets/gtnets gtnets/onelink-p.xml gtnets/onelink-d.xml --cfg=workstation/model:compound --cfg=cpu/model:Cas01  --cfg=network/model:LV08 2>&1 | grep --color=auto -v root/INFO | grep -v simix_network/INFO --cd ${PROJECT_DIRECTORY}/examples/msg/)
210 endif(HAVE_GTNETS)
211
212 # Lua examples
213 if(HAVE_LUA)
214 ADD_TEST(memcheck-lua-masterslave-0 lua master_slave.lua --cd ${PROJECT_DIRECTORY}/examples/lua/)
215 ADD_TEST(memcheck-lua-mult_matrix-0 lua mult_matrix.lua --cd ${PROJECT_DIRECTORY}/examples/lua/)
216 endif(HAVE_LUA)
217
218 # Ruby examples
219 if(HAVE_RUBY)
220 ADD_TEST(memcheck-ruby-masterslave-0 ruby -I../../src/bindings/ruby MasterSlave.rb --cd ${PROJECT_DIRECTORY}/examples/ruby/)
221 ADD_TEST(memcheck-ruby-ping_pong-0 ruby -I ../../src/bindings/ruby PingPong.rb --cd ${PROJECT_DIRECTORY}/examples/ruby/)
222 ADD_TEST(memcheck-ruby-quicksort-0 ruby -I ../../src/bindings/ruby Quicksort.rb --cd ${PROJECT_DIRECTORY}/examples/ruby/)
223 endif(HAVE_RUBY)
224
225 endif(enable_memcheck)