Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revalidate this dataset after the move to full blown messages instead of direct trans...
[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 parallel logs ##
29   #######################
30
31 TESTS += xbt/parallel_log_crashtest.tesh
32 noinst_PROGRAMS += xbt/parallel_log_crashtest 
33 xbt_parallel_log_crashtest_LDADD = $(LDADD_RL)
34
35 ##################
36 ### GRAS tests ###
37 ##################
38
39   ## Try structured communication facilities ##
40   #############################################
41
42 CLEANFILES += gras/datadesc/datadesc_usage.out
43 EXTRA_DIST += \
44   gras/datadesc/datadesc.little32_4 \
45   gras/datadesc/datadesc.little64\
46   gras/datadesc/datadesc.big32_8 gras/datadesc/datadesc.big32_8_4 gras/datadesc/datadesc.big32_2 \
47   gras/datadesc/mk_datadesc_structs.pl
48 TESTS += \
49   gras/datadesc/datadesc_mem.tesh          \
50   gras/datadesc/datadesc_rw.tesh           \
51   gras/datadesc/datadesc_r_little32_4.tesh \
52   gras/datadesc/datadesc_r_little64.tesh   \
53   \
54   gras/datadesc/datadesc_r_big32_8.tesh      \
55   gras/datadesc/datadesc_r_big32_8_4.tesh  \
56   gras/datadesc/datadesc_r_big32_2.tesh
57 # Data sets still to regenerate:
58 XFAIL_TESTS+= \
59   gras/datadesc/datadesc_r_little32.tesh   \
60   gras/datadesc/datadesc_r_big32_8.tesh    \
61   gras/datadesc/datadesc_r_big32_8_4.tesh  \
62   gras/datadesc/datadesc_r_big32_2.tesh
63
64 noinst_PROGRAMS += gras/datadesc/datadesc_usage   
65 gras_datadesc_datadesc_usage_SOURCES=   gras/datadesc/datadesc_usage.c gras/datadesc/datadesc_structs.c
66 gras_datadesc_datadesc_usage_LDADD=     $(LDADD_RL)
67
68 gras/datadesc/datadesc_structs.c: gras/datadesc/mk_datadesc_structs.pl
69         perl $(top_srcdir)/teshsuite/gras/datadesc/mk_datadesc_structs.pl > $@
70
71   ## Ensures the gras_msg_handle semantic ##
72   ##########################################
73 EXTRA_DIST += gras/msg_handle/msg_handle.xml
74 noinst_PROGRAMS+=\
75   gras/msg_handle/msg_handle_client \
76   gras/msg_handle/msg_handle_server \
77   gras/msg_handle/msg_handle_simulator
78
79 gras_msg_handle_msg_handle_simulator_SOURCES= gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_simulator.c
80 gras_msg_handle_msg_handle_client_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_client.c
81 gras_msg_handle_msg_handle_server_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_server.c
82
83 gras_msg_handle_msg_handle_simulator_LDADD=   $(LDADD_SG)
84 gras_msg_handle_msg_handle_client_LDADD=      $(LDADD_RL)
85 gras_msg_handle_msg_handle_server_LDADD=      $(LDADD_RL)
86
87 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@
88         mkdir -p gras/msg_handle; \
89           cd gras/msg_handle;\
90           ../../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ msg_handle ../../$(top_srcdir)/teshsuite/gras/msg_handle/msg_handle.xml
91
92
93 if GRAS_ARCH_32_BITS
94   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_32
95 else
96   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_64
97 endif
98
99
100 ###################################
101 # network model test via SimDag API
102 ###################################
103
104 # misc tests
105
106 noinst_PROGRAMS += simdag/network/test_reinit_costs
107 EXTRA_DIST      += simdag/network/platform_2p_1sl.xml
108 simdag_network_test_reinit_costs_SOURCES = simdag/network/test_reinit_costs.c
109 simdag_network_test_reinit_costs_LDADD   =   $(LDADD_SG)
110 TESTS += \
111   simdag/network/test_reinit_costs.tesh
112
113 # from L.C. Canon
114 noinst_PROGRAMS += simdag/basic0 \
115                    simdag/basic1 \
116                    simdag/basic2 \
117                    simdag/basic3 \
118                    simdag/basic4 \
119                    simdag/basic5
120
121 EXTRA_DIST      += simdag/basic_platform.xml
122
123 simdag_basic0_SOURCES = simdag/basic0.c
124 simdag_basic0_LDADD = $(LDADD_SG)
125 simdag_basic1_SOURCES = simdag/basic1.c
126 simdag_basic1_LDADD = $(LDADD_SG)
127 simdag_basic2_SOURCES = simdag/basic2.c
128 simdag_basic2_LDADD = $(LDADD_SG)
129 simdag_basic3_SOURCES = simdag/basic3.c
130 simdag_basic3_LDADD = $(LDADD_SG)
131 simdag_basic4_SOURCES = simdag/basic4.c
132 simdag_basic4_LDADD = $(LDADD_SG)
133 simdag_basic5_SOURCES = simdag/basic5.c
134 simdag_basic5_LDADD = $(LDADD_SG)
135
136 TESTS += \
137   simdag/basic0.tesh  \
138   simdag/basic1.tesh \
139   simdag/basic2.tesh \
140   simdag/basic3.tesh \
141   simdag/basic4.tesh \
142   simdag/basic5.tesh
143
144 # p2p
145
146 noinst_PROGRAMS += simdag/network/p2p/test_latency1 \
147                    simdag/network/p2p/test_latency2 \
148                    simdag/network/p2p/test_latency3 \
149                    simdag/network/p2p/test_latency_bound
150
151 EXTRA_DIST      += simdag/network/p2p/platform_2p_1sl.xml \
152                    simdag/network/p2p/platform_2p_1fl.xml \
153                    simdag/network/p2p/platform_2p_1switch.xml \
154                    simdag/network/p2p/platform_2p_1bb.xml
155
156 simdag_network_p2p_test_latency1_SOURCES = simdag/network/p2p/test_latency1.c
157 simdag_network_p2p_test_latency1_LDADD   = $(LDADD_SG)
158 simdag_network_p2p_test_latency2_SOURCES = simdag/network/p2p/test_latency2.c
159 simdag_network_p2p_test_latency2_LDADD   = $(LDADD_SG)
160 simdag_network_p2p_test_latency3_SOURCES = simdag/network/p2p/test_latency3.c
161 simdag_network_p2p_test_latency3_LDADD   = $(LDADD_SG)
162 simdag_network_p2p_test_latency_bound_SOURCES = simdag/network/p2p/test_latency_bound.c
163 simdag_network_p2p_test_latency_bound_LDADD   = $(LDADD_SG)
164
165 TESTS += \
166   simdag/network/p2p/test_latency1.tesh \
167   simdag/network/p2p/test_latency2.tesh \
168   simdag/network/p2p/test_latency3.tesh \
169   simdag/network/p2p/test_latency_bound.tesh
170
171 # m x n tests
172
173 noinst_PROGRAMS += simdag/network/mxn/test_intra_all2all \
174                    simdag/network/mxn/test_intra_independent_comm \
175                    simdag/network/mxn/test_intra_scatter
176
177 EXTRA_DIST      += simdag/network/mxn/platform_4p_1switch.xml 
178
179 simdag_network_mxn_test_intra_all2all_SOURCES = simdag/network/mxn/test_intra_all2all.c
180 simdag_network_mxn_test_intra_all2all_LDADD   = $(LDADD_SG)
181 simdag_network_mxn_test_intra_independent_comm_SOURCES = simdag/network/mxn/test_intra_independent_comm.c
182 simdag_network_mxn_test_intra_independent_comm_LDADD   = $(LDADD_SG)
183 simdag_network_mxn_test_intra_scatter_SOURCES = simdag/network/mxn/test_intra_scatter.c
184 simdag_network_mxn_test_intra_scatter_LDADD   = $(LDADD_SG)
185
186 TESTS += \
187   simdag/network/mxn/test_intra_all2all.tesh \
188   simdag/network/mxn/test_intra_independent_comm.tesh \
189   simdag/network/mxn/test_intra_scatter.tesh 
190
191 # testing parallel tasks
192
193 noinst_PROGRAMS += simdag/partask/test_comp_only_seq \
194                    simdag/partask/test_comp_only_par 
195
196 EXTRA_DIST      += simdag/partask/platform_2p_1sl_hetero.xml \
197                    simdag/partask/platform_2p_1sl.xml
198
199 simdag_partask_test_comp_only_seq_SOURCES = simdag/partask/test_comp_only_seq.c
200 simdag_partask_test_comp_only_seq_LDADD   = $(LDADD_SG)
201 simdag_partask_test_comp_only_par_SOURCES = simdag/partask/test_comp_only_par.c
202 simdag_partask_test_comp_only_par_LDADD   = $(LDADD_SG)
203
204 TESTS += \
205   simdag/partask/test_comp_only_seq.tesh \
206   simdag/partask/test_comp_only_par.tesh
207
208 include $(top_srcdir)/acmacro/dist-files.mk