diff options
Diffstat (limited to 'src/lib/util/meson.build')
-rw-r--r-- | src/lib/util/meson.build | 688 |
1 files changed, 688 insertions, 0 deletions
diff --git a/src/lib/util/meson.build b/src/lib/util/meson.build new file mode 100644 index 000000000..48a70cf0c --- /dev/null +++ b/src/lib/util/meson.build | |||
@@ -0,0 +1,688 @@ | |||
1 | libgnunetutil_src = ['bandwidth.c', | ||
2 | # $(BENCHMARK)', | ||
3 | 'bio.c', | ||
4 | 'buffer.c', | ||
5 | 'child_management.c', | ||
6 | 'client.c', | ||
7 | 'common_allocation.c', | ||
8 | 'common_endian.c', | ||
9 | 'common_logging.c', | ||
10 | 'compress.c', | ||
11 | 'configuration.c', | ||
12 | 'configuration_helper.c', | ||
13 | 'consttime_memcmp.c', | ||
14 | 'container_bloomfilter.c', | ||
15 | 'container_heap.c', | ||
16 | 'container_multihashmap.c', | ||
17 | 'container_multishortmap.c', | ||
18 | 'container_multiuuidmap.c', | ||
19 | 'container_multipeermap.c', | ||
20 | 'container_multihashmap32.c', | ||
21 | 'crypto_symmetric.c', | ||
22 | 'crypto_crc.c', | ||
23 | 'crypto_cs.c', | ||
24 | 'crypto_ecc.c', | ||
25 | 'crypto_ecc_gnsrecord.c', | ||
26 | 'crypto_ecc_dlog.c', | ||
27 | 'crypto_ecc_setup.c', | ||
28 | 'crypto_edx25519.c', | ||
29 | 'crypto_hash.c', | ||
30 | 'crypto_hash_file.c', | ||
31 | 'crypto_hkdf.c', | ||
32 | 'crypto_kdf.c', | ||
33 | 'crypto_mpi.c', | ||
34 | 'crypto_paillier.c', | ||
35 | 'crypto_pow.c', | ||
36 | 'crypto_random.c', | ||
37 | 'crypto_rsa.c', | ||
38 | 'disk.c', | ||
39 | 'disk.h', | ||
40 | 'dnsparser.c', | ||
41 | 'dnsstub.c', | ||
42 | 'getopt.c', | ||
43 | 'getopt_helpers.c', | ||
44 | 'helper.c', | ||
45 | 'load.c', | ||
46 | 'mst.c', | ||
47 | 'mq.c', | ||
48 | 'nc.c', | ||
49 | 'network.c', | ||
50 | 'nt.c', | ||
51 | 'op.c', | ||
52 | 'os_installation.c', | ||
53 | 'os_network.c', | ||
54 | 'os_priority.c', | ||
55 | 'peer.c', | ||
56 | 'plugin.c', | ||
57 | 'program.c', | ||
58 | 'regex.c', | ||
59 | 'resolver_api.c', | ||
60 | 'resolver.h', | ||
61 | 'scheduler.c', | ||
62 | 'service.c', | ||
63 | 'signal.c', | ||
64 | 'strings.c', | ||
65 | 'time.c', | ||
66 | 'tun.c', | ||
67 | 'uri.c', | ||
68 | 'speedup.c', | ||
69 | 'speedup.h', | ||
70 | 'proc_compat.c', | ||
71 | 'gnunet_error_codes.c'] | ||
72 | |||
73 | gnunetserviceresolver_src = ['gnunet-service-resolver.c'] | ||
74 | |||
75 | configure_file(input : 'util.conf', | ||
76 | output : 'util.conf', | ||
77 | configuration : cdata, | ||
78 | install: true, | ||
79 | install_dir: pkgcfgdir) | ||
80 | configure_file(input : 'resolver.conf.in', | ||
81 | output : 'resolver.conf', | ||
82 | configuration : cdata, | ||
83 | install: true, | ||
84 | install_dir: pkgcfgdir) | ||
85 | |||
86 | |||
87 | if get_option('monolith') | ||
88 | foreach p : libgnunetutil_src + gnunetserviceresolver_src | ||
89 | gnunet_src += 'util/' + p | ||
90 | endforeach | ||
91 | subdir_done() | ||
92 | endif | ||
93 | |||
94 | libgnunetutil = library('gnunetutil', | ||
95 | libgnunetutil_src, | ||
96 | soversion: '15', | ||
97 | version: '15.0.0', | ||
98 | dependencies: gnunetdeps, | ||
99 | include_directories: [incdir, configuration_inc], | ||
100 | install: true, | ||
101 | install_dir: get_option('libdir')) | ||
102 | libgnunetutil_dep = declare_dependency(link_with : libgnunetutil) | ||
103 | pkg.generate(libgnunetutil, url: 'https://www.gnunet.org', | ||
104 | description : 'Provides miscellaneous utility functions and API for GNUnet') | ||
105 | |||
106 | shared_module('gnunet_plugin_utiltest', | ||
107 | ['test_plugin_plug.c'], | ||
108 | dependencies: [libgnunetutil_dep], | ||
109 | include_directories: [incdir, configuration_inc], | ||
110 | install: true, | ||
111 | install_dir: get_option('libdir')/'gnunet') | ||
112 | |||
113 | executable ('gnunet-base32', | ||
114 | ['gnunet-base32.c'], | ||
115 | dependencies: [libgnunetutil_dep], | ||
116 | include_directories: [incdir, configuration_inc], | ||
117 | install: true, | ||
118 | install_dir: get_option('bindir')) | ||
119 | executable ('gnunet-config', | ||
120 | ['gnunet-config.c'], | ||
121 | dependencies: [libgnunetutil_dep], | ||
122 | include_directories: [incdir, configuration_inc], | ||
123 | install: true, | ||
124 | install_dir: get_option('bindir')) | ||
125 | executable ('gnunet-resolver', | ||
126 | ['gnunet-resolver.c'], | ||
127 | dependencies: [libgnunetutil_dep], | ||
128 | include_directories: [incdir, configuration_inc], | ||
129 | install: true, | ||
130 | install_dir: get_option('bindir')) | ||
131 | executable ('gnunet-ecc', | ||
132 | ['gnunet-ecc.c'], | ||
133 | dependencies: [libgnunetutil_dep, gcrypt_dep, m_dep], | ||
134 | include_directories: [incdir, configuration_inc], | ||
135 | install: true, | ||
136 | install_dir: get_option('bindir')) | ||
137 | executable ('gnunet-scrypt', | ||
138 | ['gnunet-scrypt.c'], | ||
139 | dependencies: [libgnunetutil_dep], | ||
140 | include_directories: [incdir, configuration_inc], | ||
141 | install: true, | ||
142 | install_dir: get_option('bindir')) | ||
143 | executable ('gnunet-uri', | ||
144 | ['gnunet-uri.c'], | ||
145 | dependencies: [libgnunetutil_dep], | ||
146 | include_directories: [incdir, configuration_inc], | ||
147 | install: true, | ||
148 | install_dir: get_option('bindir')) | ||
149 | if zbar_dep.found() | ||
150 | executable ('gnunet-qr', | ||
151 | ['gnunet-qr.c'], | ||
152 | dependencies: [zbar_dep, libgnunetutil_dep], | ||
153 | include_directories: [incdir, configuration_inc], | ||
154 | install: true, | ||
155 | install_dir: get_option('bindir')) | ||
156 | endif | ||
157 | executable ('gnunet-config-diff', | ||
158 | ['gnunet-config-diff.c'], | ||
159 | dependencies: [libgnunetutil_dep], | ||
160 | include_directories: [incdir, configuration_inc], | ||
161 | install: false) | ||
162 | |||
163 | executable ('gnunet-service-resolver', | ||
164 | gnunetserviceresolver_src, | ||
165 | dependencies: [libgnunetutil_dep], | ||
166 | include_directories: [incdir, configuration_inc], | ||
167 | install: true, | ||
168 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
169 | executable ('gnunet-timeout', | ||
170 | ['gnunet-timeout.c'], | ||
171 | dependencies: [libgnunetutil_dep], | ||
172 | include_directories: [incdir, configuration_inc], | ||
173 | install: true, | ||
174 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
175 | |||
176 | |||
177 | executable ('test_common_logging_dummy', | ||
178 | ['test_common_logging_dummy.c'], | ||
179 | dependencies: [libgnunetutil_dep], | ||
180 | include_directories: [incdir, configuration_inc], | ||
181 | install: false) | ||
182 | executable ('gnunet-crypto-tvg', | ||
183 | ['gnunet-crypto-tvg.c'], | ||
184 | dependencies: [libgnunetutil_dep, json_dep], | ||
185 | include_directories: [incdir, configuration_inc], | ||
186 | install: false) | ||
187 | |||
188 | test_bio = executable ('test_bio', | ||
189 | ['test_bio.c'], | ||
190 | dependencies: [libgnunetutil_dep], | ||
191 | include_directories: [incdir, configuration_inc], | ||
192 | install: false) | ||
193 | test('test_bio', test_bio, | ||
194 | workdir: meson.current_source_dir(), | ||
195 | suite: ['util', 'util-bio']) | ||
196 | test_child_management = executable ('test_child_management', | ||
197 | ['test_child_management.c'], | ||
198 | dependencies: [libgnunetutil_dep], | ||
199 | include_directories: [incdir, configuration_inc], | ||
200 | install: false) | ||
201 | test('test_child_management', test_child_management, | ||
202 | workdir: meson.current_source_dir(), | ||
203 | suite: ['util', 'util-child']) | ||
204 | |||
205 | # test_client.nc | ||
206 | |||
207 | testcommonalloc = executable ('test_common_allocation', | ||
208 | ['test_common_allocation.c'], | ||
209 | dependencies: [libgnunetutil_dep], | ||
210 | build_by_default: false, | ||
211 | include_directories: [incdir, configuration_inc], | ||
212 | install: false) | ||
213 | test('test_common_allocation', testcommonalloc, | ||
214 | workdir: meson.current_source_dir(), | ||
215 | suite: ['util', 'util-common']) | ||
216 | |||
217 | testcommonlog = executable ('test_common_logging', | ||
218 | ['test_common_logging.c'], | ||
219 | dependencies: [libgnunetutil_dep], | ||
220 | build_by_default: false, | ||
221 | include_directories: [incdir, configuration_inc], | ||
222 | install: false) | ||
223 | test('test_common_logging', testcommonlog, | ||
224 | workdir: meson.current_source_dir(), | ||
225 | suite: ['util', 'util-common']) | ||
226 | testcommonendian = executable ('test_common_endian', | ||
227 | ['test_common_endian.c'], | ||
228 | dependencies: [libgnunetutil_dep], | ||
229 | build_by_default: false, | ||
230 | include_directories: [incdir, configuration_inc], | ||
231 | install: false) | ||
232 | test('test_common_endian', testcommonendian, | ||
233 | workdir: meson.current_source_dir(), | ||
234 | suite: ['util', 'util-common']) | ||
235 | testconf = executable ('test_configuration', | ||
236 | ['test_configuration.c'], | ||
237 | dependencies: [libgnunetutil_dep], | ||
238 | build_by_default: false, | ||
239 | include_directories: [incdir, configuration_inc], | ||
240 | install: false) | ||
241 | test('test_configuration', testconf, | ||
242 | workdir: meson.current_source_dir(), | ||
243 | suite: ['util', 'util-configuration']) | ||
244 | testcontainerbloom = executable ('test_container_bloomfilter', | ||
245 | ['test_container_bloomfilter.c'], | ||
246 | dependencies: [libgnunetutil_dep], | ||
247 | include_directories: [incdir, configuration_inc], | ||
248 | build_by_default: false, | ||
249 | install: false) | ||
250 | test('test_container_bloomfilter', testcontainerbloom, | ||
251 | workdir: meson.current_source_dir(), | ||
252 | suite: ['util', 'util-container']) | ||
253 | |||
254 | testcontainerdll = executable ('test_container_dll', | ||
255 | ['test_container_dll.c'], | ||
256 | dependencies: [libgnunetutil_dep], | ||
257 | include_directories: [incdir, configuration_inc], | ||
258 | build_by_default: false, | ||
259 | install: false) | ||
260 | test('test_container_dll', testcontainerdll, | ||
261 | workdir: meson.current_source_dir(), | ||
262 | suite: ['util', 'util-container']) | ||
263 | |||
264 | testcontainermhm = executable ('test_container_multihashmap', | ||
265 | ['test_container_multihashmap.c'], | ||
266 | dependencies: [libgnunetutil_dep], | ||
267 | include_directories: [incdir, configuration_inc], | ||
268 | build_by_default: false, | ||
269 | install: false) | ||
270 | test('test_container_multihashmap', testcontainermhm, | ||
271 | workdir: meson.current_source_dir(), | ||
272 | suite: ['util', 'util-container']) | ||
273 | |||
274 | testcontainermhm32 = executable ('test_container_multihashmap32', | ||
275 | ['test_container_multihashmap32.c'], | ||
276 | dependencies: [libgnunetutil_dep], | ||
277 | include_directories: [incdir, configuration_inc], | ||
278 | build_by_default: false, | ||
279 | install: false) | ||
280 | test('test_container_multihashmap32', testcontainermhm32, | ||
281 | workdir: meson.current_source_dir(), | ||
282 | suite: ['util', 'util-container']) | ||
283 | |||
284 | testcontainermpm = executable ('test_container_multipeermap', | ||
285 | ['test_container_multipeermap.c'], | ||
286 | dependencies: [libgnunetutil_dep], | ||
287 | include_directories: [incdir, configuration_inc], | ||
288 | build_by_default: false, | ||
289 | install: false) | ||
290 | test('test_container_multipeermap', testcontainermpm, | ||
291 | workdir: meson.current_source_dir(), | ||
292 | suite: ['util', 'util-container']) | ||
293 | |||
294 | testcontainerheap = executable ('test_container_heap', | ||
295 | ['test_container_heap.c'], | ||
296 | dependencies: [libgnunetutil_dep], | ||
297 | include_directories: [incdir, configuration_inc], | ||
298 | build_by_default: false, | ||
299 | install: false) | ||
300 | test('test_container_heap', testcontainerheap, | ||
301 | workdir: meson.current_source_dir(), | ||
302 | suite: ['util', 'util-container']) | ||
303 | |||
304 | testcrypto_symmetric = executable ('test_crypto_symmetric', | ||
305 | ['test_crypto_symmetric.c'], | ||
306 | dependencies: [libgnunetutil_dep], | ||
307 | include_directories: [incdir, configuration_inc], | ||
308 | build_by_default: false, | ||
309 | install: false) | ||
310 | test('test_crypto_symmetric', testcrypto_symmetric, | ||
311 | workdir: meson.current_source_dir(), | ||
312 | suite: ['util', 'util-crypto']) | ||
313 | |||
314 | testcrypto_crc = executable ('test_crypto_crc', | ||
315 | ['test_crypto_crc.c'], | ||
316 | dependencies: [libgnunetutil_dep], | ||
317 | include_directories: [incdir, configuration_inc], | ||
318 | build_by_default: false, | ||
319 | install: false) | ||
320 | test('test_crypto_crc', testcrypto_crc, | ||
321 | workdir: meson.current_source_dir(), | ||
322 | suite: ['util', 'util-crypto']) | ||
323 | |||
324 | testcrypto_cs = executable ('test_crypto_cs', | ||
325 | ['test_crypto_cs.c'], | ||
326 | dependencies: [sodium_dep, libgnunetutil_dep], | ||
327 | include_directories: [incdir, configuration_inc], | ||
328 | build_by_default: false, | ||
329 | install: false) | ||
330 | test('test_crypto_cs', testcrypto_cs, | ||
331 | workdir: meson.current_source_dir(), | ||
332 | suite: ['util', 'util-crypto']) | ||
333 | |||
334 | testcrypto_ecdsa = executable ('test_crypto_ecdsa', | ||
335 | ['test_crypto_ecdsa.c'], | ||
336 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
337 | include_directories: [incdir, configuration_inc], | ||
338 | build_by_default: false, | ||
339 | install: false) | ||
340 | test('test_crypto_ecdsa', testcrypto_ecdsa, | ||
341 | workdir: meson.current_source_dir(), | ||
342 | suite: ['util', 'util-crypto']) | ||
343 | |||
344 | testcrypto_eddsa = executable ('test_crypto_eddsa', | ||
345 | ['test_crypto_eddsa.c'], | ||
346 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
347 | include_directories: [incdir, configuration_inc], | ||
348 | build_by_default: false, | ||
349 | install: false) | ||
350 | test('test_crypto_eddsa', testcrypto_eddsa, | ||
351 | workdir: meson.current_source_dir(), | ||
352 | suite: ['util', 'util-crypto']) | ||
353 | |||
354 | testcrypto_ecdh_eddsa = executable ('test_crypto_ecdh_eddsa', | ||
355 | ['test_crypto_ecdh_eddsa.c'], | ||
356 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
357 | include_directories: [incdir, configuration_inc], | ||
358 | build_by_default: false, | ||
359 | install: false) | ||
360 | test('test_crypto_ecdh_eddsa', testcrypto_ecdh_eddsa, | ||
361 | workdir: meson.current_source_dir(), | ||
362 | suite: ['util', 'util-crypto']) | ||
363 | |||
364 | testcrypto_ecdh_ecdsa = executable ('test_crypto_ecdh_ecdsa', | ||
365 | ['test_crypto_ecdh_ecdsa.c'], | ||
366 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
367 | include_directories: [incdir, configuration_inc], | ||
368 | build_by_default: false, | ||
369 | install: false) | ||
370 | test('test_crypto_ecdh_ecdsa', testcrypto_ecdh_ecdsa, | ||
371 | workdir: meson.current_source_dir(), | ||
372 | suite: ['util', 'util-crypto']) | ||
373 | |||
374 | testcrypto_edx25519 = executable ('test_crypto_edx25519', | ||
375 | ['test_crypto_edx25519.c'], | ||
376 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
377 | include_directories: [incdir, configuration_inc], | ||
378 | build_by_default: false, | ||
379 | install: false) | ||
380 | test('test_crypto_edx25519', testcrypto_edx25519, | ||
381 | workdir: meson.current_source_dir(), | ||
382 | suite: ['util', 'util-crypto']) | ||
383 | |||
384 | testcrypto_ecc_dlog = executable ('test_crypto_ecc_dlog', | ||
385 | ['test_crypto_ecc_dlog.c'], | ||
386 | dependencies: [gcrypt_dep, sodium_dep, libgnunetutil_dep], | ||
387 | include_directories: [incdir, configuration_inc], | ||
388 | build_by_default: false, | ||
389 | install: false) | ||
390 | test('test_crypto_ecc_dlog', testcrypto_ecc_dlog, | ||
391 | workdir: meson.current_source_dir(), | ||
392 | suite: ['util', 'util-crypto']) | ||
393 | |||
394 | testcrypto_hash = executable ('test_crypto_hash', | ||
395 | ['test_crypto_hash.c'], | ||
396 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
397 | include_directories: [incdir, configuration_inc], | ||
398 | build_by_default: false, | ||
399 | install: false) | ||
400 | test('test_crypto_hash', testcrypto_hash, | ||
401 | workdir: meson.current_source_dir(), | ||
402 | suite: ['util', 'util-crypto']) | ||
403 | |||
404 | testcrypto_hash_context = executable ('test_crypto_hash_context', | ||
405 | ['test_crypto_hash_context.c'], | ||
406 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
407 | include_directories: [incdir, configuration_inc], | ||
408 | build_by_default: false, | ||
409 | install: false) | ||
410 | test('test_crypto_hash_context', testcrypto_hash_context, | ||
411 | workdir: meson.current_source_dir(), | ||
412 | suite: ['util', 'util-crypto']) | ||
413 | |||
414 | testcrypto_hkdf = executable ('test_crypto_hkdf', | ||
415 | ['test_crypto_hkdf.c'], | ||
416 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
417 | include_directories: [incdir, configuration_inc], | ||
418 | build_by_default: false, | ||
419 | install: false) | ||
420 | test('test_crypto_hkdf', testcrypto_hkdf, | ||
421 | workdir: meson.current_source_dir(), | ||
422 | suite: ['util', 'util-crypto']) | ||
423 | |||
424 | testcrypto_kdf = executable ('test_crypto_kdf', | ||
425 | ['test_crypto_kdf.c'], | ||
426 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
427 | include_directories: [incdir, configuration_inc], | ||
428 | build_by_default: false, | ||
429 | install: false) | ||
430 | test('test_crypto_kdf', testcrypto_kdf, | ||
431 | workdir: meson.current_source_dir(), | ||
432 | suite: ['util', 'util-crypto']) | ||
433 | |||
434 | testcrypto_paillier = executable ('test_crypto_paillier', | ||
435 | ['test_crypto_paillier.c'], | ||
436 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
437 | include_directories: [incdir, configuration_inc], | ||
438 | build_by_default: false, | ||
439 | install: false) | ||
440 | test('test_crypto_paillier', testcrypto_paillier, | ||
441 | workdir: meson.current_source_dir(), | ||
442 | suite: ['util', 'util-crypto']) | ||
443 | |||
444 | testcrypto_random = executable ('test_crypto_random', | ||
445 | ['test_crypto_random.c'], | ||
446 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
447 | include_directories: [incdir, configuration_inc], | ||
448 | build_by_default: false, | ||
449 | install: false) | ||
450 | test('test_crypto_random', testcrypto_random, | ||
451 | workdir: meson.current_source_dir(), | ||
452 | suite: ['util', 'util-crypto']) | ||
453 | |||
454 | testcrypto_rsa = executable ('test_crypto_rsa', | ||
455 | ['test_crypto_rsa.c'], | ||
456 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
457 | include_directories: [incdir, configuration_inc], | ||
458 | build_by_default: false, | ||
459 | install: false) | ||
460 | test('test_crypto_rsa', testcrypto_rsa, | ||
461 | workdir: meson.current_source_dir(), | ||
462 | suite: ['util', 'util-crypto']) | ||
463 | |||
464 | testdisk = executable ('test_disk', | ||
465 | ['test_disk.c'], | ||
466 | dependencies: [libgnunetutil_dep], | ||
467 | include_directories: [incdir, configuration_inc], | ||
468 | build_by_default: false, | ||
469 | install: false) | ||
470 | test('test_disk', testdisk, | ||
471 | workdir: meson.current_source_dir(), | ||
472 | suite: ['util', 'util-misc']) | ||
473 | |||
474 | testgetopt = executable ('test_getopt', | ||
475 | ['test_getopt.c'], | ||
476 | dependencies: [libgnunetutil_dep], | ||
477 | include_directories: [incdir, configuration_inc], | ||
478 | build_by_default: false, | ||
479 | install: false) | ||
480 | test('test_getopt', testgetopt, | ||
481 | workdir: meson.current_source_dir(), | ||
482 | suite: ['util', 'util-misc']) | ||
483 | |||
484 | testhexcoder = executable ('test_hexcoder', | ||
485 | ['test_hexcoder.c'], | ||
486 | dependencies: [libgnunetutil_dep], | ||
487 | include_directories: [incdir, configuration_inc], | ||
488 | build_by_default: false, | ||
489 | install: false) | ||
490 | test('test_hexcoder', testhexcoder, | ||
491 | workdir: meson.current_source_dir(), | ||
492 | suite: ['util', 'util-misc']) | ||
493 | |||
494 | testmq = executable ('test_mq', | ||
495 | ['test_mq.c'], | ||
496 | dependencies: [libgnunetutil_dep], | ||
497 | include_directories: [incdir, configuration_inc], | ||
498 | build_by_default: false, | ||
499 | install: false) | ||
500 | test('test_mq', testmq, | ||
501 | workdir: meson.current_source_dir(), | ||
502 | suite: ['util', 'util-misc']) | ||
503 | |||
504 | testos_network = executable ('test_os_network', | ||
505 | ['test_os_network.c'], | ||
506 | dependencies: [libgnunetutil_dep], | ||
507 | include_directories: [incdir, configuration_inc], | ||
508 | build_by_default: false, | ||
509 | install: false) | ||
510 | test('test_os_network', testos_network, | ||
511 | workdir: meson.current_source_dir(), | ||
512 | suite: ['util', 'util-os']) | ||
513 | |||
514 | testpeer = executable ('test_peer', | ||
515 | ['test_peer.c'], | ||
516 | dependencies: [gcrypt_dep, libgnunetutil_dep], | ||
517 | include_directories: [incdir, configuration_inc], | ||
518 | build_by_default: false, | ||
519 | install: false) | ||
520 | test('test_peer', testpeer, | ||
521 | workdir: meson.current_source_dir(), | ||
522 | suite: ['util', 'util-misc']) | ||
523 | |||
524 | testplugin = executable ('test_plugin', | ||
525 | ['test_plugin.c'], | ||
526 | dependencies: [libgnunetutil_dep], | ||
527 | include_directories: [incdir, configuration_inc], | ||
528 | build_by_default: false, | ||
529 | install: false) | ||
530 | test('test_plugin', testplugin, | ||
531 | workdir: meson.current_source_dir(), | ||
532 | suite: ['util', 'util-misc']) | ||
533 | |||
534 | testprogram = executable ('test_program', | ||
535 | ['test_program.c'], | ||
536 | dependencies: [libgnunetutil_dep], | ||
537 | include_directories: [incdir, configuration_inc], | ||
538 | build_by_default: false, | ||
539 | install: false) | ||
540 | test('test_program', testprogram, | ||
541 | workdir: meson.current_source_dir(), | ||
542 | suite: ['util', 'util-misc']) | ||
543 | |||
544 | testregex = executable ('test_regex', | ||
545 | ['test_regex.c'], | ||
546 | dependencies: [libgnunetutil_dep], | ||
547 | include_directories: [incdir, configuration_inc], | ||
548 | build_by_default: false, | ||
549 | install: false) | ||
550 | test('test_regex', testregex, | ||
551 | workdir: meson.current_source_dir(), | ||
552 | suite: ['util', 'util-misc']) | ||
553 | |||
554 | # test_resolver_api.nc | ||
555 | |||
556 | testscheduler = executable ('test_scheduler', | ||
557 | ['test_scheduler.c'], | ||
558 | dependencies: [libgnunetutil_dep], | ||
559 | include_directories: [incdir, configuration_inc], | ||
560 | build_by_default: false, | ||
561 | install: false) | ||
562 | test('test_scheduler', testscheduler, | ||
563 | workdir: meson.current_source_dir(), | ||
564 | suite: ['util', 'util-scheduler']) | ||
565 | |||
566 | testscheduler_delay = executable ('test_scheduler_delay', | ||
567 | ['test_scheduler_delay.c'], | ||
568 | dependencies: [libgnunetutil_dep], | ||
569 | include_directories: [incdir, configuration_inc], | ||
570 | build_by_default: false, | ||
571 | install: false) | ||
572 | test('test_scheduler_delay', testscheduler_delay, | ||
573 | workdir: meson.current_source_dir(), | ||
574 | suite: ['util', 'util-scheduler']) | ||
575 | |||
576 | testscheduler_hogging_cancel = executable ('test_scheduler_hogging_cancel', | ||
577 | ['test_scheduler_hogging_cancel.c'], | ||
578 | dependencies: [libgnunetutil_dep], | ||
579 | include_directories: [incdir, configuration_inc], | ||
580 | build_by_default: false, | ||
581 | install: false) | ||
582 | test('test_scheduler_hogging_cancel', testscheduler_hogging_cancel, | ||
583 | workdir: meson.current_source_dir(), | ||
584 | suite: ['util', 'util-scheduler']) | ||
585 | |||
586 | testscheduler_hogging_prio = executable ('test_scheduler_hogging_priority', | ||
587 | ['test_scheduler_hogging_priority.c'], | ||
588 | dependencies: [libgnunetutil_dep], | ||
589 | include_directories: [incdir, configuration_inc], | ||
590 | build_by_default: false, | ||
591 | install: false) | ||
592 | test('test_scheduler_hogging_priority', testscheduler_hogging_prio, | ||
593 | workdir: meson.current_source_dir(), | ||
594 | suite: ['util', 'util-scheduler']) | ||
595 | |||
596 | testservice = executable ('test_service', | ||
597 | ['test_service.c'], | ||
598 | dependencies: [libgnunetutil_dep], | ||
599 | include_directories: [incdir, configuration_inc], | ||
600 | build_by_default: false, | ||
601 | install: false) | ||
602 | test('test_service', testservice, | ||
603 | workdir: meson.current_source_dir(), | ||
604 | suite: ['util', 'util-misc']) | ||
605 | |||
606 | teststrings = executable ('test_strings', | ||
607 | ['test_strings.c'], | ||
608 | dependencies: [libgnunetutil_dep], | ||
609 | include_directories: [incdir, configuration_inc], | ||
610 | build_by_default: false, | ||
611 | install: false) | ||
612 | test('test_strings', teststrings, | ||
613 | workdir: meson.current_source_dir(), | ||
614 | suite: ['util', 'util-strings']) | ||
615 | |||
616 | teststrings_todata = executable ('test_strings_to_data', | ||
617 | ['test_strings_to_data.c'], | ||
618 | dependencies: [libgnunetutil_dep], | ||
619 | include_directories: [incdir, configuration_inc], | ||
620 | build_by_default: false, | ||
621 | install: false) | ||
622 | test('test_strings_to_data', teststrings_todata, | ||
623 | workdir: meson.current_source_dir(), | ||
624 | suite: ['util', 'util-strings']) | ||
625 | |||
626 | testspeedup = executable ('test_speedup', | ||
627 | ['test_speedup.c'], | ||
628 | dependencies: [libgnunetutil_dep], | ||
629 | include_directories: [incdir, configuration_inc], | ||
630 | build_by_default: false, | ||
631 | install: false) | ||
632 | test('test_speedup', testspeedup, | ||
633 | workdir: meson.current_source_dir(), | ||
634 | suite: ['util', 'util-misc']) | ||
635 | |||
636 | testtime = executable ('test_time', | ||
637 | ['test_time.c'], | ||
638 | dependencies: [libgnunetutil_dep], | ||
639 | include_directories: [incdir, configuration_inc], | ||
640 | build_by_default: false, | ||
641 | install: false) | ||
642 | test('test_time', testtime, | ||
643 | workdir: meson.current_source_dir(), | ||
644 | suite: ['util', 'util-misc']) | ||
645 | |||
646 | testtun = executable ('test_tun', | ||
647 | ['test_tun.c'], | ||
648 | dependencies: [libgnunetutil_dep], | ||
649 | include_directories: [incdir, configuration_inc], | ||
650 | build_by_default: false, | ||
651 | install: false) | ||
652 | test('test_tun', testtun, | ||
653 | workdir: meson.current_source_dir(), | ||
654 | suite: ['util', 'util-misc']) | ||
655 | |||
656 | testuri = executable ('test_uri', | ||
657 | ['test_uri.c'], | ||
658 | dependencies: [libgnunetutil_dep], | ||
659 | include_directories: [incdir, configuration_inc], | ||
660 | build_by_default: false, | ||
661 | install: false) | ||
662 | test('test_uri', testuri, | ||
663 | workdir: meson.current_source_dir(), | ||
664 | suite: ['util', 'util-misc']) | ||
665 | |||
666 | # FIXME Benchmarks | ||
667 | |||
668 | testos_start_process = executable ('test_os_start_process', | ||
669 | ['test_os_start_process.c'], | ||
670 | dependencies: [libgnunetutil_dep], | ||
671 | include_directories: [incdir, configuration_inc], | ||
672 | build_by_default: false, | ||
673 | install: false) | ||
674 | test('test_os_start_process', testos_start_process, | ||
675 | workdir: meson.current_source_dir(), | ||
676 | suite: ['util', 'util-os']) | ||
677 | |||
678 | testcommon_logging_runtime = executable ('test_common_logging_runtime_loglevels', | ||
679 | ['test_common_logging_runtime_loglevels.c'], | ||
680 | dependencies: [libgnunetutil_dep], | ||
681 | include_directories: [incdir, configuration_inc], | ||
682 | build_by_default: false, | ||
683 | install: false) | ||
684 | test('test_common_logging_runtime_loglevels', testcommon_logging_runtime, | ||
685 | workdir: meson.current_source_dir(), | ||
686 | suite: ['util', 'util-common']) | ||
687 | |||
688 | |||