remove old CADET testcases
[oweals/gnunet.git] / src / cadet / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13 pkgcfgdir= $(pkgdatadir)/config.d/
14
15 libexecdir= $(pkglibdir)/libexec/
16
17 pkgcfg_DATA = \
18   cadet.conf
19
20 plugindir = $(libdir)/gnunet
21
22 AM_CLFAGS = -g
23
24 libexec_PROGRAMS = \
25  gnunet-service-cadet-new \
26  $(EXP_LIBEXEC)
27
28 bin_PROGRAMS = \
29  gnunet-cadet
30
31 lib_LTLIBRARIES = \
32   libgnunetcadetnew.la \
33   libgnunetcadet.la \
34   $(EXP_LIB)
35
36 libgnunetcadet_la_SOURCES = \
37   cadet_api.c cadet_common.c
38 libgnunetcadet_la_LIBADD = \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(XLIB) \
41   $(LTLIBINTL)
42 libgnunetcadet_la_LDFLAGS = \
43   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
44   -version-info 5:0:0
45
46
47 libgnunetcadetnew_la_SOURCES = \
48   cadet_api_new.c
49 libgnunetcadetnew_la_LIBADD = \
50   $(top_builddir)/src/util/libgnunetutil.la \
51   $(XLIB) \
52   $(LTLIBINTL)
53 libgnunetcadetnew_la_LDFLAGS = \
54   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
55   -version-info 6:0:0
56
57 gnunet_cadet_SOURCES = \
58   gnunet-cadet.c
59 gnunet_cadet_LDADD = \
60   libgnunetcadetnew.la \
61   $(top_builddir)/src/util/libgnunetutil.la
62
63 gnunet_service_cadet_new_SOURCES = \
64  gnunet-service-cadet-new.c gnunet-service-cadet-new.h \
65  gnunet-service-cadet-new_channel.c gnunet-service-cadet-new_channel.h \
66  gnunet-service-cadet-new_connection.c gnunet-service-cadet-new_connection.h \
67  gnunet-service-cadet-new_core.c gnunet-service-cadet-new_core.h \
68  gnunet-service-cadet-new_dht.c gnunet-service-cadet-new_dht.h \
69  gnunet-service-cadet-new_hello.c gnunet-service-cadet-new_hello.h \
70  gnunet-service-cadet-new_tunnels.c gnunet-service-cadet-new_tunnels.h \
71  gnunet-service-cadet-new_paths.c gnunet-service-cadet-new_paths.h \
72  gnunet-service-cadet-new_peer.c gnunet-service-cadet-new_peer.h
73 gnunet_service_cadet_new_LDADD = \
74   $(top_builddir)/src/util/libgnunetutil.la \
75   $(top_builddir)/src/ats/libgnunetats.la \
76   $(top_builddir)/src/core/libgnunetcore.la \
77   $(top_builddir)/src/dht/libgnunetdht.la \
78   $(top_builddir)/src/statistics/libgnunetstatistics.la \
79   $(top_builddir)/src/transport/libgnunettransport.la \
80   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
81   $(top_builddir)/src/hello/libgnunethello.la \
82   $(top_builddir)/src/block/libgnunetblock.la
83 if LINUX
84   gnunet_service_cadet_new_LDFLAGS = -lrt
85 endif
86
87
88 if HAVE_TESTING
89  noinst_LTLIBRARIES = libgnunetcadettest.la libgnunetcadettestnew.la $(noinst_LIB_EXP)
90  noinst_PROGRAMS = gnunet-cadet-profiler
91 endif
92
93 libgnunetcadettest_la_SOURCES = \
94   cadet_test_lib.c cadet_test_lib.h
95 libgnunetcadettest_la_LIBADD = \
96  $(top_builddir)/src/util/libgnunetutil.la \
97  $(top_builddir)/src/testbed/libgnunettestbed.la \
98  libgnunetcadet.la
99
100 if HAVE_TESTING
101 check_PROGRAMS = \
102   test_cadet_local_mq \
103   test_cadet_2_forward_new \
104   test_cadet_2_forward_new \
105   test_cadet_2_signal_new \
106   test_cadet_2_keepalive_new \
107   test_cadet_2_speed_new \
108   test_cadet_2_speed_ack_new \
109   test_cadet_2_speed_backwards_new \
110   test_cadet_2_speed_reliable_new \
111   test_cadet_2_speed_reliable_backwards_new \
112   test_cadet_5_forward_new \
113   test_cadet_5_signal_new \
114   test_cadet_5_keepalive_new \
115   test_cadet_5_speed_new \
116   test_cadet_5_speed_ack_new \
117   test_cadet_5_speed_reliable_new \
118   test_cadet_5_speed_reliable_backwards_new \
119   test_cadet_5_speed_backwards_new
120 endif
121
122 ld_cadet_test_lib = \
123   $(top_builddir)/src/util/libgnunetutil.la \
124   $(top_builddir)/src/testing/libgnunettesting.la \
125   libgnunetcadettest.la \
126   libgnunetcadet.la \
127   $(top_builddir)/src/testbed/libgnunettestbed.la \
128   $(top_builddir)/src/statistics/libgnunetstatistics.la
129
130 dep_cadet_test_lib = \
131   libgnunetcadet.la \
132   libgnunetcadettest.la \
133   $(top_builddir)/src/statistics/libgnunetstatistics.la
134
135
136 gnunet_cadet_profiler_SOURCES = \
137   gnunet-cadet-profiler.c
138 gnunet_cadet_profiler_LDADD = $(ld_cadet_test_lib)
139
140
141 test_cadet_local_mq_SOURCES = \
142   test_cadet_local_mq.c
143 test_cadet_local_mq_LDADD = \
144   libgnunetcadetnew.la \
145   $(top_builddir)/src/testing/libgnunettesting.la \
146   $(top_builddir)/src/util/libgnunetutil.la
147
148
149 libgnunetcadettestnew_la_SOURCES = \
150   cadet_test_lib_new.c cadet_test_lib_new.h
151 libgnunetcadettestnew_la_LIBADD = \
152  $(top_builddir)/src/util/libgnunetutil.la \
153  $(top_builddir)/src/testbed/libgnunettestbed.la \
154  libgnunetcadetnew.la
155
156 ld_cadet_test_lib_new = \
157   $(top_builddir)/src/util/libgnunetutil.la \
158   $(top_builddir)/src/testing/libgnunettesting.la \
159   libgnunetcadetnew.la \
160   libgnunetcadettestnew.la \
161   $(top_builddir)/src/testbed/libgnunettestbed.la \
162   $(top_builddir)/src/statistics/libgnunetstatistics.la
163 dep_cadet_test_lib_new = \
164   libgnunetcadetnew.la \
165   libgnunetcadettestnew.la \
166   $(top_builddir)/src/statistics/libgnunetstatistics.la
167
168 test_cadet_2_forward_new_SOURCES = \
169   test_cadet_new.c
170 test_cadet_2_forward_new_LDADD = $(ld_cadet_test_lib_new)
171
172 test_cadet_2_signal_new_SOURCES = \
173   test_cadet_new.c
174 test_cadet_2_signal_new_LDADD = $(ld_cadet_test_lib_new)
175
176 test_cadet_2_keepalive_new_SOURCES = \
177   test_cadet_new.c
178 test_cadet_2_keepalive_new_LDADD = $(ld_cadet_test_lib_new)
179
180 test_cadet_2_speed_new_SOURCES = \
181   test_cadet_new.c
182 test_cadet_2_speed_new_LDADD = $(ld_cadet_test_lib_new)
183
184 test_cadet_2_speed_ack_new_SOURCES = \
185   test_cadet_new.c
186 test_cadet_2_speed_ack_new_LDADD = $(ld_cadet_test_lib_new)
187
188 test_cadet_2_speed_backwards_new_SOURCES = \
189   test_cadet_new.c
190 test_cadet_2_speed_backwards_new_LDADD = $(ld_cadet_test_lib_new)
191
192 test_cadet_2_speed_reliable_new_SOURCES = \
193   test_cadet_new.c
194 test_cadet_2_speed_reliable_new_LDADD = $(ld_cadet_test_lib_new)
195
196 test_cadet_2_speed_reliable_backwards_new_SOURCES = \
197   test_cadet_new.c
198 test_cadet_2_speed_reliable_backwards_new_LDADD = $(ld_cadet_test_lib_new)
199
200
201 test_cadet_5_forward_new_SOURCES = \
202   test_cadet_new.c
203 test_cadet_5_forward_new_LDADD = $(ld_cadet_test_lib_new)
204
205 test_cadet_5_signal_new_SOURCES = \
206   test_cadet_new.c
207 test_cadet_5_signal_new_LDADD = $(ld_cadet_test_lib_new)
208
209 test_cadet_5_keepalive_new_SOURCES = \
210   test_cadet_new.c
211 test_cadet_5_keepalive_new_LDADD = $(ld_cadet_test_lib_new)
212
213 test_cadet_5_speed_new_SOURCES = \
214   test_cadet_new.c
215 test_cadet_5_speed_new_LDADD = $(ld_cadet_test_lib_new)
216
217 test_cadet_5_speed_ack_new_SOURCES = \
218   test_cadet_new.c
219 test_cadet_5_speed_ack_new_LDADD = $(ld_cadet_test_lib_new)
220
221 test_cadet_5_speed_backwards_new_SOURCES = \
222   test_cadet_new.c
223 test_cadet_5_speed_backwards_new_LDADD = $(ld_cadet_test_lib_new)
224
225 test_cadet_5_speed_reliable_new_SOURCES = \
226   test_cadet_new.c
227 test_cadet_5_speed_reliable_new_LDADD = $(ld_cadet_test_lib_new)
228
229 test_cadet_5_speed_reliable_backwards_new_SOURCES = \
230   test_cadet_new.c
231 test_cadet_5_speed_reliable_backwards_new_LDADD = $(ld_cadet_test_lib_new)
232
233
234 if ENABLE_TEST_RUN
235 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
236 TESTS = \
237  $(check_PROGRAMS)
238 endif
239
240 EXTRA_DIST = \
241   cadet.h cadet_protocol.h \
242   test_cadet.conf \
243   test_cadet_drop.conf