REST/NAMESTORE: rework API
[oweals/gnunet.git] / src / ats-tests / Makefile.am
1 #t This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 if MINGW
9  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = -fprofile-arcs -ftest-coverage
14 endif
15
16 if HAVE_EXPERIMENTAL
17 if HAVE_LIBGLPK
18  PERF_MLP = \
19  perf_ats_mlp_transport_none \
20  perf_ats_mlp_transport_bandwidth \
21  perf_ats_mlp_transport_latency \
22  perf_ats_mlp_core_none \
23  perf_ats_mlp_core_bandwidth \
24  perf_ats_mlp_core_latency
25 endif
26 endif
27
28 if HAVE_TESTING
29 TESTING_TESTS = \
30  perf_ats_proportional_transport_none \
31  perf_ats_proportional_transport_bandwidth \
32  perf_ats_proportional_transport_latency \
33  perf_ats_proportional_core_none \
34  perf_ats_proportional_core_bandwidth \
35  perf_ats_proportional_core_latency \
36  $(PERF_MLP)
37
38 # RIL-tests commented out as RIL is currently badly broken.
39 # perf_ats_ril_transport_none  perf_ats_ril_core_none perf_ats_ril_transport_bandwidth perf_ats_ril_core_bandwidth perf_ats_ril_transport_latency perf_ats_ril_core_latency
40 endif
41
42 lib_LTLIBRARIES = \
43   libgnunetatstesting.la
44
45 check_PROGRAMS = \
46  $(TESTING_TESTS)
47
48 if ENABLE_TEST_RUN
49 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
50 TESTS = $(check_PROGRAMS)
51 endif
52
53 noinst_PROGRAMS = \
54  gnunet-ats-sim gnunet-solver-eval
55
56 libgnunetatstesting_la_SOURCES = \
57   ats-testing.c ats-testing.h \
58   ats-testing-log.c ats-testing-traffic.c \
59   ats-testing-experiment.c ats-testing-preferences.c
60 libgnunetatstesting_la_LIBADD = \
61   $(top_builddir)/src/testbed/libgnunettestbed.la \
62   $(top_builddir)/src/core/libgnunetcore.la \
63         $(top_builddir)/src/transport/libgnunettransport.la \
64   $(top_builddir)/src/ats/libgnunetats.la \
65   $(top_builddir)/src/util/libgnunetutil.la \
66   $(GN_LIBINTL)
67 libgnunetatstesting_la_DEPENDENCIES = \
68   $(top_builddir)/src/testbed/libgnunettestbed.la \
69   $(top_builddir)/src/ats/libgnunetats.la
70 libgnunetatstesting_la_LDFLAGS = \
71  $(GN_LIB_LDFLAGS)
72
73 gnunet_ats_sim_SOURCES = \
74  gnunet-ats-sim.c
75 gnunet_ats_sim_LDADD = \
76  $(top_builddir)/src/util/libgnunetutil.la \
77  $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
78  $(top_builddir)/src/testbed/libgnunettestbed.la \
79  $(top_builddir)/src/ats/libgnunetats.la \
80  $(top_builddir)/src/core/libgnunetcore.la \
81  $(top_builddir)/src/transport/libgnunettransport.la
82 gnunet_ats_sim_DEPENDENCIES = \
83  libgnunetatstesting.la \
84  $(top_builddir)/src/util/libgnunetutil.la
85
86
87 gnunet_solver_eval_SOURCES = \
88  gnunet-solver-eval.c
89 gnunet_solver_eval_LDADD = \
90  $(top_builddir)/src/util/libgnunetutil.la \
91  $(top_builddir)/src/ats/libgnunetats.la \
92  $(top_builddir)/src/core/libgnunetcore.la \
93  $(top_builddir)/src/transport/libgnunettransport.la
94 gnunet_solver_eval_DEPENDENCIES = \
95  $(top_builddir)/src/util/libgnunetutil.la
96
97 perf_ats_proportional_core_none_SOURCES = \
98   perf_ats.c
99 perf_ats_proportional_core_none_LDADD = \
100   $(top_builddir)/src/util/libgnunetutil.la \
101   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
102   $(top_builddir)/src/testbed/libgnunettestbed.la \
103   $(top_builddir)/src/ats/libgnunetats.la \
104   $(top_builddir)/src/core/libgnunetcore.la \
105   $(top_builddir)/src/transport/libgnunettransport.la
106 perf_ats_proportional_core_none_DEPENDENCIES = \
107  libgnunetatstesting.la \
108  $(top_builddir)/src/util/libgnunetutil.la
109
110 perf_ats_proportional_transport_none_SOURCES = \
111   perf_ats.c
112 perf_ats_proportional_transport_none_LDADD = \
113   $(top_builddir)/src/util/libgnunetutil.la \
114   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
115   $(top_builddir)/src/testbed/libgnunettestbed.la \
116   $(top_builddir)/src/ats/libgnunetats.la \
117   $(top_builddir)/src/core/libgnunetcore.la \
118   $(top_builddir)/src/transport/libgnunettransport.la
119 perf_ats_proportional_transport_none_DEPENDENCIES = \
120  libgnunetatstesting.la \
121  $(top_builddir)/src/util/libgnunetutil.la
122
123 perf_ats_proportional_core_bandwidth_SOURCES = \
124   perf_ats.c
125 perf_ats_proportional_core_bandwidth_LDADD = \
126   $(top_builddir)/src/util/libgnunetutil.la \
127   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
128   $(top_builddir)/src/testbed/libgnunettestbed.la \
129   $(top_builddir)/src/ats/libgnunetats.la \
130   $(top_builddir)/src/core/libgnunetcore.la \
131   $(top_builddir)/src/transport/libgnunettransport.la
132 perf_ats_proportional_core_bandwidth_DEPENDENCIES = \
133  libgnunetatstesting.la \
134  $(top_builddir)/src/util/libgnunetutil.la
135
136 perf_ats_proportional_transport_bandwidth_SOURCES = \
137   perf_ats.c
138 perf_ats_proportional_transport_bandwidth_LDADD = \
139   $(top_builddir)/src/util/libgnunetutil.la \
140   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
141   $(top_builddir)/src/testbed/libgnunettestbed.la \
142   $(top_builddir)/src/ats/libgnunetats.la \
143   $(top_builddir)/src/core/libgnunetcore.la \
144   $(top_builddir)/src/transport/libgnunettransport.la
145 perf_ats_proportional_transport_bandwidth_DEPENDENCIES = \
146  libgnunetatstesting.la \
147  $(top_builddir)/src/util/libgnunetutil.la
148
149 perf_ats_proportional_core_latency_SOURCES = \
150   perf_ats.c
151 perf_ats_proportional_core_latency_LDADD = \
152   $(top_builddir)/src/util/libgnunetutil.la \
153   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
154   $(top_builddir)/src/testbed/libgnunettestbed.la \
155   $(top_builddir)/src/ats/libgnunetats.la \
156   $(top_builddir)/src/core/libgnunetcore.la \
157   $(top_builddir)/src/transport/libgnunettransport.la
158 perf_ats_proportional_core_latency_DEPENDENCIES = \
159  libgnunetatstesting.la \
160  $(top_builddir)/src/util/libgnunetutil.la
161
162 perf_ats_proportional_transport_latency_SOURCES = \
163   perf_ats.c
164 perf_ats_proportional_transport_latency_LDADD = \
165   $(top_builddir)/src/util/libgnunetutil.la \
166   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
167   $(top_builddir)/src/testbed/libgnunettestbed.la \
168   $(top_builddir)/src/ats/libgnunetats.la \
169   $(top_builddir)/src/core/libgnunetcore.la \
170   $(top_builddir)/src/transport/libgnunettransport.la
171 perf_ats_proportional_transport_latency_DEPENDENCIES = \
172  libgnunetatstesting.la \
173  $(top_builddir)/src/util/libgnunetutil.la
174
175 perf_ats_mlp_core_none_SOURCES = \
176   perf_ats.c
177 perf_ats_mlp_core_none_LDADD = \
178   $(top_builddir)/src/util/libgnunetutil.la \
179   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
180   $(top_builddir)/src/testbed/libgnunettestbed.la \
181   $(top_builddir)/src/ats/libgnunetats.la \
182   $(top_builddir)/src/core/libgnunetcore.la \
183   $(top_builddir)/src/transport/libgnunettransport.la
184 perf_ats_mlp_core_none_DEPENDENCIES = \
185  libgnunetatstesting.la \
186  $(top_builddir)/src/util/libgnunetutil.la
187
188 perf_ats_mlp_transport_none_SOURCES = \
189   perf_ats.c
190 perf_ats_mlp_transport_none_LDADD = \
191   $(top_builddir)/src/util/libgnunetutil.la \
192   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
193   $(top_builddir)/src/testbed/libgnunettestbed.la \
194   $(top_builddir)/src/ats/libgnunetats.la \
195   $(top_builddir)/src/core/libgnunetcore.la \
196   $(top_builddir)/src/transport/libgnunettransport.la
197 perf_ats_mlp_transport_none_DEPENDENCIES = \
198  libgnunetatstesting.la \
199  $(top_builddir)/src/util/libgnunetutil.la
200
201 perf_ats_mlp_core_bandwidth_SOURCES = \
202   perf_ats.c
203 perf_ats_mlp_core_bandwidth_LDADD = \
204   $(top_builddir)/src/util/libgnunetutil.la \
205   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
206   $(top_builddir)/src/testbed/libgnunettestbed.la \
207   $(top_builddir)/src/ats/libgnunetats.la \
208   $(top_builddir)/src/core/libgnunetcore.la \
209   $(top_builddir)/src/transport/libgnunettransport.la
210 perf_ats_mlp_core_bandwidth_DEPENDENCIES = \
211  libgnunetatstesting.la \
212  $(top_builddir)/src/util/libgnunetutil.la
213
214 perf_ats_mlp_transport_bandwidth_SOURCES = \
215   perf_ats.c
216 perf_ats_mlp_transport_bandwidth_LDADD = \
217   $(top_builddir)/src/util/libgnunetutil.la \
218   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
219   $(top_builddir)/src/testbed/libgnunettestbed.la \
220   $(top_builddir)/src/ats/libgnunetats.la \
221   $(top_builddir)/src/core/libgnunetcore.la \
222   $(top_builddir)/src/transport/libgnunettransport.la
223 perf_ats_mlp_transport_bandwidth_DEPENDENCIES = \
224  libgnunetatstesting.la \
225  $(top_builddir)/src/util/libgnunetutil.la
226
227 perf_ats_mlp_core_latency_SOURCES = \
228   perf_ats.c
229 perf_ats_mlp_core_latency_LDADD = \
230   $(top_builddir)/src/util/libgnunetutil.la \
231   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
232   $(top_builddir)/src/testbed/libgnunettestbed.la \
233   $(top_builddir)/src/ats/libgnunetats.la \
234   $(top_builddir)/src/core/libgnunetcore.la \
235   $(top_builddir)/src/transport/libgnunettransport.la
236 perf_ats_mlp_core_latency_DEPENDENCIES = \
237  libgnunetatstesting.la \
238  $(top_builddir)/src/util/libgnunetutil.la
239
240 perf_ats_mlp_transport_latency_SOURCES = \
241   perf_ats.c
242 perf_ats_mlp_transport_latency_LDADD = \
243   $(top_builddir)/src/util/libgnunetutil.la \
244   $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
245   $(top_builddir)/src/testbed/libgnunettestbed.la \
246   $(top_builddir)/src/ats/libgnunetats.la \
247   $(top_builddir)/src/core/libgnunetcore.la \
248   $(top_builddir)/src/transport/libgnunettransport.la
249 perf_ats_mlp_transport_latencyDEPENDENCIES = \
250  $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
251  $(top_builddir)/src/util/libgnunetutil.la
252
253 #perf_ats_ril_core_none_SOURCES = \
254 #  perf_ats.c
255 #perf_ats_ril_core_none_LDADD = \
256 #  $(top_builddir)/src/util/libgnunetutil.la \
257 #  $(top_builddir)/src/ats-tests/libgnunetatstesting.la \
258 #  $(top_builddir)/src/testbed/libgnunettestbed.la \
259 #  $(top_builddir)/src/ats/libgnunetats.la \
260 #  $(top_builddir)/src/core/libgnunetcore.la \
261 #  $(top_builddir)/src/transport/libgnunettransport.la
262 #perf_ats_ril_core_none_DEPENDENCIES = \
263 # libgnunetatstesting.la \
264 # $(top_builddir)/src/util/libgnunetutil.la
265
266
267 EXTRA_DIST = \
268   gnunet_ats_sim_default.conf \
269   perf_ats_proportional_none.conf \
270   perf_ats_proportional_bandwidth.conf \
271   perf_ats_proportional_latency.conf \
272   perf_ats_mlp_none.conf \
273   perf_ats_mlp_bandwidth.conf \
274   perf_ats_mlp_latency.conf \
275   perf_ats_ril_none.conf \
276   perf_ats_ril_bandwidth.conf \
277   perf_ats_ril_latency.conf