- test harder by checking the data file size
[oweals/gnunet.git] / src / testbed / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 if ENABLE_LL
13   ll_binaries = \
14     gnunet-testbed-mpi-spawn
15 endif
16
17 libexecdir= $(pkglibdir)/libexec/
18
19 pkgcfgdir= $(pkgdatadir)/config.d/
20
21 pkgcfg_DATA = \
22   testbed.conf
23
24 libexec_PROGRAMS = \
25   gnunet-service-testbed \
26   gnunet-helper-testbed \
27   gnunet-service-testbed-logger
28
29 bin_PROGRAMS = \
30   $(ll_binaries) \
31   gnunet-testbed-profiler
32
33 gnunet_service_testbed_SOURCES = \
34   gnunet-service-testbed.h \
35   gnunet-service-testbed.c \
36   gnunet-service-testbed_links.c \
37   gnunet-service-testbed_peers.c \
38   gnunet-service-testbed_cache.c \
39   gnunet-service-testbed_oc.c \
40   gnunet-service-testbed_cpustatus.c 
41 gnunet_service_testbed_LDADD = $(XLIB) \
42  $(top_builddir)/src/util/libgnunetutil.la \
43  $(top_builddir)/src/core/libgnunetcore.la \
44  $(top_builddir)/src/hello/libgnunethello.la \
45  $(top_builddir)/src/transport/libgnunettransport.la \
46  $(top_builddir)/src/testing/libgnunettesting.la \
47  $(top_builddir)/src/testbed/libgnunettestbed.la \
48  $(top_builddir)/src/arm/libgnunetarm.la \
49  $(LTLIBINTL) -lz
50 gnunet_service_testbed_DEPENDENCIES = \
51  libgnunettestbed.la
52
53 gnunet_service_testbed_logger_SOURCES = \
54   gnunet-service-testbed-logger.c
55 gnunet_service_testbed_logger_LDADD = \
56  $(top_builddir)/src/util/libgnunetutil.la
57
58 gnunet_testbed_profiler_SOURCES = \
59   gnunet-testbed-profiler.c
60 gnunet_testbed_profiler_LDADD = $(XLIB) \
61  $(top_builddir)/src/util/libgnunetutil.la \
62  $(top_builddir)/src/testbed/libgnunettestbed.la
63 gnunet_testbed_profiler_DEPENDENCIES = \
64  libgnunettestbed.la
65
66 gnunet_helper_testbed_SOURCES = \
67   gnunet-helper-testbed.c
68 gnunet_helper_testbed_LDADD = $(XLIB) \
69  $(top_builddir)/src/util/libgnunetutil.la \
70  $(top_builddir)/src/testing/libgnunettesting.la \
71  libgnunettestbed.la \
72  $(LTLIBINTL) -lz
73 gnunet_helper_testbed_DEPENDENCIES = \
74   gnunet-service-testbed.$(OBJEXT) \
75   libgnunettestbed.la
76
77 gnunet_testbed_mpi_spawn_SOURCES = gnunet_testbed_mpi_spawn.c
78 gnunet_testbed_mpi_spawn_LDADD = $(XLIB) \
79  $(top_builddir)/src/util/libgnunetutil.la \
80  $(top_builddir)/src/testbed/libgnunettestbed.la
81 gnunet_testbed_mpi_spawn_DEPENDENCIES = \
82  $(top_builddir)/src/util/libgnunetutil.la \
83  libgnunettestbed.la
84
85 lib_LTLIBRARIES = \
86   libgnunettestbed.la \
87   libgnunettestbedlogger.la
88
89 libgnunettestbed_la_SOURCES = \
90   testbed_api.c testbed_api.h testbed.h \
91   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
92   testbed_api_operations.c testbed_api_operations.h \
93   testbed_api_peers.c testbed_api_peers.h \
94   testbed_api_services.c \
95   testbed_api_statistics.c \
96   testbed_api_testbed.c \
97   testbed_api_test.c \
98   testbed_api_topology.c testbed_api_topology.h \
99   testbed_api_sd.c testbed_api_sd.h
100 libgnunettestbed_la_LIBADD = $(XLIB) \
101  $(top_builddir)/src/core/libgnunetcore.la \
102  $(top_builddir)/src/statistics/libgnunetstatistics.la \
103  $(top_builddir)/src/transport/libgnunettransport.la \
104  $(top_builddir)/src/hello/libgnunethello.la \
105  -lm \
106  $(top_builddir)/src/util/libgnunetutil.la \
107  $(top_builddir)/src/testing/libgnunettesting.la \
108  $(LTLIBINTL)
109 libgnunettestbed_la_LDFLAGS = \
110  $(GN_LIB_LDFLAGS) \
111  -version-info 0:0:0
112
113 libgnunettestbedlogger_la_SOURCES = \
114   testbed_logger_api.c
115 libgnunettestbedlogger_la_LIBADD = $(XLIB) \
116  $(top_builddir)/src/util/libgnunetutil.la \
117  $(LTLIBINTL)
118 libgnunettestbedlogger_la_LDFLAGS = \
119  $(GN_LIB_LDFLAGS) \
120  -version-info 0:0:0
121
122 check_PROGRAMS = \
123   test_testbed_api_hosts \
124   test_testbed_logger_api \
125   test_gnunet_helper_testbed \
126   test_testbed_api_controllerlink \
127   test_testbed_api_2peers_1controller \
128   test_testbed_api_3peers_3controllers \
129   test_testbed_api \
130   test_testbed_api_sd \
131   test_testbed_api_operations \
132   test_testbed_api_testbed_run \
133   test_testbed_api_test \
134   test_testbed_api_test_timeout \
135   test_testbed_api_peers_manage_services \
136   test_testbed_api_topology \
137   test_testbed_api_topology_clique \
138   test_testbed_api_testbed_run_topologyrandom \
139   test_testbed_api_testbed_run_topologyline \
140   test_testbed_api_testbed_run_topologyclique \
141   test_testbed_api_testbed_run_topologyring \
142   test_testbed_api_testbed_run_topologysmallworldring \
143   test_testbed_api_testbed_run_topology2dtorus \
144   test_testbed_api_testbed_run_topologysmallworld \
145   test_testbed_api_testbed_run_topologyfromfile \
146   test_testbed_api_testbed_run_topologyscalefree \
147   test_testbed_api_statistics
148
149 if ENABLE_TEST_RUN
150  TESTS = \
151   test_testbed_api \
152   test_testbed_logger_api \
153   test_testbed_api_sd \
154   test_testbed_api_operations \
155   test_testbed_api_hosts \
156   test_gnunet_helper_testbed \
157   test_testbed_api_2peers_1controller \
158   test_testbed_api_controllerlink \
159   test_testbed_api_3peers_3controllers \
160   test_testbed_api_testbed_run \
161   test_testbed_api_test \
162   test_testbed_api_test_timeout \
163   test_testbed_api_statistics \
164   test_testbed_api_peers_manage_services \
165   test_testbed_api_topology \
166   test_testbed_api_topology_clique \
167   test_testbed_api_testbed_run_topologyrandom \
168   test_testbed_api_testbed_run_topologyline \
169   test_testbed_api_testbed_run_topologyclique \
170   test_testbed_api_testbed_run_topologyring \
171   test_testbed_api_testbed_run_topology2dtorus \
172   test_testbed_api_testbed_run_topologysmallworld \
173   test_testbed_api_testbed_run_topologysmallworldring \
174   test_testbed_api_testbed_run_topologyfromfile \
175   test_testbed_api_testbed_run_topologyscalefree
176 endif
177
178 test_testbed_api_hosts_SOURCES = \
179  test_testbed_api_hosts.c
180 test_testbed_api_hosts_LDADD = \
181  $(top_builddir)/src/util/libgnunetutil.la \
182  libgnunettestbed.la
183
184 test_testbed_api_SOURCES = \
185  test_testbed_api.c
186 test_testbed_api_LDADD = \
187  $(top_builddir)/src/util/libgnunetutil.la \
188  $(top_builddir)/src/testing/libgnunettesting.la \
189  $(top_builddir)/src/dht/libgnunetdht.la \
190  libgnunettestbed.la
191
192 test_testbed_logger_api_SOURCES = \
193  test_testbed_logger_api.c
194 test_testbed_logger_api_LDADD = \
195  $(top_builddir)/src/util/libgnunetutil.la \
196  $(top_builddir)/src/testing/libgnunettesting.la \
197  libgnunettestbedlogger.la
198
199 test_testbed_api_sd_SOURCES = \
200  test_testbed_api_sd.c
201 test_testbed_api_sd_LDADD = \
202  $(top_builddir)/src/util/libgnunetutil.la \
203  libgnunettestbed.la
204
205 test_testbed_api_2peers_1controller_SOURCES = \
206  test_testbed_api_2peers_1controller.c
207 test_testbed_api_2peers_1controller_LDADD = \
208  $(top_builddir)/src/util/libgnunetutil.la \
209  $(top_builddir)/src/testing/libgnunettesting.la \
210  libgnunettestbed.la
211
212 test_testbed_api_3peers_3controllers_SOURCES = \
213  test_testbed_api_3peers_3controllers.c
214 test_testbed_api_3peers_3controllers_LDADD = \
215  $(top_builddir)/src/util/libgnunetutil.la \
216  $(top_builddir)/src/testing/libgnunettesting.la \
217  libgnunettestbed.la
218
219 test_testbed_api_operations_SOURCES = \
220  test_testbed_api_operations.c
221 test_testbed_api_operations_LDADD = \
222  $(top_builddir)/src/util/libgnunetutil.la \
223  libgnunettestbed.la
224
225 test_testbed_api_controllerlink_SOURCES = \
226  test_testbed_api_controllerlink.c
227 test_testbed_api_controllerlink_LDADD = \
228  $(top_builddir)/src/util/libgnunetutil.la \
229  libgnunettestbed.la
230
231 test_testbed_api_testbed_run_SOURCES = \
232  test_testbed_api_testbed_run.c
233 test_testbed_api_testbed_run_LDADD = \
234  $(top_builddir)/src/util/libgnunetutil.la \
235  libgnunettestbed.la
236
237 test_testbed_api_test_SOURCES = \
238  test_testbed_api_test.c
239 test_testbed_api_test_LDADD = \
240  $(top_builddir)/src/util/libgnunetutil.la \
241  libgnunettestbed.la
242
243 test_testbed_api_test_timeout_SOURCES = \
244  test_testbed_api_test_timeout.c
245 test_testbed_api_test_timeout_LDADD = \
246  $(top_builddir)/src/util/libgnunetutil.la \
247  libgnunettestbed.la
248
249 test_testbed_api_topology_SOURCES = \
250  test_testbed_api_topology.c
251 test_testbed_api_topology_LDADD = \
252  $(top_builddir)/src/util/libgnunetutil.la \
253  libgnunettestbed.la
254
255 test_testbed_api_topology_clique_SOURCES = \
256  test_testbed_api_topology_clique.c
257 test_testbed_api_topology_clique_LDADD = \
258  $(top_builddir)/src/util/libgnunetutil.la \
259  libgnunettestbed.la
260
261 test_gnunet_helper_testbed_SOURCES = \
262  test_gnunet_helper_testbed.c
263 test_gnunet_helper_testbed_LDADD = \
264  $(top_builddir)/src/util/libgnunetutil.la \
265  libgnunettestbed.la \
266  -lz
267
268 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
269  test_testbed_api_testbed_run.c
270 test_testbed_api_testbed_run_topologyrandom_LDADD = \
271  $(top_builddir)/src/util/libgnunetutil.la \
272  libgnunettestbed.la
273
274 test_testbed_api_testbed_run_topologyline_SOURCES = \
275  test_testbed_api_testbed_run.c
276 test_testbed_api_testbed_run_topologyline_LDADD = \
277  $(top_builddir)/src/util/libgnunetutil.la \
278  libgnunettestbed.la
279
280 test_testbed_api_testbed_run_topologyclique_SOURCES = \
281  test_testbed_api_testbed_run.c
282 test_testbed_api_testbed_run_topologyclique_LDADD = \
283  $(top_builddir)/src/util/libgnunetutil.la \
284  libgnunettestbed.la
285
286 test_testbed_api_testbed_run_topologyring_SOURCES = \
287  test_testbed_api_testbed_run.c
288 test_testbed_api_testbed_run_topologyring_LDADD = \
289  $(top_builddir)/src/util/libgnunetutil.la \
290  libgnunettestbed.la
291
292 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
293  test_testbed_api_testbed_run.c
294 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
295  $(top_builddir)/src/util/libgnunetutil.la \
296  libgnunettestbed.la
297
298 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
299  test_testbed_api_testbed_run.c
300 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
301  $(top_builddir)/src/util/libgnunetutil.la \
302  libgnunettestbed.la
303
304 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
305  test_testbed_api_testbed_run.c
306 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
307  $(top_builddir)/src/util/libgnunetutil.la \
308  libgnunettestbed.la
309
310 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
311  test_testbed_api_testbed_run.c
312 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
313  $(top_builddir)/src/util/libgnunetutil.la \
314  libgnunettestbed.la
315
316 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
317  test_testbed_api_testbed_run.c
318 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
319  $(top_builddir)/src/util/libgnunetutil.la \
320  libgnunettestbed.la
321
322 test_testbed_api_statistics_SOURCES = \
323  test_testbed_api_statistics.c
324 test_testbed_api_statistics_LDADD = \
325  $(top_builddir)/src/util/libgnunetutil.la \
326  libgnunettestbed.la
327
328 test_testbed_api_peers_manage_services_SOURCES = \
329  test_testbed_api_peers_manage_services.c
330 test_testbed_api_peers_manage_services_LDADD = \
331  $(top_builddir)/src/util/libgnunetutil.la \
332  libgnunettestbed.la
333
334 EXTRA_DIST = \
335   test_testbed_api.conf \
336   test_testbed_api_test_timeout.conf \
337   test_testbed_api_testbed_run_topologyring.conf \
338   test_testbed_api_testbed_run_topologyclique.conf \
339   test_testbed_api_testbed_run_topologyline.conf \
340   test_testbed_api_testbed_run_topologyrandom.conf \
341   test_testbed_api_testbed_run_topologysmallworldring.conf \
342   test_testbed_api_testbed_run_topology2dtorus.conf \
343   test_testbed_api_testbed_run_topologysmallworld.conf \
344   test_testbed_api_testbed_run_topologyfromfile.conf \
345   test_testbed_api_testbed_run_topologyscalefree.conf \
346   overlay_topology.txt \
347   sample_hosts.txt \
348   sample.job