Implement GNUNET_TESTBED_get_statistics() - resolves #2662
[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
28 bin_PROGRAMS = \
29   $(ll_binaries) \
30   gnunet-testbed-profiler
31
32 gnunet_service_testbed_SOURCES = \
33   gnunet-service-testbed.c \
34   gnunet-service-testbed.h \
35   gnunet-service-testbed_cache.c \
36   gnunet-service-testbed_oc.c
37 gnunet_service_testbed_LDADD = $(XLIB) \
38  $(top_builddir)/src/util/libgnunetutil.la \
39  $(top_builddir)/src/core/libgnunetcore.la \
40  $(top_builddir)/src/hello/libgnunethello.la \
41  $(top_builddir)/src/transport/libgnunettransport.la \
42  $(top_builddir)/src/testing/libgnunettesting.la \
43  $(top_builddir)/src/testbed/libgnunettestbed.la \
44  $(LTLIBINTL) -lz
45 gnunet_service_testbed_DEPENDENCIES = \
46  libgnunettestbed.la
47
48 gnunet_testbed_profiler_SOURCES = \
49   gnunet-testbed-profiler.c
50 gnunet_testbed_profiler_LDADD = $(XLIB) \
51  $(top_builddir)/src/util/libgnunetutil.la \
52  $(top_builddir)/src/testbed/libgnunettestbed.la
53 gnunet_testbed_profiler_DEPENDENCIES = \
54  libgnunettestbed.la
55
56 gnunet_helper_testbed_SOURCES = \
57   gnunet-helper-testbed.c
58 gnunet_helper_testbed_LDADD = $(XLIB) \
59  $(top_builddir)/src/util/libgnunetutil.la \
60  $(top_builddir)/src/testing/libgnunettesting.la \
61  libgnunettestbed.la \
62  $(LTLIBINTL) -lz
63 gnunet_helper_testbed_DEPENDENCIES = \
64   gnunet-service-testbed.$(OBJEXT) \
65   libgnunettestbed.la
66
67 gnunet_testbed_mpi_spawn_SOURCES = gnunet_testbed_mpi_spawn.c
68 gnunet_testbed_mpi_spawn_LDADD = $(XLIB) \
69  $(top_builddir)/src/util/libgnunetutil.la \
70  $(top_builddir)/src/testbed/libgnunettestbed.la
71 gnunet_testbed_mpi_spawn_DEPENDENCIES = \
72  $(top_builddir)/src/util/libgnunetutil.la \
73  libgnunettestbed.la
74
75 lib_LTLIBRARIES = \
76   libgnunettestbed.la
77
78 libgnunettestbed_la_SOURCES = \
79   testbed_api.c testbed_api.h testbed.h \
80   testbed_api_hosts.c testbed_api_hosts.h testbed_helper.h \
81   testbed_api_operations.c testbed_api_operations.h \
82   testbed_api_peers.c testbed_api_peers.h \
83   testbed_api_services.c \
84   testbed_api_statistics.c \
85   testbed_api_testbed.c \
86   testbed_api_test.c \
87   testbed_api_topology.c testbed_api_topology.h \
88   testbed_api_sd.c testbed_api_sd.h
89 libgnunettestbed_la_LIBADD = $(XLIB) \
90  $(top_builddir)/src/core/libgnunetcore.la \
91  $(top_builddir)/src/statistics/libgnunetstatistics.la \
92  $(top_builddir)/src/transport/libgnunettransport.la \
93  $(top_builddir)/src/hello/libgnunethello.la \
94  -lm \
95  $(top_builddir)/src/util/libgnunetutil.la \
96  $(top_builddir)/src/testing/libgnunettesting.la \
97  $(LTLIBINTL)
98 libgnunettestbed_la_LDFLAGS = \
99  $(GN_LIB_LDFLAGS) \
100  -version-info 0:0:0
101
102 check_PROGRAMS = \
103   test_testbed_api_hosts \
104   test_testbed_api_controllerlink \
105   test_testbed_api_2peers_1controller \
106   test_testbed_api_3peers_3controllers \
107   test_testbed_api \
108   test_testbed_api_sd \
109   test_testbed_api_operations \
110   test_testbed_api_testbed_run \
111   test_testbed_api_test \
112   test_gnunet_helper_testbed \
113   test_testbed_api_topology \
114   test_testbed_api_topology_clique \
115   test_testbed_api_testbed_run_topologyrandom \
116   test_testbed_api_testbed_run_topologyline \
117   test_testbed_api_testbed_run_topologyclique \
118   test_testbed_api_testbed_run_topologyring \
119   test_testbed_api_testbed_run_topologysmallworldring \
120   test_testbed_api_testbed_run_topology2dtorus \
121   test_testbed_api_testbed_run_topologysmallworld \
122   test_testbed_api_testbed_run_topologyfromfile \
123   test_testbed_api_testbed_run_topologyscalefree \
124   test_testbed_api_statistics
125
126 if ENABLE_TEST_RUN
127  TESTS = \
128   test_testbed_api \
129   test_testbed_api_sd \
130   test_testbed_api_operations \
131   test_testbed_api_hosts \
132   test_gnunet_helper_testbed \
133   test_testbed_api_2peers_1controller \
134   test_testbed_api_controllerlink \
135   test_testbed_api_3peers_3controllers \
136   test_testbed_api_testbed_run \
137   test_testbed_api_test \
138   test_testbed_api_statistics \
139   test_testbed_api_topology \
140   test_testbed_api_topology_clique \
141   test_testbed_api_testbed_run_topologyrandom \
142   test_testbed_api_testbed_run_topologyline \
143   test_testbed_api_testbed_run_topologyclique \
144   test_testbed_api_testbed_run_topologyring \
145   test_testbed_api_testbed_run_topology2dtorus \
146   test_testbed_api_testbed_run_topologysmallworld \
147   test_testbed_api_testbed_run_topologysmallworldring \
148   test_testbed_api_testbed_run_topologyfromfile \
149   test_testbed_api_testbed_run_topologyscalefree
150 endif
151
152 test_testbed_api_hosts_SOURCES = \
153  test_testbed_api_hosts.c
154 test_testbed_api_hosts_LDADD = \
155  $(top_builddir)/src/util/libgnunetutil.la \
156  libgnunettestbed.la
157
158 test_testbed_api_SOURCES = \
159  test_testbed_api.c
160 test_testbed_api_LDADD = \
161  $(top_builddir)/src/util/libgnunetutil.la \
162  $(top_builddir)/src/testing/libgnunettesting.la \
163  $(top_builddir)/src/dht/libgnunetdht.la \
164  libgnunettestbed.la
165
166 test_testbed_api_sd_SOURCES = \
167  test_testbed_api_sd.c
168 test_testbed_api_sd_LDADD = \
169  $(top_builddir)/src/util/libgnunetutil.la \
170  libgnunettestbed.la
171
172 test_testbed_api_2peers_1controller_SOURCES = \
173  test_testbed_api_2peers_1controller.c
174 test_testbed_api_2peers_1controller_LDADD = \
175  $(top_builddir)/src/util/libgnunetutil.la \
176  $(top_builddir)/src/testing/libgnunettesting.la \
177  libgnunettestbed.la
178
179 test_testbed_api_3peers_3controllers_SOURCES = \
180  test_testbed_api_3peers_3controllers.c
181 test_testbed_api_3peers_3controllers_LDADD = \
182  $(top_builddir)/src/util/libgnunetutil.la \
183  $(top_builddir)/src/testing/libgnunettesting.la \
184  libgnunettestbed.la
185
186 test_testbed_api_operations_SOURCES = \
187  test_testbed_api_operations.c
188 test_testbed_api_operations_LDADD = \
189  $(top_builddir)/src/util/libgnunetutil.la \
190  libgnunettestbed.la
191
192 test_testbed_api_controllerlink_SOURCES = \
193  test_testbed_api_controllerlink.c
194 test_testbed_api_controllerlink_LDADD = \
195  $(top_builddir)/src/util/libgnunetutil.la \
196  libgnunettestbed.la
197
198 test_testbed_api_testbed_run_SOURCES = \
199  test_testbed_api_testbed_run.c
200 test_testbed_api_testbed_run_LDADD = \
201  $(top_builddir)/src/util/libgnunetutil.la \
202  libgnunettestbed.la
203
204 test_testbed_api_test_SOURCES = \
205  test_testbed_api_test.c
206 test_testbed_api_test_LDADD = \
207  $(top_builddir)/src/util/libgnunetutil.la \
208  libgnunettestbed.la
209
210 test_testbed_api_topology_SOURCES = \
211  test_testbed_api_topology.c
212 test_testbed_api_topology_LDADD = \
213  $(top_builddir)/src/util/libgnunetutil.la \
214  libgnunettestbed.la
215
216 test_testbed_api_topology_clique_SOURCES = \
217  test_testbed_api_topology_clique.c
218 test_testbed_api_topology_clique_LDADD = \
219  $(top_builddir)/src/util/libgnunetutil.la \
220  libgnunettestbed.la
221
222 test_gnunet_helper_testbed_SOURCES = \
223  test_gnunet_helper_testbed.c
224 test_gnunet_helper_testbed_LDADD = \
225  $(top_builddir)/src/util/libgnunetutil.la \
226  libgnunettestbed.la \
227  -lz
228
229 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
230  test_testbed_api_testbed_run.c
231 test_testbed_api_testbed_run_topologyrandom_LDADD = \
232  $(top_builddir)/src/util/libgnunetutil.la \
233  libgnunettestbed.la
234
235 test_testbed_api_testbed_run_topologyline_SOURCES = \
236  test_testbed_api_testbed_run.c
237 test_testbed_api_testbed_run_topologyline_LDADD = \
238  $(top_builddir)/src/util/libgnunetutil.la \
239  libgnunettestbed.la
240
241 test_testbed_api_testbed_run_topologyclique_SOURCES = \
242  test_testbed_api_testbed_run.c
243 test_testbed_api_testbed_run_topologyclique_LDADD = \
244  $(top_builddir)/src/util/libgnunetutil.la \
245  libgnunettestbed.la
246
247 test_testbed_api_testbed_run_topologyring_SOURCES = \
248  test_testbed_api_testbed_run.c
249 test_testbed_api_testbed_run_topologyring_LDADD = \
250  $(top_builddir)/src/util/libgnunetutil.la \
251  libgnunettestbed.la
252
253 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
254  test_testbed_api_testbed_run.c
255 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
256  $(top_builddir)/src/util/libgnunetutil.la \
257  libgnunettestbed.la
258
259 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
260  test_testbed_api_testbed_run.c
261 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
262  $(top_builddir)/src/util/libgnunetutil.la \
263  libgnunettestbed.la
264
265 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
266  test_testbed_api_testbed_run.c
267 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
268  $(top_builddir)/src/util/libgnunetutil.la \
269  libgnunettestbed.la
270
271 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
272  test_testbed_api_testbed_run.c
273 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
274  $(top_builddir)/src/util/libgnunetutil.la \
275  libgnunettestbed.la
276
277 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
278  test_testbed_api_testbed_run.c
279 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
280  $(top_builddir)/src/util/libgnunetutil.la \
281  libgnunettestbed.la
282
283 test_testbed_api_statistics_SOURCES = \
284  test_testbed_api_statistics.c
285 test_testbed_api_statistics_LDADD = \
286  $(top_builddir)/src/util/libgnunetutil.la \
287  libgnunettestbed.la
288
289 EXTRA_DIST = \
290   test_testbed_api.conf \
291   test_testbed_api_testbed_run_topologyring.conf \
292   test_testbed_api_testbed_run_topologyclique.conf \
293   test_testbed_api_testbed_run_topologyline.conf \
294   test_testbed_api_testbed_run_topologyrandom.conf \
295   test_testbed_api_testbed_run_topologysmallworldring.conf \
296   test_testbed_api_testbed_run_topology2dtorus.conf \
297   test_testbed_api_testbed_run_topologysmallworld.conf \
298   test_testbed_api_testbed_run_topologyfromfile.conf \
299   test_testbed_api_testbed_run_topologyscalefree.conf \
300   overlay_topology.txt \
301   sample_hosts.txt \
302   sample.job