- missing cli<->serv messages
[oweals/gnunet.git] / src / testbed / Makefile.am
1 AM_CPPFLAGS = -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 libexecdir= $(pkglibdir)/libexec/
13
14 pkgcfgdir= $(pkgdatadir)/config.d/
15
16 pkgcfg_DATA = \
17   testbed.conf
18
19 if HAVE_SQLITE
20   underlay_daemon = gnunet-daemon-testbed-underlay
21 endif
22
23 libexec_PROGRAMS = \
24   gnunet-service-testbed \
25   gnunet-helper-testbed \
26   gnunet-service-testbed-logger \
27   gnunet-daemon-testbed-blacklist \
28   $(underlay_daemon)
29
30 bin_PROGRAMS = \
31   gnunet-testbed-profiler
32
33 gnunet_service_testbed_SOURCES = \
34   gnunet-service-testbed.c gnunet-service-testbed.h \
35   gnunet-service-testbed_links.c gnunet-service-testbed_links.h \
36   gnunet-service-testbed_peers.c \
37   gnunet-service-testbed_cache.c \
38   gnunet-service-testbed_oc.c \
39   gnunet-service-testbed_cpustatus.c \
40   gnunet-service-testbed_meminfo.c gnunet-service-testbed_meminfo.h \
41   gnunet-service-testbed_barriers.c gnunet-service-testbed_barriers.h \
42   gnunet-service-testbed_connectionpool.c gnunet-service-testbed_connectionpool.h
43 gnunet_service_testbed_LDADD = $(XLIB) \
44  $(top_builddir)/src/util/libgnunetutil.la \
45  $(top_builddir)/src/core/libgnunetcore.la \
46  $(top_builddir)/src/hello/libgnunethello.la \
47  $(top_builddir)/src/transport/libgnunettransport.la \
48  $(top_builddir)/src/testing/libgnunettesting.la \
49  $(top_builddir)/src/testbed/libgnunettestbed.la \
50  $(top_builddir)/src/arm/libgnunetarm.la \
51  $(LTLIBINTL) $(Z_LIBS)
52 gnunet_service_testbed_DEPENDENCIES = \
53  libgnunettestbed.la
54
55 gnunet_service_testbed_logger_SOURCES = \
56   gnunet-service-testbed-logger.c
57 gnunet_service_testbed_logger_LDADD = \
58  $(top_builddir)/src/util/libgnunetutil.la
59 gnunet_service_testbed_logger_DEPENDENCIES = \
60  $(top_builddir)/src/util/libgnunetutil.la
61
62 gnunet_testbed_profiler_SOURCES = \
63   gnunet-testbed-profiler.c
64 gnunet_testbed_profiler_LDADD = $(XLIB) \
65  $(top_builddir)/src/util/libgnunetutil.la \
66  $(top_builddir)/src/testbed/libgnunettestbed.la
67 gnunet_testbed_profiler_DEPENDENCIES = \
68  $(top_builddir)/src/util/libgnunetutil.la \
69  libgnunettestbed.la
70
71 gnunet_helper_testbed_SOURCES = \
72   gnunet-helper-testbed.c
73 gnunet_helper_testbed_LDADD = $(XLIB) \
74  $(top_builddir)/src/util/libgnunetutil.la \
75  $(top_builddir)/src/testing/libgnunettesting.la \
76  libgnunettestbed.la \
77  $(LTLIBINTL) $(Z_LIBS)
78 gnunet_helper_testbed_DEPENDENCIES = \
79   gnunet-service-testbed.$(OBJEXT) \
80   libgnunettestbed.la
81
82 gnunet_daemon_testbed_blacklist_SOURCES = gnunet-daemon-testbed-blacklist.c
83 gnunet_daemon_testbed_blacklist_LDADD = $(XLIB) \
84  $(top_builddir)/src/transport/libgnunettransport.la \
85  $(top_builddir)/src/util/libgnunetutil.la \
86  $(LTLIBINTL)
87 gnunet_daemon_testbed_blacklist_DEPENDENCIES = \
88  $(top_builddir)/src/transport/libgnunettransport.la \
89  $(top_builddir)/src/util/libgnunetutil.la
90
91 gnunet_daemon_testbed_underlay_SOURCES = gnunet-daemon-testbed-underlay.c
92 gnunet_daemon_testbed_underlay_LDADD = $(XLIB) \
93  $(top_builddir)/src/transport/libgnunettransport.la \
94  $(top_builddir)/src/util/libgnunetutil.la \
95  $(LTLIBINTL) -lsqlite3
96 gnunet_daemon_testbed_underlay_DEPENDENCIES = \
97  $(top_builddir)/src/transport/libgnunettransport.la \
98  $(top_builddir)/src/util/libgnunetutil.la
99
100 lib_LTLIBRARIES = \
101   libgnunettestbed.la \
102   libgnunettestbedlogger.la
103
104 libgnunettestbed_la_SOURCES = \
105   testbed_api.c testbed_api.h testbed.h \
106   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
107   testbed_api_operations.c testbed_api_operations.h \
108   testbed_api_peers.c testbed_api_peers.h \
109   testbed_api_services.c \
110   testbed_api_statistics.c \
111   testbed_api_testbed.c \
112   testbed_api_test.c \
113   testbed_api_topology.c testbed_api_topology.h \
114   testbed_api_sd.c testbed_api_sd.h \
115   testbed_api_barriers.c testbed_api_barriers.h
116 libgnunettestbed_la_LIBADD = $(XLIB) \
117  $(top_builddir)/src/core/libgnunetcore.la \
118  $(top_builddir)/src/statistics/libgnunetstatistics.la \
119  $(top_builddir)/src/transport/libgnunettransport.la \
120  $(top_builddir)/src/hello/libgnunethello.la \
121  -lm \
122  $(top_builddir)/src/util/libgnunetutil.la \
123  $(top_builddir)/src/testing/libgnunettesting.la \
124  $(LTLIBINTL)
125 libgnunettestbed_la_LDFLAGS = \
126  $(GN_LIB_LDFLAGS) \
127  -version-info 0:0:0
128
129 libgnunettestbedlogger_la_SOURCES = \
130   testbed_logger_api.c
131 libgnunettestbedlogger_la_LIBADD = $(XLIB) \
132  $(top_builddir)/src/util/libgnunetutil.la \
133  $(LTLIBINTL)
134 libgnunettestbedlogger_la_LDFLAGS = \
135  $(GN_LIB_LDFLAGS) \
136  -version-info 0:0:0
137
138 check_PROGRAMS = \
139   test_testbed_api_hosts \
140   test_testbed_logger_api \
141   test_gnunet_helper_testbed \
142   test_testbed_api_controllerlink \
143   test_testbed_api_2peers_1controller \
144   test_testbed_api_3peers_3controllers \
145   test_testbed_api \
146   test_testbed_api_sd \
147   test_testbed_api_operations \
148   test_testbed_api_testbed_run \
149   test_testbed_api_test \
150   test_testbed_api_test_timeout \
151   test_testbed_api_peer_reconfiguration \
152   test_testbed_api_peers_manage_services \
153   test_testbed_api_topology \
154   test_testbed_api_topology_clique \
155   test_testbed_api_testbed_run_topologyrandom \
156   test_testbed_api_testbed_run_topologyline \
157   test_testbed_api_testbed_run_topologyclique \
158   test_testbed_api_testbed_run_topologyring \
159   test_testbed_api_testbed_run_topologysmallworldring \
160   test_testbed_api_testbed_run_topology2dtorus \
161   test_testbed_api_testbed_run_topologysmallworld \
162   test_testbed_api_testbed_run_topologyfromfile \
163   test_testbed_api_testbed_run_topologyscalefree \
164   test_testbed_api_testbed_run_waitforever \
165   test_testbed_api_statistics \
166   gnunet-service-test-barriers \
167   test_testbed_api_barriers
168
169 if ENABLE_TEST_RUN
170  TESTS = \
171   test_testbed_api \
172   test_testbed_logger_api \
173   test_testbed_api_sd \
174   test_testbed_api_operations \
175   test_testbed_api_hosts \
176   test_gnunet_helper_testbed \
177   test_testbed_api_2peers_1controller \
178   test_testbed_api_controllerlink \
179   test_testbed_api_3peers_3controllers \
180   test_testbed_api_testbed_run \
181   test_testbed_api_test \
182   test_testbed_api_test_timeout \
183   test_testbed_api_statistics \
184   test_testbed_api_peer_reconfiguration \
185   test_testbed_api_peers_manage_services \
186   test_testbed_api_topology \
187   test_testbed_api_topology_clique \
188   test_testbed_api_testbed_run_topologyrandom \
189   test_testbed_api_testbed_run_topologyline \
190   test_testbed_api_testbed_run_topologyclique \
191   test_testbed_api_testbed_run_topologyring \
192   test_testbed_api_testbed_run_topology2dtorus \
193   test_testbed_api_testbed_run_topologysmallworld \
194   test_testbed_api_testbed_run_topologysmallworldring \
195   test_testbed_api_testbed_run_topologyfromfile \
196   test_testbed_api_testbed_run_topologyscalefree \
197   test_testbed_api_barriers
198 endif
199
200 test_testbed_api_hosts_SOURCES = \
201  test_testbed_api_hosts.c
202 test_testbed_api_hosts_LDADD = \
203  $(top_builddir)/src/util/libgnunetutil.la \
204  libgnunettestbed.la
205
206 test_testbed_api_SOURCES = \
207  test_testbed_api.c
208 test_testbed_api_LDADD = \
209  $(top_builddir)/src/util/libgnunetutil.la \
210  $(top_builddir)/src/testing/libgnunettesting.la \
211  $(top_builddir)/src/arm/libgnunetarm.la \
212  libgnunettestbed.la
213
214 test_testbed_logger_api_SOURCES = \
215  test_testbed_logger_api.c
216 test_testbed_logger_api_LDADD = \
217  $(top_builddir)/src/util/libgnunetutil.la \
218  $(top_builddir)/src/testing/libgnunettesting.la \
219  libgnunettestbedlogger.la
220
221 test_testbed_api_sd_SOURCES = \
222  test_testbed_api_sd.c
223 test_testbed_api_sd_LDADD = \
224  $(top_builddir)/src/util/libgnunetutil.la \
225  libgnunettestbed.la
226
227 test_testbed_api_2peers_1controller_SOURCES = \
228  test_testbed_api_2peers_1controller.c
229 test_testbed_api_2peers_1controller_LDADD = \
230  $(top_builddir)/src/util/libgnunetutil.la \
231  $(top_builddir)/src/testing/libgnunettesting.la \
232  libgnunettestbed.la
233
234 test_testbed_api_3peers_3controllers_SOURCES = \
235  test_testbed_api_3peers_3controllers.c
236 test_testbed_api_3peers_3controllers_LDADD = \
237  $(top_builddir)/src/util/libgnunetutil.la \
238  $(top_builddir)/src/testing/libgnunettesting.la \
239  libgnunettestbed.la
240
241 test_testbed_api_operations_SOURCES = \
242  test_testbed_api_operations.c
243 test_testbed_api_operations_LDADD = \
244  $(top_builddir)/src/util/libgnunetutil.la \
245  libgnunettestbed.la
246
247 test_testbed_api_controllerlink_SOURCES = \
248  test_testbed_api_controllerlink.c
249 test_testbed_api_controllerlink_LDADD = \
250  $(top_builddir)/src/util/libgnunetutil.la \
251  libgnunettestbed.la
252
253 test_testbed_api_testbed_run_SOURCES = \
254  test_testbed_api_testbed_run.c
255 test_testbed_api_testbed_run_LDADD = \
256  $(top_builddir)/src/util/libgnunetutil.la \
257  libgnunettestbed.la
258
259 test_testbed_api_test_SOURCES = \
260  test_testbed_api_test.c
261 test_testbed_api_test_LDADD = \
262  $(top_builddir)/src/util/libgnunetutil.la \
263  libgnunettestbed.la
264
265 test_testbed_api_test_timeout_SOURCES = \
266  test_testbed_api_test_timeout.c
267 test_testbed_api_test_timeout_LDADD = \
268  $(top_builddir)/src/util/libgnunetutil.la \
269  libgnunettestbed.la
270
271 test_testbed_api_topology_SOURCES = \
272  test_testbed_api_topology.c
273 test_testbed_api_topology_LDADD = \
274  $(top_builddir)/src/util/libgnunetutil.la \
275  libgnunettestbed.la
276
277 test_testbed_api_topology_clique_SOURCES = \
278  test_testbed_api_topology_clique.c
279 test_testbed_api_topology_clique_LDADD = \
280  $(top_builddir)/src/util/libgnunetutil.la \
281  libgnunettestbed.la
282
283 test_gnunet_helper_testbed_SOURCES = \
284  test_gnunet_helper_testbed.c
285 test_gnunet_helper_testbed_LDADD = \
286  $(top_builddir)/src/util/libgnunetutil.la \
287  libgnunettestbed.la \
288  $(Z_LIBS)
289
290 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
291  test_testbed_api_testbed_run.c
292 test_testbed_api_testbed_run_topologyrandom_LDADD = \
293  $(top_builddir)/src/util/libgnunetutil.la \
294  libgnunettestbed.la
295
296 test_testbed_api_testbed_run_topologyline_SOURCES = \
297  test_testbed_api_testbed_run.c
298 test_testbed_api_testbed_run_topologyline_LDADD = \
299  $(top_builddir)/src/util/libgnunetutil.la \
300  libgnunettestbed.la
301
302 test_testbed_api_testbed_run_topologyclique_SOURCES = \
303  test_testbed_api_testbed_run.c
304 test_testbed_api_testbed_run_topologyclique_LDADD = \
305  $(top_builddir)/src/util/libgnunetutil.la \
306  libgnunettestbed.la
307
308 test_testbed_api_testbed_run_topologyring_SOURCES = \
309  test_testbed_api_testbed_run.c
310 test_testbed_api_testbed_run_topologyring_LDADD = \
311  $(top_builddir)/src/util/libgnunetutil.la \
312  libgnunettestbed.la
313
314 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
315  test_testbed_api_testbed_run.c
316 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
317  $(top_builddir)/src/util/libgnunetutil.la \
318  libgnunettestbed.la
319
320 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
321  test_testbed_api_testbed_run.c
322 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
323  $(top_builddir)/src/util/libgnunetutil.la \
324  libgnunettestbed.la
325
326 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
327  test_testbed_api_testbed_run.c
328 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
329  $(top_builddir)/src/util/libgnunetutil.la \
330  libgnunettestbed.la
331
332 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
333  test_testbed_api_testbed_run.c
334 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
335  $(top_builddir)/src/util/libgnunetutil.la \
336  libgnunettestbed.la
337
338 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
339  test_testbed_api_testbed_run.c
340 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
341  $(top_builddir)/src/util/libgnunetutil.la \
342  libgnunettestbed.la
343
344 test_testbed_api_testbed_run_waitforever_SOURCES = \
345  test_testbed_api_testbed_run.c
346 test_testbed_api_testbed_run_waitforever_LDADD = \
347  $(top_builddir)/src/util/libgnunetutil.la \
348  libgnunettestbed.la
349
350 test_testbed_api_statistics_SOURCES = \
351  test_testbed_api_statistics.c
352 test_testbed_api_statistics_LDADD = \
353  $(top_builddir)/src/util/libgnunetutil.la \
354  libgnunettestbed.la
355
356 test_testbed_api_peers_manage_services_SOURCES = \
357  test_testbed_api_peers_manage_services.c
358 test_testbed_api_peers_manage_services_LDADD = \
359  $(top_builddir)/src/util/libgnunetutil.la \
360  libgnunettestbed.la
361
362 test_testbed_api_peer_reconfiguration_SOURCES = \
363  test_testbed_api_peer_reconfiguration.c
364 test_testbed_api_peer_reconfiguration_LDADD = \
365  $(top_builddir)/src/util/libgnunetutil.la \
366  libgnunettestbed.la
367
368 test_testbed_api_barriers_SOURCES = \
369  test_testbed_api_barriers.c \
370  test_testbed_api_barriers.h
371 test_testbed_api_barriers_LDADD = \
372  $(top_builddir)/src/util/libgnunetutil.la \
373  libgnunettestbed.la
374 test_testbed_api_barriers_DEPENDENCIES = \
375  gnunet-service-test-barriers
376
377 gnunet_service_test_barriers_SOURCES = \
378   gnunet-service-test-barriers.c \
379   test_testbed_api_barriers.h
380 gnunet_service_test_barriers_LDADD = \
381  $(top_builddir)/src/util/libgnunetutil.la \
382  libgnunettestbed.la
383
384 EXTRA_DIST = \
385   test_testbed_api.conf \
386   test_testbed_api_test_timeout.conf \
387   test_testbed_api_template.conf \
388   test_testbed_logger_api.conf \
389   test_testbed_api_testbed_run_topologyring.conf \
390   test_testbed_api_testbed_run_topologyclique.conf \
391   test_testbed_api_testbed_run_topologyline.conf \
392   test_testbed_api_testbed_run_topologyrandom.conf \
393   test_testbed_api_testbed_run_topologysmallworldring.conf \
394   test_testbed_api_testbed_run_topology2dtorus.conf \
395   test_testbed_api_testbed_run_topologysmallworld.conf \
396   test_testbed_api_testbed_run_topologyfromfile.conf \
397   test_testbed_api_testbed_run_topologyscalefree.conf \
398   test_testbed_api_barriers.conf.in \
399   overlay_topology.txt \
400   sample_hosts.txt \
401   sample.job