Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Autogenerated file
[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_8_4.tesh  \
69   gras/datadesc/datadesc_r_big32_2.tesh
70
71 noinst_PROGRAMS += gras/datadesc/datadesc_usage   
72 gras_datadesc_datadesc_usage_SOURCES=   gras/datadesc/datadesc_usage.c gras/datadesc/datadesc_structs.c
73 gras_datadesc_datadesc_usage_LDADD=     $(LDADD_RL)
74
75 gras/datadesc/datadesc_structs.c: gras/datadesc/mk_datadesc_structs.pl
76         perl $(top_srcdir)/teshsuite/gras/datadesc/mk_datadesc_structs.pl > $@
77
78   ## Ensures the gras_msg_handle semantic ##
79   ##########################################
80 EXTRA_DIST += gras/msg_handle/msg_handle.xml \
81               gras/msg_handle/test_rl \
82               gras/msg_handle/test_sg_32 gras/msg_handle/test_sg_64
83 noinst_PROGRAMS+=\
84   gras/msg_handle/msg_handle_client \
85   gras/msg_handle/msg_handle_server \
86   gras/msg_handle/msg_handle_simulator
87
88 gras_msg_handle_msg_handle_simulator_SOURCES= gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_simulator.c
89 gras_msg_handle_msg_handle_client_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_client.c
90 gras_msg_handle_msg_handle_server_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_server.c
91
92 gras_msg_handle_msg_handle_simulator_LDADD=   $(LDADD_SG)
93 gras_msg_handle_msg_handle_client_LDADD=      $(LDADD_RL)
94 gras_msg_handle_msg_handle_server_LDADD=      $(LDADD_RL)
95
96 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@
97         mkdir -p gras/msg_handle; \
98           cd gras/msg_handle;\
99           $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ msg_handle $(abs_top_srcdir)/teshsuite/gras/msg_handle/msg_handle.xml
100
101
102 if GRAS_ARCH_32_BITS
103   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_32
104 else
105   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_64
106 endif
107
108   ## Make sure it's ok to have empty main functions ##
109   ####################################################
110 EXTRA_DIST += gras/empty_main/empty_main.xml \
111               gras/empty_main/test_rl gras/empty_main/test_sg
112 noinst_PROGRAMS+=\
113   gras/empty_main/empty_main_function \
114   gras/empty_main/empty_main_simulator
115
116 gras_empty_main_empty_main_simulator_SOURCES= gras/empty_main/empty_main.c gras/empty_main/_empty_main_simulator.c
117 gras_empty_main_empty_main_function_SOURCES=  gras/empty_main/empty_main.c gras/empty_main/_empty_main_function.c
118
119 gras_empty_main_empty_main_simulator_LDADD=   $(LDADD_SG)
120 gras_empty_main_empty_main_function_LDADD=    $(LDADD_RL)
121
122 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@
123         mkdir -p gras/empty_main; \
124           cd gras/empty_main;\
125           $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ empty_main $(abs_top_srcdir)/teshsuite/gras/empty_main/empty_main.xml
126
127 TESTS += gras/empty_main/test_rl gras/empty_main/test_sg
128
129   ## Make sure it's ok to have very small sleeps (not meant for real life) ##
130   ###########################################################################
131 EXTRA_DIST += gras/small_sleep/small_sleep.xml \
132               gras/small_sleep/test_sg_32 gras/small_sleep/test_sg_64
133 noinst_PROGRAMS+=\
134   gras/small_sleep/small_sleep_function \
135   gras/small_sleep/small_sleep_simulator
136
137 gras_small_sleep_small_sleep_simulator_SOURCES= gras/small_sleep/small_sleep.c gras/small_sleep/_small_sleep_simulator.c
138 gras_small_sleep_small_sleep_function_SOURCES=  gras/small_sleep/small_sleep.c gras/small_sleep/_small_sleep_function.c
139
140 gras_small_sleep_small_sleep_simulator_LDADD=   $(LDADD_SG)
141 gras_small_sleep_small_sleep_function_LDADD=    $(LDADD_RL)
142
143 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@
144         mkdir -p gras/small_sleep; \
145           cd gras/small_sleep;\
146           $(abs_top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ small_sleep $(abs_top_srcdir)/teshsuite/gras/small_sleep/small_sleep.xml
147
148 if GRAS_ARCH_32_BITS
149   TESTS += gras/small_sleep/test_sg_32
150 else
151   TESTS += gras/small_sleep/test_sg_64
152 endif
153
154 ###################################
155 # network model test via SimDag API
156 ###################################
157
158 # misc tests
159
160 noinst_PROGRAMS += simdag/network/test_reinit_costs
161 EXTRA_DIST      += simdag/network/platform_2p_1sl.xml
162 simdag_network_test_reinit_costs_SOURCES = simdag/network/test_reinit_costs.c
163 simdag_network_test_reinit_costs_LDADD   =   $(LDADD_SG)
164 TESTS += \
165   simdag/network/test_reinit_costs.tesh
166
167 noinst_PROGRAMS += simdag/platforms/basic_parsing_test
168 simdag_platforms_basic_parsing_test_SOURCES = simdag/platforms/basic_parsing_test.c
169 simdag_platforms_basic_parsing_test_LDADD = $(LDADD_SG)
170 TESTS += simdag/platforms/basic_parsing_test.tesh
171 XFAIL_TESTS += simdag/platforms/basic_parsing_test_failing.tesh
172
173 noinst_PROGRAMS += simdag/platforms/flatifier
174 simdag_platforms_flatifier_SOURCES = simdag/platforms/flatifier.c
175 simdag_platforms_flatifier_LDADD = $(LDADD_SG)
176 TESTS += simdag/platforms/flatifier.tesh
177
178 EXTRA_DIST      += simdag/platforms/one_cluster_foreach.xml \
179                    simdag/platforms/one_cluster_one_host_random.xml \
180                    simdag/platforms/one_cluster_one_host.xml \
181                    simdag/platforms/one_cluster_properties_foreach.xml \
182                    simdag/platforms/one_cluster_properties_override.xml \
183                    simdag/platforms/one_cluster.xml \
184                    simdag/platforms/one_host_availability.xml \
185                    simdag/platforms/one_host_properties.xml \
186                    simdag/platforms/one_host_state_file.xml \
187                    simdag/platforms/one_host_state_off.xml \
188                    simdag/platforms/one_host_state_on.xml \
189                    simdag/platforms/one_host_trace_file.xml \
190                    simdag/platforms/one_host_trace_inside.xml \
191                    simdag/platforms/one_host.xml \
192                    simdag/platforms/one_link_availability.xml \
193                    simdag/platforms/one_link_fatpipe.xml \
194                    simdag/platforms/one_link_shared.xml \
195                    simdag/platforms/one_link_state_file.xml \
196                    simdag/platforms/route_override.xml \
197                    simdag/platforms/three_hosts_non_symmetric_route.xml \
198                    simdag/platforms/two_clusters_symmetric.xml \
199                    simdag/platforms/two_clusters.xml \
200                    simdag/platforms/two_hosts_multi_hop.xml \
201                    simdag/platforms/two_hosts_one_link.xml
202
203
204 # from L.C. Canon
205 noinst_PROGRAMS += simdag/basic0 \
206                    simdag/basic1 \
207                    simdag/basic2 \
208                    simdag/basic3 \
209                    simdag/basic4 \
210                    simdag/basic5 \
211                    simdag/basic6
212
213 EXTRA_DIST      += simdag/basic_platform.xml
214
215 simdag_basic0_SOURCES = simdag/basic0.c
216 simdag_basic0_LDADD = $(LDADD_SG)
217 simdag_basic1_SOURCES = simdag/basic1.c
218 simdag_basic1_LDADD = $(LDADD_SG)
219 simdag_basic2_SOURCES = simdag/basic2.c
220 simdag_basic2_LDADD = $(LDADD_SG)
221 simdag_basic3_SOURCES = simdag/basic3.c
222 simdag_basic3_LDADD = $(LDADD_SG)
223 simdag_basic4_SOURCES = simdag/basic4.c
224 simdag_basic4_LDADD = $(LDADD_SG)
225 simdag_basic5_SOURCES = simdag/basic5.c
226 simdag_basic5_LDADD = $(LDADD_SG)
227 simdag_basic6_SOURCES = simdag/basic6.c
228 simdag_basic6_LDADD = $(LDADD_SG)
229
230 TESTS += \
231   simdag/basic0.tesh  \
232   simdag/basic1.tesh \
233   simdag/basic2.tesh \
234   simdag/basic3.tesh \
235   simdag/basic4.tesh \
236   simdag/basic5.tesh \
237   simdag/basic6.tesh
238
239 # p2p
240
241 noinst_PROGRAMS += simdag/network/p2p/test_latency1 \
242                    simdag/network/p2p/test_latency2 \
243                    simdag/network/p2p/test_latency3 \
244                    simdag/network/p2p/test_latency_bound
245
246 EXTRA_DIST      += simdag/network/p2p/platform_2p_1sl.xml \
247                    simdag/network/p2p/platform_2p_1fl.xml \
248                    simdag/network/p2p/platform_2p_1switch.xml \
249                    simdag/network/p2p/platform_2p_1bb.xml
250
251 simdag_network_p2p_test_latency1_SOURCES = simdag/network/p2p/test_latency1.c
252 simdag_network_p2p_test_latency1_LDADD   = $(LDADD_SG)
253 simdag_network_p2p_test_latency2_SOURCES = simdag/network/p2p/test_latency2.c
254 simdag_network_p2p_test_latency2_LDADD   = $(LDADD_SG)
255 simdag_network_p2p_test_latency3_SOURCES = simdag/network/p2p/test_latency3.c
256 simdag_network_p2p_test_latency3_LDADD   = $(LDADD_SG)
257 simdag_network_p2p_test_latency_bound_SOURCES = simdag/network/p2p/test_latency_bound.c
258 simdag_network_p2p_test_latency_bound_LDADD   = $(LDADD_SG)
259
260 TESTS += \
261   simdag/network/p2p/test_latency1.tesh \
262   simdag/network/p2p/test_latency2.tesh \
263   simdag/network/p2p/test_latency3.tesh \
264   simdag/network/p2p/test_latency_bound.tesh
265
266 # m x n tests
267
268 noinst_PROGRAMS += simdag/network/mxn/test_intra_all2all \
269                    simdag/network/mxn/test_intra_independent_comm \
270                    simdag/network/mxn/test_intra_scatter
271
272 EXTRA_DIST      += simdag/network/mxn/platform_4p_1switch.xml 
273
274 simdag_network_mxn_test_intra_all2all_SOURCES = simdag/network/mxn/test_intra_all2all.c
275 simdag_network_mxn_test_intra_all2all_LDADD   = $(LDADD_SG)
276 simdag_network_mxn_test_intra_independent_comm_SOURCES = simdag/network/mxn/test_intra_independent_comm.c
277 simdag_network_mxn_test_intra_independent_comm_LDADD   = $(LDADD_SG)
278 simdag_network_mxn_test_intra_scatter_SOURCES = simdag/network/mxn/test_intra_scatter.c
279 simdag_network_mxn_test_intra_scatter_LDADD   = $(LDADD_SG)
280
281 TESTS += \
282   simdag/network/mxn/test_intra_all2all.tesh \
283   simdag/network/mxn/test_intra_independent_comm.tesh \
284   simdag/network/mxn/test_intra_scatter.tesh 
285
286 # testing parallel tasks
287
288 noinst_PROGRAMS += simdag/partask/test_comp_only_seq \
289                    simdag/partask/test_comp_only_par 
290
291 EXTRA_DIST      += simdag/partask/platform_2p_1sl_hetero.xml \
292                    simdag/partask/platform_2p_1sl.xml
293
294 simdag_partask_test_comp_only_seq_SOURCES = simdag/partask/test_comp_only_seq.c
295 simdag_partask_test_comp_only_seq_LDADD   = $(LDADD_SG)
296 simdag_partask_test_comp_only_par_SOURCES = simdag/partask/test_comp_only_par.c
297 simdag_partask_test_comp_only_par_LDADD   = $(LDADD_SG)
298
299 TESTS += \
300   simdag/partask/test_comp_only_seq.tesh \
301   simdag/partask/test_comp_only_par.tesh
302
303 EXTRA_DIST+=$(TESTS)
304 include $(top_srcdir)/acmacro/dist-files.mk