- manage services of peers (client API)
[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_testbed_api_test_timeout \
113   test_gnunet_helper_testbed \
114   test_testbed_api_topology \
115   test_testbed_api_topology_clique \
116   test_testbed_api_testbed_run_topologyrandom \
117   test_testbed_api_testbed_run_topologyline \
118   test_testbed_api_testbed_run_topologyclique \
119   test_testbed_api_testbed_run_topologyring \
120   test_testbed_api_testbed_run_topologysmallworldring \
121   test_testbed_api_testbed_run_topology2dtorus \
122   test_testbed_api_testbed_run_topologysmallworld \
123   test_testbed_api_testbed_run_topologyfromfile \
124   test_testbed_api_testbed_run_topologyscalefree \
125   test_testbed_api_statistics
126
127 if ENABLE_TEST_RUN
128  TESTS = \
129   test_testbed_api \
130   test_testbed_api_sd \
131   test_testbed_api_operations \
132   test_testbed_api_hosts \
133   test_gnunet_helper_testbed \
134   test_testbed_api_2peers_1controller \
135   test_testbed_api_controllerlink \
136   test_testbed_api_3peers_3controllers \
137   test_testbed_api_testbed_run \
138   test_testbed_api_test \
139   test_testbed_api_test_timeout \
140   test_testbed_api_statistics \
141   test_testbed_api_topology \
142   test_testbed_api_topology_clique \
143   test_testbed_api_testbed_run_topologyrandom \
144   test_testbed_api_testbed_run_topologyline \
145   test_testbed_api_testbed_run_topologyclique \
146   test_testbed_api_testbed_run_topologyring \
147   test_testbed_api_testbed_run_topology2dtorus \
148   test_testbed_api_testbed_run_topologysmallworld \
149   test_testbed_api_testbed_run_topologysmallworldring \
150   test_testbed_api_testbed_run_topologyfromfile \
151   test_testbed_api_testbed_run_topologyscalefree
152 endif
153
154 test_testbed_api_hosts_SOURCES = \
155  test_testbed_api_hosts.c
156 test_testbed_api_hosts_LDADD = \
157  $(top_builddir)/src/util/libgnunetutil.la \
158  libgnunettestbed.la
159
160 test_testbed_api_SOURCES = \
161  test_testbed_api.c
162 test_testbed_api_LDADD = \
163  $(top_builddir)/src/util/libgnunetutil.la \
164  $(top_builddir)/src/testing/libgnunettesting.la \
165  $(top_builddir)/src/dht/libgnunetdht.la \
166  libgnunettestbed.la
167
168 test_testbed_api_sd_SOURCES = \
169  test_testbed_api_sd.c
170 test_testbed_api_sd_LDADD = \
171  $(top_builddir)/src/util/libgnunetutil.la \
172  libgnunettestbed.la
173
174 test_testbed_api_2peers_1controller_SOURCES = \
175  test_testbed_api_2peers_1controller.c
176 test_testbed_api_2peers_1controller_LDADD = \
177  $(top_builddir)/src/util/libgnunetutil.la \
178  $(top_builddir)/src/testing/libgnunettesting.la \
179  libgnunettestbed.la
180
181 test_testbed_api_3peers_3controllers_SOURCES = \
182  test_testbed_api_3peers_3controllers.c
183 test_testbed_api_3peers_3controllers_LDADD = \
184  $(top_builddir)/src/util/libgnunetutil.la \
185  $(top_builddir)/src/testing/libgnunettesting.la \
186  libgnunettestbed.la
187
188 test_testbed_api_operations_SOURCES = \
189  test_testbed_api_operations.c
190 test_testbed_api_operations_LDADD = \
191  $(top_builddir)/src/util/libgnunetutil.la \
192  libgnunettestbed.la
193
194 test_testbed_api_controllerlink_SOURCES = \
195  test_testbed_api_controllerlink.c
196 test_testbed_api_controllerlink_LDADD = \
197  $(top_builddir)/src/util/libgnunetutil.la \
198  libgnunettestbed.la
199
200 test_testbed_api_testbed_run_SOURCES = \
201  test_testbed_api_testbed_run.c
202 test_testbed_api_testbed_run_LDADD = \
203  $(top_builddir)/src/util/libgnunetutil.la \
204  libgnunettestbed.la
205
206 test_testbed_api_test_SOURCES = \
207  test_testbed_api_test.c
208 test_testbed_api_test_LDADD = \
209  $(top_builddir)/src/util/libgnunetutil.la \
210  libgnunettestbed.la
211
212 test_testbed_api_test_timeout_SOURCES = \
213  test_testbed_api_test_timeout.c
214 test_testbed_api_test_timeout_LDADD = \
215  $(top_builddir)/src/util/libgnunetutil.la \
216  libgnunettestbed.la
217
218 test_testbed_api_topology_SOURCES = \
219  test_testbed_api_topology.c
220 test_testbed_api_topology_LDADD = \
221  $(top_builddir)/src/util/libgnunetutil.la \
222  libgnunettestbed.la
223
224 test_testbed_api_topology_clique_SOURCES = \
225  test_testbed_api_topology_clique.c
226 test_testbed_api_topology_clique_LDADD = \
227  $(top_builddir)/src/util/libgnunetutil.la \
228  libgnunettestbed.la
229
230 test_gnunet_helper_testbed_SOURCES = \
231  test_gnunet_helper_testbed.c
232 test_gnunet_helper_testbed_LDADD = \
233  $(top_builddir)/src/util/libgnunetutil.la \
234  libgnunettestbed.la \
235  -lz
236
237 test_testbed_api_testbed_run_topologyrandom_SOURCES = \
238  test_testbed_api_testbed_run.c
239 test_testbed_api_testbed_run_topologyrandom_LDADD = \
240  $(top_builddir)/src/util/libgnunetutil.la \
241  libgnunettestbed.la
242
243 test_testbed_api_testbed_run_topologyline_SOURCES = \
244  test_testbed_api_testbed_run.c
245 test_testbed_api_testbed_run_topologyline_LDADD = \
246  $(top_builddir)/src/util/libgnunetutil.la \
247  libgnunettestbed.la
248
249 test_testbed_api_testbed_run_topologyclique_SOURCES = \
250  test_testbed_api_testbed_run.c
251 test_testbed_api_testbed_run_topologyclique_LDADD = \
252  $(top_builddir)/src/util/libgnunetutil.la \
253  libgnunettestbed.la
254
255 test_testbed_api_testbed_run_topologyring_SOURCES = \
256  test_testbed_api_testbed_run.c
257 test_testbed_api_testbed_run_topologyring_LDADD = \
258  $(top_builddir)/src/util/libgnunetutil.la \
259  libgnunettestbed.la
260
261 test_testbed_api_testbed_run_topologysmallworldring_SOURCES = \
262  test_testbed_api_testbed_run.c
263 test_testbed_api_testbed_run_topologysmallworldring_LDADD = \
264  $(top_builddir)/src/util/libgnunetutil.la \
265  libgnunettestbed.la
266
267 test_testbed_api_testbed_run_topology2dtorus_SOURCES = \
268  test_testbed_api_testbed_run.c
269 test_testbed_api_testbed_run_topology2dtorus_LDADD = \
270  $(top_builddir)/src/util/libgnunetutil.la \
271  libgnunettestbed.la
272
273 test_testbed_api_testbed_run_topologysmallworld_SOURCES = \
274  test_testbed_api_testbed_run.c
275 test_testbed_api_testbed_run_topologysmallworld_LDADD = \
276  $(top_builddir)/src/util/libgnunetutil.la \
277  libgnunettestbed.la
278
279 test_testbed_api_testbed_run_topologyfromfile_SOURCES = \
280  test_testbed_api_testbed_run.c
281 test_testbed_api_testbed_run_topologyfromfile_LDADD = \
282  $(top_builddir)/src/util/libgnunetutil.la \
283  libgnunettestbed.la
284
285 test_testbed_api_testbed_run_topologyscalefree_SOURCES = \
286  test_testbed_api_testbed_run.c
287 test_testbed_api_testbed_run_topologyscalefree_LDADD = \
288  $(top_builddir)/src/util/libgnunetutil.la \
289  libgnunettestbed.la
290
291 test_testbed_api_statistics_SOURCES = \
292  test_testbed_api_statistics.c
293 test_testbed_api_statistics_LDADD = \
294  $(top_builddir)/src/util/libgnunetutil.la \
295  libgnunettestbed.la
296
297 EXTRA_DIST = \
298   test_testbed_api.conf \
299   test_testbed_api_test_timeout.conf \
300   test_testbed_api_testbed_run_topologyring.conf \
301   test_testbed_api_testbed_run_topologyclique.conf \
302   test_testbed_api_testbed_run_topologyline.conf \
303   test_testbed_api_testbed_run_topologyrandom.conf \
304   test_testbed_api_testbed_run_topologysmallworldring.conf \
305   test_testbed_api_testbed_run_topology2dtorus.conf \
306   test_testbed_api_testbed_run_topologysmallworld.conf \
307   test_testbed_api_testbed_run_topologyfromfile.conf \
308   test_testbed_api_testbed_run_topologyscalefree.conf \
309   overlay_topology.txt \
310   sample_hosts.txt \
311   sample.job