- distribute peers equally among island nodes on SuperMUC
[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_peer_reconfiguration \
136   test_testbed_api_peers_manage_services \
137   test_testbed_api_topology \
138   test_testbed_api_topology_clique \
139   test_testbed_api_testbed_run_topologyrandom \
140   test_testbed_api_testbed_run_topologyline \
141   test_testbed_api_testbed_run_topologyclique \
142   test_testbed_api_testbed_run_topologyring \
143   test_testbed_api_testbed_run_topologysmallworldring \
144   test_testbed_api_testbed_run_topology2dtorus \
145   test_testbed_api_testbed_run_topologysmallworld \
146   test_testbed_api_testbed_run_topologyfromfile \
147   test_testbed_api_testbed_run_topologyscalefree \
148   test_testbed_api_testbed_run_waitforever \
149   test_testbed_api_statistics
150
151 if ENABLE_TEST_RUN
152  TESTS = \
153   test_testbed_api \
154   test_testbed_logger_api \
155   test_testbed_api_sd \
156   test_testbed_api_operations \
157   test_testbed_api_hosts \
158   test_gnunet_helper_testbed \
159   test_testbed_api_2peers_1controller \
160   test_testbed_api_controllerlink \
161   test_testbed_api_3peers_3controllers \
162   test_testbed_api_testbed_run \
163   test_testbed_api_test \
164   test_testbed_api_test_timeout \
165   test_testbed_api_statistics \
166   test_testbed_api_peer_reconfiguration \
167   test_testbed_api_peers_manage_services \
168   test_testbed_api_topology \
169   test_testbed_api_topology_clique \
170   test_testbed_api_testbed_run_topologyrandom \
171   test_testbed_api_testbed_run_topologyline \
172   test_testbed_api_testbed_run_topologyclique \
173   test_testbed_api_testbed_run_topologyring \
174   test_testbed_api_testbed_run_topology2dtorus \
175   test_testbed_api_testbed_run_topologysmallworld \
176   test_testbed_api_testbed_run_topologysmallworldring \
177   test_testbed_api_testbed_run_topologyfromfile \
178   test_testbed_api_testbed_run_topologyscalefree
179 endif
180
181 test_testbed_api_hosts_SOURCES = \
182  test_testbed_api_hosts.c
183 test_testbed_api_hosts_LDADD = \
184  $(top_builddir)/src/util/libgnunetutil.la \
185  libgnunettestbed.la
186
187 test_testbed_api_SOURCES = \
188  test_testbed_api.c
189 test_testbed_api_LDADD = \
190  $(top_builddir)/src/util/libgnunetutil.la \
191  $(top_builddir)/src/testing/libgnunettesting.la \
192  $(top_builddir)/src/dht/libgnunetdht.la \
193  libgnunettestbed.la
194
195 test_testbed_logger_api_SOURCES = \
196  test_testbed_logger_api.c
197 test_testbed_logger_api_LDADD = \
198  $(top_builddir)/src/util/libgnunetutil.la \
199  $(top_builddir)/src/testing/libgnunettesting.la \
200  libgnunettestbedlogger.la
201
202 test_testbed_api_sd_SOURCES = \
203  test_testbed_api_sd.c
204 test_testbed_api_sd_LDADD = \
205  $(top_builddir)/src/util/libgnunetutil.la \
206  libgnunettestbed.la
207
208 test_testbed_api_2peers_1controller_SOURCES = \
209  test_testbed_api_2peers_1controller.c
210 test_testbed_api_2peers_1controller_LDADD = \
211  $(top_builddir)/src/util/libgnunetutil.la \
212  $(top_builddir)/src/testing/libgnunettesting.la \
213  libgnunettestbed.la
214
215 test_testbed_api_3peers_3controllers_SOURCES = \
216  test_testbed_api_3peers_3controllers.c
217 test_testbed_api_3peers_3controllers_LDADD = \
218  $(top_builddir)/src/util/libgnunetutil.la \
219  $(top_builddir)/src/testing/libgnunettesting.la \
220  libgnunettestbed.la
221
222 test_testbed_api_operations_SOURCES = \
223  test_testbed_api_operations.c
224 test_testbed_api_operations_LDADD = \
225  $(top_builddir)/src/util/libgnunetutil.la \
226  libgnunettestbed.la
227
228 test_testbed_api_controllerlink_SOURCES = \
229  test_testbed_api_controllerlink.c
230 test_testbed_api_controllerlink_LDADD = \
231  $(top_builddir)/src/util/libgnunetutil.la \
232  libgnunettestbed.la
233
234 test_testbed_api_testbed_run_SOURCES = \
235  test_testbed_api_testbed_run.c
236 test_testbed_api_testbed_run_LDADD = \
237  $(top_builddir)/src/util/libgnunetutil.la \
238  libgnunettestbed.la
239
240 test_testbed_api_test_SOURCES = \
241  test_testbed_api_test.c
242 test_testbed_api_test_LDADD = \
243  $(top_builddir)/src/util/libgnunetutil.la \
244  libgnunettestbed.la
245
246 test_testbed_api_test_timeout_SOURCES = \
247  test_testbed_api_test_timeout.c
248 test_testbed_api_test_timeout_LDADD = \
249  $(top_builddir)/src/util/libgnunetutil.la \
250  libgnunettestbed.la
251
252 test_testbed_api_topology_SOURCES = \
253  test_testbed_api_topology.c
254 test_testbed_api_topology_LDADD = \
255  $(top_builddir)/src/util/libgnunetutil.la \
256  libgnunettestbed.la
257
258 test_testbed_api_topology_clique_SOURCES = \
259  test_testbed_api_topology_clique.c
260 test_testbed_api_topology_clique_LDADD = \
261  $(top_builddir)/src/util/libgnunetutil.la \
262  libgnunettestbed.la
263
264 test_gnunet_helper_testbed_SOURCES = \
265  test_gnunet_helper_testbed.c
266 test_gnunet_helper_testbed_LDADD = \
267  $(top_builddir)/src/util/libgnunetutil.la \
268  libgnunettestbed.la \
269  -lz
270
271 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
272  test_testbed_api_testbed_run.c
273 test_testbed_api_testbed_run_topologyrandom_LDADD = \
274  $(top_builddir)/src/util/libgnunetutil.la \
275  libgnunettestbed.la
276
277 test_testbed_api_testbed_run_topologyline_SOURCES = \
278  test_testbed_api_testbed_run.c
279 test_testbed_api_testbed_run_topologyline_LDADD = \
280  $(top_builddir)/src/util/libgnunetutil.la \
281  libgnunettestbed.la
282
283 test_testbed_api_testbed_run_topologyclique_SOURCES = \
284  test_testbed_api_testbed_run.c
285 test_testbed_api_testbed_run_topologyclique_LDADD = \
286  $(top_builddir)/src/util/libgnunetutil.la \
287  libgnunettestbed.la
288
289 test_testbed_api_testbed_run_topologyring_SOURCES = \
290  test_testbed_api_testbed_run.c
291 test_testbed_api_testbed_run_topologyring_LDADD = \
292  $(top_builddir)/src/util/libgnunetutil.la \
293  libgnunettestbed.la
294
295 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
296  test_testbed_api_testbed_run.c
297 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
298  $(top_builddir)/src/util/libgnunetutil.la \
299  libgnunettestbed.la
300
301 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
302  test_testbed_api_testbed_run.c
303 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
304  $(top_builddir)/src/util/libgnunetutil.la \
305  libgnunettestbed.la
306
307 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
308  test_testbed_api_testbed_run.c
309 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
310  $(top_builddir)/src/util/libgnunetutil.la \
311  libgnunettestbed.la
312
313 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
314  test_testbed_api_testbed_run.c
315 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
316  $(top_builddir)/src/util/libgnunetutil.la \
317  libgnunettestbed.la
318
319 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
320  test_testbed_api_testbed_run.c
321 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
322  $(top_builddir)/src/util/libgnunetutil.la \
323  libgnunettestbed.la
324
325 test_testbed_api_testbed_run_waitforever_SOURCES = \
326  test_testbed_api_testbed_run.c
327 test_testbed_api_testbed_run_waitforever_LDADD = \
328  $(top_builddir)/src/util/libgnunetutil.la \
329  libgnunettestbed.la
330
331 test_testbed_api_statistics_SOURCES = \
332  test_testbed_api_statistics.c
333 test_testbed_api_statistics_LDADD = \
334  $(top_builddir)/src/util/libgnunetutil.la \
335  libgnunettestbed.la
336
337 test_testbed_api_peers_manage_services_SOURCES = \
338  test_testbed_api_peers_manage_services.c
339 test_testbed_api_peers_manage_services_LDADD = \
340  $(top_builddir)/src/util/libgnunetutil.la \
341  libgnunettestbed.la
342
343 test_testbed_api_peer_reconfiguration_SOURCES = \
344  test_testbed_api_peer_reconfiguration.c
345 test_testbed_api_peer_reconfiguration_LDADD = \
346  $(top_builddir)/src/util/libgnunetutil.la \
347  libgnunettestbed.la
348
349 EXTRA_DIST = \
350   test_testbed_api.conf \
351   test_testbed_api_test_timeout.conf \
352   test_testbed_api_testbed_run_topologyring.conf \
353   test_testbed_api_testbed_run_topologyclique.conf \
354   test_testbed_api_testbed_run_topologyline.conf \
355   test_testbed_api_testbed_run_topologyrandom.conf \
356   test_testbed_api_testbed_run_topologysmallworldring.conf \
357   test_testbed_api_testbed_run_topology2dtorus.conf \
358   test_testbed_api_testbed_run_topologysmallworld.conf \
359   test_testbed_api_testbed_run_topologyfromfile.conf \
360   test_testbed_api_testbed_run_topologyscalefree.conf \
361   overlay_topology.txt \
362   sample_hosts.txt \
363   sample.job