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