Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the "_" from hostname and routername to Tag cluster.
[simgrid.git] / teshsuite / Makefile.am
1 # Copyright (c) 2004-2007. The SimGrid team. All right reserved.
2
3 # This file is part of the SimGrid project. This is free software:
4 # You can redistribute and/or modify it under the terms of the
5 # GNU LGPL (v2.1) licence.
6
7
8 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/include
9 AM_CFLAGS = -g $(INCLUDES)
10
11 # Declare all the variables to empty, so that each test set can add
12 # their content to them
13 CLEANFILES = 
14 EXTRA_DIST= 
15 noinst_PROGRAMS=
16
17 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
18 TESTS =
19 XFAIL_TESTS=
20
21 LDADD_SG=$(abs_top_builddir)/src/libsimgrid.la
22 LDADD_RL=$(abs_top_builddir)/src/libgras.la
23
24 #################
25 ### XBT tests ###
26 #################
27
28   ## Try large logs ##
29   ####################
30
31 TESTS += xbt/log_large_test.tesh
32 noinst_PROGRAMS += xbt/log_large_test
33 xbt_log_large_test_LDADD = $(LDADD_SG)
34
35   ## Try parallel logs ##
36   #######################
37
38 TESTS += xbt/parallel_log_crashtest.tesh
39 noinst_PROGRAMS += xbt/parallel_log_crashtest 
40 xbt_parallel_log_crashtest_LDADD = $(LDADD_RL)
41
42 ##################
43 ### GRAS tests ###
44 ##################
45
46   ## Try structured communication facilities ##
47   #############################################
48
49 CLEANFILES += gras/datadesc/datadesc_usage.out
50 EXTRA_DIST += \
51   gras/datadesc/datadesc.little32_4 \
52   gras/datadesc/datadesc.little64\
53   gras/datadesc/datadesc.big32_8 gras/datadesc/datadesc.big32_8_4 gras/datadesc/datadesc.big32_2 \
54   gras/datadesc/mk_datadesc_structs.pl
55 TESTS += \
56   gras/datadesc/datadesc_mem.tesh          \
57   gras/datadesc/datadesc_rw.tesh           \
58   gras/datadesc/datadesc_r_little32_4.tesh \
59   gras/datadesc/datadesc_r_little64.tesh   \
60   \
61   gras/datadesc/datadesc_r_big32_8.tesh      \
62   gras/datadesc/datadesc_r_big32_8_4.tesh  \
63   gras/datadesc/datadesc_r_big32_2.tesh
64 # Data sets still to regenerate:
65 XFAIL_TESTS+= \
66   gras/datadesc/datadesc_r_little32.tesh   \
67   gras/datadesc/datadesc_r_big32_8.tesh    \
68   gras/datadesc/datadesc_r_big32_2.tesh
69
70 noinst_PROGRAMS += gras/datadesc/datadesc_usage   
71 gras_datadesc_datadesc_usage_SOURCES=   gras/datadesc/datadesc_usage.c gras/datadesc/datadesc_structs.c
72 gras_datadesc_datadesc_usage_LDADD=     $(LDADD_RL)
73
74 gras/datadesc/datadesc_structs.c: gras/datadesc/mk_datadesc_structs.pl; \
75         perl $(top_srcdir)/teshsuite/gras/datadesc/mk_datadesc_structs.pl > $@
76
77   ## Ensures the gras_msg_handle semantic ##
78   ##########################################
79 EXTRA_DIST += gras/msg_handle/msg_handle.xml \
80               gras/msg_handle/test_rl \
81               gras/msg_handle/test_sg_32 gras/msg_handle/test_sg_64
82 noinst_PROGRAMS+=\
83   gras/msg_handle/msg_handle_client \
84   gras/msg_handle/msg_handle_server \
85   gras/msg_handle/msg_handle_simulator
86
87 gras_msg_handle_msg_handle_simulator_SOURCES= gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_simulator.c
88 gras_msg_handle_msg_handle_client_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_client.c
89 gras_msg_handle_msg_handle_server_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_server.c
90
91 gras_msg_handle_msg_handle_simulator_LDADD=   $(LDADD_SG)
92 gras_msg_handle_msg_handle_client_LDADD=      $(LDADD_RL)
93 gras_msg_handle_msg_handle_server_LDADD=      $(LDADD_RL)
94
95 gras/msg_handle/_msg_handle_simulator.c gras/msg_handle/_msg_handle_client.c gras/msg_handle/_msg_handle_server.c : gras/msg_handle/msg_handle.c gras/msg_handle/msg_handle.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@; \
96         mkdir -p gras/msg_handle; \
97           cd gras/msg_handle;\
98           $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ msg_handle $(abs_top_srcdir)/teshsuite/gras/msg_handle/msg_handle.xml
99
100
101 if GRAS_ARCH_32_BITS
102   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_32
103 else
104   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_64
105 endif
106
107   ## Make sure it's ok to have empty main functions ##
108   ####################################################
109 EXTRA_DIST += gras/empty_main/empty_main.xml \
110               gras/empty_main/test_rl gras/empty_main/test_sg
111 noinst_PROGRAMS+=\
112   gras/empty_main/empty_main_function \
113   gras/empty_main/empty_main_simulator
114
115 gras_empty_main_empty_main_simulator_SOURCES= gras/empty_main/empty_main.c gras/empty_main/_empty_main_simulator.c
116 gras_empty_main_empty_main_function_SOURCES=  gras/empty_main/empty_main.c gras/empty_main/_empty_main_function.c
117
118 gras_empty_main_empty_main_simulator_LDADD=   $(LDADD_SG)
119 gras_empty_main_empty_main_function_LDADD=    $(LDADD_RL)
120
121 gras/empty_main/_empty_main_simulator.c gras/empty_main/_empty_main_function.c : gras/empty_main/empty_main.c gras/empty_main/empty_main.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ ; \
122         mkdir -p gras/empty_main; \
123           cd gras/empty_main;\
124           $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ empty_main $(abs_top_srcdir)/teshsuite/gras/empty_main/empty_main.xml
125
126 TESTS += gras/empty_main/test_rl gras/empty_main/test_sg
127
128   ## Make sure it's ok to have very small sleeps (not meant for real life) ##
129   ###########################################################################
130 EXTRA_DIST += gras/small_sleep/small_sleep.xml \
131               gras/small_sleep/test_sg_32 gras/small_sleep/test_sg_64
132 noinst_PROGRAMS+=\
133   gras/small_sleep/small_sleep_function \
134   gras/small_sleep/small_sleep_simulator
135
136 gras_small_sleep_small_sleep_simulator_SOURCES= gras/small_sleep/small_sleep.c gras/small_sleep/_small_sleep_simulator.c
137 gras_small_sleep_small_sleep_function_SOURCES=  gras/small_sleep/small_sleep.c gras/small_sleep/_small_sleep_function.c
138
139 gras_small_sleep_small_sleep_simulator_LDADD=   $(LDADD_SG)
140 gras_small_sleep_small_sleep_function_LDADD=    $(LDADD_RL)
141
142 gras/small_sleep/_small_sleep_simulator.c gras/small_sleep/_small_sleep_function.c : gras/small_sleep/small_sleep.c gras/small_sleep/small_sleep.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@; \
143         mkdir -p gras/small_sleep; \
144           cd gras/small_sleep;\
145           $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ small_sleep $(abs_top_srcdir)/teshsuite/gras/small_sleep/small_sleep.xml
146
147 if GRAS_ARCH_32_BITS
148   TESTS += gras/small_sleep/test_sg_32
149 else
150   TESTS += gras/small_sleep/test_sg_64
151 endif
152
153 #############
154 # MSG tests #
155 #############
156
157 noinst_PROGRAMS += msg/get_sender
158 EXTRA_DIST      += msg/get_sender.xml \
159                    msg/get_sender.tesh
160 msg_get_sender_SOURCES = msg/get_sender.c
161 msg_get_sender_LDADD   = $(LDADD_SG)
162 TESTS += msg/get_sender.tesh
163
164 ###################################
165 # network model test via SimDag API
166 ###################################
167
168 # misc tests
169
170 noinst_PROGRAMS += simdag/network/test_reinit_costs
171 EXTRA_DIST      += simdag/network/platform_2p_1sl.xml
172 simdag_network_test_reinit_costs_SOURCES = simdag/network/test_reinit_costs.c
173 simdag_network_test_reinit_costs_LDADD   =   $(LDADD_SG)
174 TESTS += \
175   simdag/network/test_reinit_costs.tesh
176
177 noinst_PROGRAMS += simdag/platforms/basic_parsing_test
178 simdag_platforms_basic_parsing_test_SOURCES = simdag/platforms/basic_parsing_test.c
179 simdag_platforms_basic_parsing_test_LDADD = $(LDADD_SG)
180 TESTS += simdag/platforms/basic_parsing_test.tesh
181 XFAIL_TESTS += simdag/platforms/basic_parsing_test_failing.tesh
182
183 noinst_PROGRAMS += simdag/platforms/flatifier
184 simdag_platforms_flatifier_SOURCES = simdag/platforms/flatifier.c
185 simdag_platforms_flatifier_LDADD = $(LDADD_SG)
186 TESTS += simdag/platforms/flatifier.tesh
187 XFAIL_TESTS += simdag/platforms/flatifier.tesh
188
189 EXTRA_DIST      += simdag/platforms/one_cluster_foreach.xml \
190                    simdag/platforms/one_cluster_one_host_random.xml \
191                    simdag/platforms/one_cluster_one_host.xml \
192                    simdag/platforms/one_cluster_properties_foreach.xml \
193                    simdag/platforms/one_cluster_properties_override.xml \
194                    simdag/platforms/one_cluster.xml \
195                    simdag/platforms/one_host_availability.xml \
196                    simdag/platforms/one_host_properties.xml \
197                    simdag/platforms/one_host_state_file.xml \
198                    simdag/platforms/one_host_state_off.xml \
199                    simdag/platforms/one_host_state_on.xml \
200                    simdag/platforms/one_host_trace_file.xml \
201                    simdag/platforms/one_host_trace_inside.xml \
202                    simdag/platforms/one_host.xml \
203                    simdag/platforms/one_link_availability.xml \
204                    simdag/platforms/one_link_fatpipe.xml \
205                    simdag/platforms/one_link_shared.xml \
206                    simdag/platforms/one_link_state_file.xml \
207                    simdag/platforms/route_override.xml \
208                    simdag/platforms/three_hosts_non_symmetric_route.xml \
209                    simdag/platforms/two_clusters_symmetric.xml \
210                    simdag/platforms/two_clusters.xml \
211                    simdag/platforms/two_hosts_multi_hop.xml \
212                    simdag/platforms/two_hosts_one_link.xml \
213                    simdag/platforms/bob.fail \
214                    simdag/platforms/bob.trace \
215                    simdag/platforms/link1.bw \
216                    simdag/platforms/link1.fail \
217                    simdag/platforms/link1.lat 
218
219 # from L.C. Canon
220 noinst_PROGRAMS += simdag/basic0 \
221                    simdag/basic1 \
222                    simdag/basic2 \
223                    simdag/basic3 \
224                    simdag/basic4 \
225                    simdag/basic5 \
226                    simdag/basic6
227
228 EXTRA_DIST      += simdag/basic_platform.xml
229
230 simdag_basic0_SOURCES = simdag/basic0.c
231 simdag_basic0_LDADD = $(LDADD_SG)
232 simdag_basic1_SOURCES = simdag/basic1.c
233 simdag_basic1_LDADD = $(LDADD_SG)
234 simdag_basic2_SOURCES = simdag/basic2.c
235 simdag_basic2_LDADD = $(LDADD_SG)
236 simdag_basic3_SOURCES = simdag/basic3.c
237 simdag_basic3_LDADD = $(LDADD_SG)
238 simdag_basic4_SOURCES = simdag/basic4.c
239 simdag_basic4_LDADD = $(LDADD_SG)
240 simdag_basic5_SOURCES = simdag/basic5.c
241 simdag_basic5_LDADD = $(LDADD_SG)
242 simdag_basic6_SOURCES = simdag/basic6.c
243 simdag_basic6_LDADD = $(LDADD_SG)
244
245 TESTS += \
246   simdag/basic0.tesh  \
247   simdag/basic1.tesh \
248   simdag/basic2.tesh \
249   simdag/basic3.tesh \
250   simdag/basic4.tesh \
251   simdag/basic5.tesh \
252   simdag/basic6.tesh
253
254 # p2p
255
256 noinst_PROGRAMS += simdag/network/p2p/test_latency1 \
257                    simdag/network/p2p/test_latency2 \
258                    simdag/network/p2p/test_latency3 \
259                    simdag/network/p2p/test_latency_bound
260
261 EXTRA_DIST      += simdag/network/p2p/platform_2p_1sl.xml \
262                    simdag/network/p2p/platform_2p_1fl.xml \
263                    simdag/network/p2p/platform_2p_1switch.xml \
264                    simdag/network/p2p/platform_2p_1bb.xml
265
266 simdag_network_p2p_test_latency1_SOURCES = simdag/network/p2p/test_latency1.c
267 simdag_network_p2p_test_latency1_LDADD   = $(LDADD_SG)
268 simdag_network_p2p_test_latency2_SOURCES = simdag/network/p2p/test_latency2.c
269 simdag_network_p2p_test_latency2_LDADD   = $(LDADD_SG)
270 simdag_network_p2p_test_latency3_SOURCES = simdag/network/p2p/test_latency3.c
271 simdag_network_p2p_test_latency3_LDADD   = $(LDADD_SG)
272 simdag_network_p2p_test_latency_bound_SOURCES = simdag/network/p2p/test_latency_bound.c
273 simdag_network_p2p_test_latency_bound_LDADD   = $(LDADD_SG)
274
275 TESTS += \
276   simdag/network/p2p/test_latency1.tesh \
277   simdag/network/p2p/test_latency2.tesh \
278   simdag/network/p2p/test_latency3.tesh \
279   simdag/network/p2p/test_latency_bound.tesh
280
281 # m x n tests
282
283 noinst_PROGRAMS += simdag/network/mxn/test_intra_all2all \
284                    simdag/network/mxn/test_intra_independent_comm \
285                    simdag/network/mxn/test_intra_scatter
286
287 EXTRA_DIST      += simdag/network/mxn/platform_4p_1switch.xml 
288
289 simdag_network_mxn_test_intra_all2all_SOURCES = simdag/network/mxn/test_intra_all2all.c
290 simdag_network_mxn_test_intra_all2all_LDADD   = $(LDADD_SG)
291 simdag_network_mxn_test_intra_independent_comm_SOURCES = simdag/network/mxn/test_intra_independent_comm.c
292 simdag_network_mxn_test_intra_independent_comm_LDADD   = $(LDADD_SG)
293 simdag_network_mxn_test_intra_scatter_SOURCES = simdag/network/mxn/test_intra_scatter.c
294 simdag_network_mxn_test_intra_scatter_LDADD   = $(LDADD_SG)
295
296 TESTS += \
297   simdag/network/mxn/test_intra_all2all.tesh \
298   simdag/network/mxn/test_intra_independent_comm.tesh \
299   simdag/network/mxn/test_intra_scatter.tesh 
300
301 # testing parallel tasks
302
303 noinst_PROGRAMS += simdag/partask/test_comp_only_seq \
304                    simdag/partask/test_comp_only_par 
305
306 EXTRA_DIST      += simdag/partask/platform_2p_1sl_hetero.xml \
307                    simdag/partask/platform_2p_1sl.xml
308
309 simdag_partask_test_comp_only_seq_SOURCES = simdag/partask/test_comp_only_seq.c
310 simdag_partask_test_comp_only_seq_LDADD   = $(LDADD_SG)
311 simdag_partask_test_comp_only_par_SOURCES = simdag/partask/test_comp_only_par.c
312 simdag_partask_test_comp_only_par_LDADD   = $(LDADD_SG)
313
314 TESTS += \
315   simdag/partask/test_comp_only_seq.tesh \
316   simdag/partask/test_comp_only_par.tesh
317
318 EXTRA_DIST+=$(TESTS)
319 include $(top_srcdir)/acmacro/dist-files.mk