summaryrefslogtreecommitdiff
path: root/src/testing/Makefile.am
blob: ac57659ef997588bfcb99564de588f607c2a5eb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
INCLUDES = -I$(top_srcdir)/src/include

if MINGW
  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

lib_LTLIBRARIES = libgnunettesting.la

libgnunettesting_la_SOURCES = \
  testing.c  \
  testing_group.c \
  testing_peergroup.c
libgnunettesting_la_LIBADD = $(XLIB) \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/statistics/libgnunetstatistics.la \
 $(top_builddir)/src/transport/libgnunettransport.la \
 $(top_builddir)/src/hello/libgnunethello.la \
 -lm \
 $(top_builddir)/src/util/libgnunetutil.la 

check_PROGRAMS = \
 test_testing \
 test_testing_connect \
 test_testing_reconnect \
 test_testing_group \
 test_testing_peergroup \
 test_testing_topology_stability \
 test_testing_topology_clique \
 test_testing_topology_clique_random \
 test_testing_topology_clique_minimum \
 test_testing_topology_clique_dfs \
 test_testing_topology_churn \
 test_testing_topology_line \
 test_testing_topology_blacklist \
 test_testing_group_remote \
 test_testing_topology_ring \
 test_testing_topology_2d_torus \
 test_testing_topology_small_world_ring \
 test_testing_topology_small_world_torus \
 test_testing_topology_erdos_renyi \
 test_testing_topology_internat \
 test_testing_topology_none \
 test_testing_topology_scale_free

if !DISABLE_TEST_RUN 
TESTS = \
 test_testing \
 test_testing_connect \
 test_testing_reconnect \
 test_testing_group \
 test_testing_peergroup \
 test_testing_topology_clique
# test_testing_topology_stability \
# test_testing_topology_clique_random \
# test_testing_topology_clique_minimum \
# test_testing_topology_clique_dfs \
# test_testing_topology_churn \
# test_testing_topology_line
# test_testing_topology_blacklist \
# test_testing_group_remote \
# test_testing_topology_ring \
# test_testing_topology_2d_torus \
# test_testing_topology_small_world_ring \
# test_testing_topology_small_world_torus \
# test_testing_topology_erdos_renyi \
# test_testing_topology_internat \
# test_testing_topology_scale_free
endif

test_testing_SOURCES = \
 test_testing.c
test_testing_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_connect_SOURCES = \
 test_testing_connect.c
test_testing_connect_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_reconnect_SOURCES = \
 test_testing_reconnect.c
test_testing_reconnect_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_group_SOURCES = \
 test_testing_group.c
test_testing_group_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_peergroup_SOURCES = \
 test_testing_peergroup.c
test_testing_peergroup_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la 

test_testing_topology_clique_SOURCES = \
 test_testing_topology.c
test_testing_topology_clique_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_stability_SOURCES = \
 test_testing_topology.c
test_testing_topology_stability_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_blacklist_SOURCES = \
 test_testing_topology_blacklist.c
test_testing_topology_blacklist_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la 

test_testing_topology_churn_SOURCES = \
 test_testing_topology_churn.c
test_testing_topology_churn_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la 

test_testing_topology_clique_random_SOURCES = \
 test_testing_topology.c
test_testing_topology_clique_random_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_topology_clique_minimum_SOURCES = \
 test_testing_topology.c
test_testing_topology_clique_minimum_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_clique_dfs_SOURCES = \
 test_testing_topology.c
test_testing_topology_clique_dfs_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_topology_line_SOURCES = \
 test_testing_topology.c
test_testing_topology_line_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la  


test_testing_group_remote_SOURCES = \
 test_testing_group_remote.c
test_testing_group_remote_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_topology_ring_SOURCES = \
 test_testing_topology.c
test_testing_topology_ring_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la  

test_testing_topology_2d_torus_SOURCES = \
  test_testing_topology.c
test_testing_topology_2d_torus_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la 

test_testing_topology_small_world_ring_SOURCES = \
  test_testing_topology.c
test_testing_topology_small_world_ring_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_small_world_torus_SOURCES = \
  test_testing_topology.c
test_testing_topology_small_world_torus_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_internat_SOURCES = \
  test_testing_topology.c
test_testing_topology_internat_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_erdos_renyi_SOURCES = \
  test_testing_topology.c
test_testing_topology_erdos_renyi_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_scale_free_SOURCES = \
  test_testing_topology.c
test_testing_topology_scale_free_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_topology_none_SOURCES = \
 test_testing_topology.c
test_testing_topology_none_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/core/libgnunetcore.la \
 $(top_builddir)/src/util/libgnunetutil.la


EXTRA_DIST = \
 test_testing_data.conf \
 test_testing_connect_peer1.conf \
 test_testing_connect_peer2.conf \
 test_testing_data_topology_clique.conf \
 test_testing_data_topology_clique_random.conf \
 test_testing_data_topology_clique_minimum.conf \
 test_testing_data_topology_clique_dfs.conf \
 test_testing_data_topology_ring.conf \
 test_testing_data_topology_2d_torus.conf \
 test_testing_data_topology_small_world_ring.conf \
 test_testing_data_topology_small_world_torus.conf \
 test_testing_data_topology_erdos_renyi.conf \
 test_testing_data_topology_internat.conf \
 test_testing_data_topology_scale_free.conf \
 test_testing_data_topology_blacklist.conf \
 test_testing_data_topology_churn.conf \
 test_testing_data_topology_none.conf