- logger service for aggregating stat data from testbed peers
[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
88 libgnunettestbed_la_SOURCES = \
89   testbed_api.c testbed_api.h testbed.h \
90   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
91   testbed_api_operations.c testbed_api_operations.h \
92   testbed_api_peers.c testbed_api_peers.h \
93   testbed_api_services.c \
94   testbed_api_statistics.c \
95   testbed_api_testbed.c \
96   testbed_api_test.c \
97   testbed_api_topology.c testbed_api_topology.h \
98   testbed_api_sd.c testbed_api_sd.h
99 libgnunettestbed_la_LIBADD = $(XLIB) \
100  $(top_builddir)/src/core/libgnunetcore.la \
101  $(top_builddir)/src/statistics/libgnunetstatistics.la \
102  $(top_builddir)/src/transport/libgnunettransport.la \
103  $(top_builddir)/src/hello/libgnunethello.la \
104  -lm \
105  $(top_builddir)/src/util/libgnunetutil.la \
106  $(top_builddir)/src/testing/libgnunettesting.la \
107  $(LTLIBINTL)
108 libgnunettestbed_la_LDFLAGS = \
109  $(GN_LIB_LDFLAGS) \
110  -version-info 0:0:0
111
112 check_PROGRAMS = \
113   test_testbed_api_hosts \
114   test_gnunet_helper_testbed \
115   test_testbed_api_controllerlink \
116   test_testbed_api_2peers_1controller \
117   test_testbed_api_3peers_3controllers \
118   test_testbed_api \
119   test_testbed_api_sd \
120   test_testbed_api_operations \
121   test_testbed_api_testbed_run \
122   test_testbed_api_test \
123   test_testbed_api_test_timeout \
124   test_testbed_api_peers_manage_services \
125   test_testbed_api_topology \
126   test_testbed_api_topology_clique \
127   test_testbed_api_testbed_run_topologyrandom \
128   test_testbed_api_testbed_run_topologyline \
129   test_testbed_api_testbed_run_topologyclique \
130   test_testbed_api_testbed_run_topologyring \
131   test_testbed_api_testbed_run_topologysmallworldring \
132   test_testbed_api_testbed_run_topology2dtorus \
133   test_testbed_api_testbed_run_topologysmallworld \
134   test_testbed_api_testbed_run_topologyfromfile \
135   test_testbed_api_testbed_run_topologyscalefree \
136   test_testbed_api_statistics
137
138 if ENABLE_TEST_RUN
139  TESTS = \
140   test_testbed_api \
141   test_testbed_api_sd \
142   test_testbed_api_operations \
143   test_testbed_api_hosts \
144   test_gnunet_helper_testbed \
145   test_testbed_api_2peers_1controller \
146   test_testbed_api_controllerlink \
147   test_testbed_api_3peers_3controllers \
148   test_testbed_api_testbed_run \
149   test_testbed_api_test \
150   test_testbed_api_test_timeout \
151   test_testbed_api_statistics \
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_topology2dtorus \
160   test_testbed_api_testbed_run_topologysmallworld \
161   test_testbed_api_testbed_run_topologysmallworldring \
162   test_testbed_api_testbed_run_topologyfromfile \
163   test_testbed_api_testbed_run_topologyscalefree
164 endif
165
166 test_testbed_api_hosts_SOURCES = \
167  test_testbed_api_hosts.c
168 test_testbed_api_hosts_LDADD = \
169  $(top_builddir)/src/util/libgnunetutil.la \
170  libgnunettestbed.la
171
172 test_testbed_api_SOURCES = \
173  test_testbed_api.c
174 test_testbed_api_LDADD = \
175  $(top_builddir)/src/util/libgnunetutil.la \
176  $(top_builddir)/src/testing/libgnunettesting.la \
177  $(top_builddir)/src/dht/libgnunetdht.la \
178  libgnunettestbed.la
179
180 test_testbed_api_sd_SOURCES = \
181  test_testbed_api_sd.c
182 test_testbed_api_sd_LDADD = \
183  $(top_builddir)/src/util/libgnunetutil.la \
184  libgnunettestbed.la
185
186 test_testbed_api_2peers_1controller_SOURCES = \
187  test_testbed_api_2peers_1controller.c
188 test_testbed_api_2peers_1controller_LDADD = \
189  $(top_builddir)/src/util/libgnunetutil.la \
190  $(top_builddir)/src/testing/libgnunettesting.la \
191  libgnunettestbed.la
192
193 test_testbed_api_3peers_3controllers_SOURCES = \
194  test_testbed_api_3peers_3controllers.c
195 test_testbed_api_3peers_3controllers_LDADD = \
196  $(top_builddir)/src/util/libgnunetutil.la \
197  $(top_builddir)/src/testing/libgnunettesting.la \
198  libgnunettestbed.la
199
200 test_testbed_api_operations_SOURCES = \
201  test_testbed_api_operations.c
202 test_testbed_api_operations_LDADD = \
203  $(top_builddir)/src/util/libgnunetutil.la \
204  libgnunettestbed.la
205
206 test_testbed_api_controllerlink_SOURCES = \
207  test_testbed_api_controllerlink.c
208 test_testbed_api_controllerlink_LDADD = \
209  $(top_builddir)/src/util/libgnunetutil.la \
210  libgnunettestbed.la
211
212 test_testbed_api_testbed_run_SOURCES = \
213  test_testbed_api_testbed_run.c
214 test_testbed_api_testbed_run_LDADD = \
215  $(top_builddir)/src/util/libgnunetutil.la \
216  libgnunettestbed.la
217
218 test_testbed_api_test_SOURCES = \
219  test_testbed_api_test.c
220 test_testbed_api_test_LDADD = \
221  $(top_builddir)/src/util/libgnunetutil.la \
222  libgnunettestbed.la
223
224 test_testbed_api_test_timeout_SOURCES = \
225  test_testbed_api_test_timeout.c
226 test_testbed_api_test_timeout_LDADD = \
227  $(top_builddir)/src/util/libgnunetutil.la \
228  libgnunettestbed.la
229
230 test_testbed_api_topology_SOURCES = \
231  test_testbed_api_topology.c
232 test_testbed_api_topology_LDADD = \
233  $(top_builddir)/src/util/libgnunetutil.la \
234  libgnunettestbed.la
235
236 test_testbed_api_topology_clique_SOURCES = \
237  test_testbed_api_topology_clique.c
238 test_testbed_api_topology_clique_LDADD = \
239  $(top_builddir)/src/util/libgnunetutil.la \
240  libgnunettestbed.la
241
242 test_gnunet_helper_testbed_SOURCES = \
243  test_gnunet_helper_testbed.c
244 test_gnunet_helper_testbed_LDADD = \
245  $(top_builddir)/src/util/libgnunetutil.la \
246  libgnunettestbed.la \
247  -lz
248
249 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
250  test_testbed_api_testbed_run.c
251 test_testbed_api_testbed_run_topologyrandom_LDADD = \
252  $(top_builddir)/src/util/libgnunetutil.la \
253  libgnunettestbed.la
254
255 test_testbed_api_testbed_run_topologyline_SOURCES = \
256  test_testbed_api_testbed_run.c
257 test_testbed_api_testbed_run_topologyline_LDADD = \
258  $(top_builddir)/src/util/libgnunetutil.la \
259  libgnunettestbed.la
260
261 test_testbed_api_testbed_run_topologyclique_SOURCES = \
262  test_testbed_api_testbed_run.c
263 test_testbed_api_testbed_run_topologyclique_LDADD = \
264  $(top_builddir)/src/util/libgnunetutil.la \
265  libgnunettestbed.la
266
267 test_testbed_api_testbed_run_topologyring_SOURCES = \
268  test_testbed_api_testbed_run.c
269 test_testbed_api_testbed_run_topologyring_LDADD = \
270  $(top_builddir)/src/util/libgnunetutil.la \
271  libgnunettestbed.la
272
273 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
274  test_testbed_api_testbed_run.c
275 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
276  $(top_builddir)/src/util/libgnunetutil.la \
277  libgnunettestbed.la
278
279 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
280  test_testbed_api_testbed_run.c
281 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
282  $(top_builddir)/src/util/libgnunetutil.la \
283  libgnunettestbed.la
284
285 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
286  test_testbed_api_testbed_run.c
287 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
288  $(top_builddir)/src/util/libgnunetutil.la \
289  libgnunettestbed.la
290
291 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
292  test_testbed_api_testbed_run.c
293 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
294  $(top_builddir)/src/util/libgnunetutil.la \
295  libgnunettestbed.la
296
297 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
298  test_testbed_api_testbed_run.c
299 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
300  $(top_builddir)/src/util/libgnunetutil.la \
301  libgnunettestbed.la
302
303 test_testbed_api_statistics_SOURCES = \
304  test_testbed_api_statistics.c
305 test_testbed_api_statistics_LDADD = \
306  $(top_builddir)/src/util/libgnunetutil.la \
307  libgnunettestbed.la
308
309 test_testbed_api_peers_manage_services_SOURCES = \
310  test_testbed_api_peers_manage_services.c
311 test_testbed_api_peers_manage_services_LDADD = \
312  $(top_builddir)/src/util/libgnunetutil.la \
313  libgnunettestbed.la
314
315 EXTRA_DIST = \
316   test_testbed_api.conf \
317   test_testbed_api_test_timeout.conf \
318   test_testbed_api_testbed_run_topologyring.conf \
319   test_testbed_api_testbed_run_topologyclique.conf \
320   test_testbed_api_testbed_run_topologyline.conf \
321   test_testbed_api_testbed_run_topologyrandom.conf \
322   test_testbed_api_testbed_run_topologysmallworldring.conf \
323   test_testbed_api_testbed_run_topology2dtorus.conf \
324   test_testbed_api_testbed_run_topologysmallworld.conf \
325   test_testbed_api_testbed_run_topologyfromfile.conf \
326   test_testbed_api_testbed_run_topologyscalefree.conf \
327   overlay_topology.txt \
328   sample_hosts.txt \
329   sample.job