Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
63a24c68968fa01189a08640e9ccb514e2dafbe4
[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
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 noinst_PROGRAMS+=\
82   gras/msg_handle/msg_handle_client \
83   gras/msg_handle/msg_handle_server \
84   gras/msg_handle/msg_handle_simulator
85
86 gras_msg_handle_msg_handle_simulator_SOURCES= gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_simulator.c
87 gras_msg_handle_msg_handle_client_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_client.c
88 gras_msg_handle_msg_handle_server_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_server.c
89
90 gras_msg_handle_msg_handle_simulator_LDADD=   $(LDADD_SG)
91 gras_msg_handle_msg_handle_client_LDADD=      $(LDADD_RL)
92 gras_msg_handle_msg_handle_server_LDADD=      $(LDADD_RL)
93
94 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@
95         mkdir -p gras/msg_handle; \
96           cd gras/msg_handle;\
97           ../../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ msg_handle ../../$(top_srcdir)/teshsuite/gras/msg_handle/msg_handle.xml
98
99
100 if GRAS_ARCH_32_BITS
101   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_32
102 else
103   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_64
104 endif
105
106   ## Make sure it's ok to have empty main functions ##
107   ####################################################
108 EXTRA_DIST += gras/empty_main/empty_main.xml
109 noinst_PROGRAMS+=\
110   gras/empty_main/empty_main_function \
111   gras/empty_main/empty_main_simulator
112   
113 gras_empty_main_empty_main_simulator_SOURCES= gras/empty_main/empty_main.c gras/empty_main/_empty_main_simulator.c
114 gras_empty_main_empty_main_function_SOURCES=  gras/empty_main/empty_main.c gras/empty_main/_empty_main_function.c
115
116 gras_empty_main_empty_main_simulator_LDADD=   $(LDADD_SG)
117 gras_empty_main_empty_main_function_LDADD=    $(LDADD_RL)
118
119 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@
120         mkdir -p gras/empty_main; \
121           cd gras/empty_main;\
122           ../../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ empty_main ../../$(top_srcdir)/teshsuite/gras/empty_main/empty_main.xml
123
124 TESTS += gras/empty_main/test_rl gras/empty_main/test_sg
125
126 ###################################
127 # network model test via SimDag API
128 ###################################
129
130 # misc tests
131
132 noinst_PROGRAMS += simdag/network/test_reinit_costs
133 EXTRA_DIST      += simdag/network/platform_2p_1sl.xml
134 simdag_network_test_reinit_costs_SOURCES = simdag/network/test_reinit_costs.c
135 simdag_network_test_reinit_costs_LDADD   =   $(LDADD_SG)
136 TESTS += \
137   simdag/network/test_reinit_costs.tesh
138
139 # from L.C. Canon
140 noinst_PROGRAMS += simdag/basic0 \
141                    simdag/basic1 \
142                    simdag/basic2 \
143                    simdag/basic3 \
144                    simdag/basic4 \
145                    simdag/basic5 \
146                    simdag/basic6
147
148 EXTRA_DIST      += simdag/basic_platform.xml
149
150 simdag_basic0_SOURCES = simdag/basic0.c
151 simdag_basic0_LDADD = $(LDADD_SG)
152 simdag_basic1_SOURCES = simdag/basic1.c
153 simdag_basic1_LDADD = $(LDADD_SG)
154 simdag_basic2_SOURCES = simdag/basic2.c
155 simdag_basic2_LDADD = $(LDADD_SG)
156 simdag_basic3_SOURCES = simdag/basic3.c
157 simdag_basic3_LDADD = $(LDADD_SG)
158 simdag_basic4_SOURCES = simdag/basic4.c
159 simdag_basic4_LDADD = $(LDADD_SG)
160 simdag_basic5_SOURCES = simdag/basic5.c
161 simdag_basic5_LDADD = $(LDADD_SG)
162 simdag_basic6_SOURCES = simdag/basic6.c
163 simdag_basic6_LDADD = $(LDADD_SG)
164
165 TESTS += \
166   simdag/basic0.tesh  \
167   simdag/basic1.tesh \
168   simdag/basic2.tesh \
169   simdag/basic3.tesh \
170   simdag/basic4.tesh \
171   simdag/basic5.tesh \
172   simdag/basic6.tesh
173
174 # p2p
175
176 noinst_PROGRAMS += simdag/network/p2p/test_latency1 \
177                    simdag/network/p2p/test_latency2 \
178                    simdag/network/p2p/test_latency3 \
179                    simdag/network/p2p/test_latency_bound
180
181 EXTRA_DIST      += simdag/network/p2p/platform_2p_1sl.xml \
182                    simdag/network/p2p/platform_2p_1fl.xml \
183                    simdag/network/p2p/platform_2p_1switch.xml \
184                    simdag/network/p2p/platform_2p_1bb.xml
185
186 simdag_network_p2p_test_latency1_SOURCES = simdag/network/p2p/test_latency1.c
187 simdag_network_p2p_test_latency1_LDADD   = $(LDADD_SG)
188 simdag_network_p2p_test_latency2_SOURCES = simdag/network/p2p/test_latency2.c
189 simdag_network_p2p_test_latency2_LDADD   = $(LDADD_SG)
190 simdag_network_p2p_test_latency3_SOURCES = simdag/network/p2p/test_latency3.c
191 simdag_network_p2p_test_latency3_LDADD   = $(LDADD_SG)
192 simdag_network_p2p_test_latency_bound_SOURCES = simdag/network/p2p/test_latency_bound.c
193 simdag_network_p2p_test_latency_bound_LDADD   = $(LDADD_SG)
194
195 TESTS += \
196   simdag/network/p2p/test_latency1.tesh \
197   simdag/network/p2p/test_latency2.tesh \
198   simdag/network/p2p/test_latency3.tesh \
199   simdag/network/p2p/test_latency_bound.tesh
200
201 # m x n tests
202
203 noinst_PROGRAMS += simdag/network/mxn/test_intra_all2all \
204                    simdag/network/mxn/test_intra_independent_comm \
205                    simdag/network/mxn/test_intra_scatter
206
207 EXTRA_DIST      += simdag/network/mxn/platform_4p_1switch.xml 
208
209 simdag_network_mxn_test_intra_all2all_SOURCES = simdag/network/mxn/test_intra_all2all.c
210 simdag_network_mxn_test_intra_all2all_LDADD   = $(LDADD_SG)
211 simdag_network_mxn_test_intra_independent_comm_SOURCES = simdag/network/mxn/test_intra_independent_comm.c
212 simdag_network_mxn_test_intra_independent_comm_LDADD   = $(LDADD_SG)
213 simdag_network_mxn_test_intra_scatter_SOURCES = simdag/network/mxn/test_intra_scatter.c
214 simdag_network_mxn_test_intra_scatter_LDADD   = $(LDADD_SG)
215
216 TESTS += \
217   simdag/network/mxn/test_intra_all2all.tesh \
218   simdag/network/mxn/test_intra_independent_comm.tesh \
219   simdag/network/mxn/test_intra_scatter.tesh 
220
221 # testing parallel tasks
222
223 noinst_PROGRAMS += simdag/partask/test_comp_only_seq \
224                    simdag/partask/test_comp_only_par 
225
226 EXTRA_DIST      += simdag/partask/platform_2p_1sl_hetero.xml \
227                    simdag/partask/platform_2p_1sl.xml
228
229 simdag_partask_test_comp_only_seq_SOURCES = simdag/partask/test_comp_only_seq.c
230 simdag_partask_test_comp_only_seq_LDADD   = $(LDADD_SG)
231 simdag_partask_test_comp_only_par_SOURCES = simdag/partask/test_comp_only_par.c
232 simdag_partask_test_comp_only_par_LDADD   = $(LDADD_SG)
233
234 TESTS += \
235   simdag/partask/test_comp_only_seq.tesh \
236   simdag/partask/test_comp_only_par.tesh
237
238 EXTRA_DIST+=$(TESTS)
239 include $(top_srcdir)/acmacro/dist-files.mk