Logo AND Algorithmique Numérique Distribuée

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