Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revalidate output. It did not take into account last improvements to
[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
107 ###################################
108 # network model test via SimDag API
109 ###################################
110
111 # misc tests
112
113 noinst_PROGRAMS += simdag/network/test_reinit_costs
114 EXTRA_DIST      += simdag/network/platform_2p_1sl.xml
115 simdag_network_test_reinit_costs_SOURCES = simdag/network/test_reinit_costs.c
116 simdag_network_test_reinit_costs_LDADD   =   $(LDADD_SG)
117 TESTS += \
118   simdag/network/test_reinit_costs.tesh
119
120 # from L.C. Canon
121 noinst_PROGRAMS += simdag/basic0 \
122                    simdag/basic1 \
123                    simdag/basic2 \
124                    simdag/basic3 \
125                    simdag/basic4 \
126                    simdag/basic5 \
127                    simdag/basic6
128
129 EXTRA_DIST      += simdag/basic_platform.xml
130
131 simdag_basic0_SOURCES = simdag/basic0.c
132 simdag_basic0_LDADD = $(LDADD_SG)
133 simdag_basic1_SOURCES = simdag/basic1.c
134 simdag_basic1_LDADD = $(LDADD_SG)
135 simdag_basic2_SOURCES = simdag/basic2.c
136 simdag_basic2_LDADD = $(LDADD_SG)
137 simdag_basic3_SOURCES = simdag/basic3.c
138 simdag_basic3_LDADD = $(LDADD_SG)
139 simdag_basic4_SOURCES = simdag/basic4.c
140 simdag_basic4_LDADD = $(LDADD_SG)
141 simdag_basic5_SOURCES = simdag/basic5.c
142 simdag_basic5_LDADD = $(LDADD_SG)
143 simdag_basic6_SOURCES = simdag/basic6.c
144 simdag_basic6_LDADD = $(LDADD_SG)
145
146 TESTS += \
147   simdag/basic0.tesh  \
148   simdag/basic1.tesh \
149   simdag/basic2.tesh \
150   simdag/basic3.tesh \
151   simdag/basic4.tesh \
152   simdag/basic5.tesh \
153   simdag/basic6.tesh
154
155 # p2p
156
157 noinst_PROGRAMS += simdag/network/p2p/test_latency1 \
158                    simdag/network/p2p/test_latency2 \
159                    simdag/network/p2p/test_latency3 \
160                    simdag/network/p2p/test_latency_bound
161
162 EXTRA_DIST      += simdag/network/p2p/platform_2p_1sl.xml \
163                    simdag/network/p2p/platform_2p_1fl.xml \
164                    simdag/network/p2p/platform_2p_1switch.xml \
165                    simdag/network/p2p/platform_2p_1bb.xml
166
167 simdag_network_p2p_test_latency1_SOURCES = simdag/network/p2p/test_latency1.c
168 simdag_network_p2p_test_latency1_LDADD   = $(LDADD_SG)
169 simdag_network_p2p_test_latency2_SOURCES = simdag/network/p2p/test_latency2.c
170 simdag_network_p2p_test_latency2_LDADD   = $(LDADD_SG)
171 simdag_network_p2p_test_latency3_SOURCES = simdag/network/p2p/test_latency3.c
172 simdag_network_p2p_test_latency3_LDADD   = $(LDADD_SG)
173 simdag_network_p2p_test_latency_bound_SOURCES = simdag/network/p2p/test_latency_bound.c
174 simdag_network_p2p_test_latency_bound_LDADD   = $(LDADD_SG)
175
176 TESTS += \
177   simdag/network/p2p/test_latency1.tesh \
178   simdag/network/p2p/test_latency2.tesh \
179   simdag/network/p2p/test_latency3.tesh \
180   simdag/network/p2p/test_latency_bound.tesh
181
182 # m x n tests
183
184 noinst_PROGRAMS += simdag/network/mxn/test_intra_all2all \
185                    simdag/network/mxn/test_intra_independent_comm \
186                    simdag/network/mxn/test_intra_scatter
187
188 EXTRA_DIST      += simdag/network/mxn/platform_4p_1switch.xml 
189
190 simdag_network_mxn_test_intra_all2all_SOURCES = simdag/network/mxn/test_intra_all2all.c
191 simdag_network_mxn_test_intra_all2all_LDADD   = $(LDADD_SG)
192 simdag_network_mxn_test_intra_independent_comm_SOURCES = simdag/network/mxn/test_intra_independent_comm.c
193 simdag_network_mxn_test_intra_independent_comm_LDADD   = $(LDADD_SG)
194 simdag_network_mxn_test_intra_scatter_SOURCES = simdag/network/mxn/test_intra_scatter.c
195 simdag_network_mxn_test_intra_scatter_LDADD   = $(LDADD_SG)
196
197 TESTS += \
198   simdag/network/mxn/test_intra_all2all.tesh \
199   simdag/network/mxn/test_intra_independent_comm.tesh \
200   simdag/network/mxn/test_intra_scatter.tesh 
201
202 # testing parallel tasks
203
204 noinst_PROGRAMS += simdag/partask/test_comp_only_seq \
205                    simdag/partask/test_comp_only_par 
206
207 EXTRA_DIST      += simdag/partask/platform_2p_1sl_hetero.xml \
208                    simdag/partask/platform_2p_1sl.xml
209
210 simdag_partask_test_comp_only_seq_SOURCES = simdag/partask/test_comp_only_seq.c
211 simdag_partask_test_comp_only_seq_LDADD   = $(LDADD_SG)
212 simdag_partask_test_comp_only_par_SOURCES = simdag/partask/test_comp_only_par.c
213 simdag_partask_test_comp_only_par_LDADD   = $(LDADD_SG)
214
215 TESTS += \
216   simdag/partask/test_comp_only_seq.tesh \
217   simdag/partask/test_comp_only_par.tesh
218
219 include $(top_srcdir)/acmacro/dist-files.mk