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