diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-26 14:05:20 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-26 14:05:20 +0200 |
commit | 4c8b4283a5bdc4901e3d541a3a7c593b6ee66c1e (patch) | |
tree | 402dfa83f458abb3a0833c03c28b0f9ece80d352 | |
parent | 99118ccc8214ea2ac3566bbe1e4fb81258f5b056 (diff) | |
download | gnunet-4c8b4283a5bdc4901e3d541a3a7c593b6ee66c1e.tar.gz gnunet-4c8b4283a5bdc4901e3d541a3a7c593b6ee66c1e.zip |
meson: add more tests in lib/
-rw-r--r-- | src/lib/gnsrecord/meson.build | 55 | ||||
-rw-r--r-- | src/lib/hello/meson.build | 18 | ||||
-rw-r--r-- | src/lib/json/meson.build | 26 | ||||
-rw-r--r-- | src/lib/pq/meson.build | 14 | ||||
-rw-r--r-- | src/lib/sq/meson.build | 12 |
5 files changed, 118 insertions, 7 deletions
diff --git a/src/lib/gnsrecord/meson.build b/src/lib/gnsrecord/meson.build index a35d6b66e..40eff89c1 100644 --- a/src/lib/gnsrecord/meson.build +++ b/src/lib/gnsrecord/meson.build | |||
@@ -29,3 +29,58 @@ libgnunetgnsrecordjson = library('gnunetgnsrecordjson', | |||
29 | install: true, | 29 | install: true, |
30 | install_dir: get_option('libdir')) | 30 | install_dir: get_option('libdir')) |
31 | libgnunetgnsrecordjson_dep = declare_dependency(link_with : libgnunetgnsrecordjson) | 31 | libgnunetgnsrecordjson_dep = declare_dependency(link_with : libgnunetgnsrecordjson) |
32 | |||
33 | testgnsrecrd_perf_crypto = executable ('perf_gnsrecord_crypto', | ||
34 | ['perf_gnsrecord_crypto.c'], | ||
35 | dependencies: [libgnunetutil_dep, | ||
36 | libgnunetgnsrecord_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | build_by_default: false, | ||
39 | install: false) | ||
40 | testgnsrecrd_test_crypto = executable ('test_gnsrecord_crypto', | ||
41 | ['test_gnsrecord_crypto.c'], | ||
42 | dependencies: [libgnunetutil_dep, | ||
43 | libgnunetgnsrecord_dep], | ||
44 | include_directories: [incdir, configuration_inc], | ||
45 | build_by_default: false, | ||
46 | install: false) | ||
47 | testgnsrecrd_test_serialization = executable ('test_gnsrecord_serialization', | ||
48 | ['test_gnsrecord_serialization.c'], | ||
49 | dependencies: [libgnunetutil_dep, | ||
50 | libgnunetgnsrecord_dep], | ||
51 | include_directories: [incdir, configuration_inc], | ||
52 | build_by_default: false, | ||
53 | install: false) | ||
54 | testgnsrecrd_test_tvs = executable ('test_gnsrecord_testvectors', | ||
55 | ['test_gnsrecord_testvectors.c'], | ||
56 | dependencies: [libgnunetutil_dep, | ||
57 | libgnunetgnsrecord_dep], | ||
58 | include_directories: [incdir, configuration_inc], | ||
59 | build_by_default: false, | ||
60 | install: false) | ||
61 | testgnsrecrd_test_exp = executable ('test_gnsrecord_block_expiration', | ||
62 | ['test_gnsrecord_block_expiration.c'], | ||
63 | dependencies: [libgnunetutil_dep, | ||
64 | libgnunetgnsrecord_dep], | ||
65 | include_directories: [incdir, configuration_inc], | ||
66 | build_by_default: false, | ||
67 | install: false) | ||
68 | |||
69 | test('perf_gnsrecord_crypto', testgnsrecrd_perf_crypto, | ||
70 | workdir: meson.current_build_dir(), | ||
71 | suite: ['gnsrecord']) | ||
72 | test('test_gnsrecord_crypto', testgnsrecrd_test_crypto, | ||
73 | workdir: meson.current_build_dir(), | ||
74 | suite: ['gnsrecord']) | ||
75 | test('test_gnsrecord_serialization', testgnsrecrd_test_serialization, | ||
76 | workdir: meson.current_build_dir(), | ||
77 | suite: ['gnsrecord']) | ||
78 | test('test_gnsrecord_block_expiration', testgnsrecrd_test_exp, | ||
79 | workdir: meson.current_build_dir(), | ||
80 | suite: ['gnsrecord']) | ||
81 | test('test_gnsrecord_serialization', testgnsrecrd_test_serialization, | ||
82 | workdir: meson.current_build_dir(), | ||
83 | suite: ['gnsrecord']) | ||
84 | test('test_gnsrecord_testvectors', testgnsrecrd_test_tvs, | ||
85 | workdir: meson.current_build_dir(), | ||
86 | suite: ['gnsrecord']) | ||
diff --git a/src/lib/hello/meson.build b/src/lib/hello/meson.build index 30e0f4c9c..caf70e4a7 100644 --- a/src/lib/hello/meson.build +++ b/src/lib/hello/meson.build | |||
@@ -13,11 +13,15 @@ pkg.generate(libgnunethello, url: 'https://www.gnunet.org', | |||
13 | description : 'Helper library for handling GNUnet HELLO messages') | 13 | description : 'Helper library for handling GNUnet HELLO messages') |
14 | 14 | ||
15 | 15 | ||
16 | # TNG | 16 | test_hello_uri = executable ('test_hello_uri', |
17 | #executable ('gnunet-hello', | 17 | ['test_hello-uri.c'], |
18 | # ['gnunet-hello.c'], | 18 | dependencies: [libgnunethello_dep, |
19 | # dependencies: [libgnunethello_dep, libgnunetutil_dep], | 19 | libgnunetutil_dep, |
20 | # include_directories: [incdir, configuration_inc], | 20 | gcrypt_dep], |
21 | # install: true, | 21 | include_directories: [incdir, configuration_inc], |
22 | # install_dir: get_option('bindir')) | 22 | build_by_default: false, |
23 | install: false) | ||
23 | 24 | ||
25 | test('test_hello_uri', test_hello_uri, | ||
26 | workdir: meson.current_build_dir(), | ||
27 | suite: ['hello']) | ||
diff --git a/src/lib/json/meson.build b/src/lib/json/meson.build index 804b2516f..d4c3b4528 100644 --- a/src/lib/json/meson.build +++ b/src/lib/json/meson.build | |||
@@ -16,3 +16,29 @@ libgnunetjson_dep = declare_dependency(link_with : libgnunetjson) | |||
16 | pkg.generate(libgnunetjson, url: 'https://www.gnunet.org', | 16 | pkg.generate(libgnunetjson, url: 'https://www.gnunet.org', |
17 | description : 'Library for JSON de/serialization') | 17 | description : 'Library for JSON de/serialization') |
18 | 18 | ||
19 | testjson = executable ('test_json', | ||
20 | ['test_json.c'], | ||
21 | dependencies: [libgnunetutil_dep, | ||
22 | json_dep, | ||
23 | libgnunetjson_dep], | ||
24 | include_directories: [incdir, configuration_inc], | ||
25 | build_by_default: false, | ||
26 | install: false) | ||
27 | testjson_mhd = executable ('test_json_mhd', | ||
28 | ['test_json_mhd.c'], | ||
29 | dependencies: [libgnunetutil_dep, | ||
30 | json_dep, | ||
31 | mhd_dep, | ||
32 | curl_dep, | ||
33 | zlib_dep, | ||
34 | libgnunetjson_dep], | ||
35 | include_directories: [incdir, configuration_inc], | ||
36 | build_by_default: false, | ||
37 | install: false) | ||
38 | test('test_json', testjson, | ||
39 | workdir: meson.current_build_dir(), | ||
40 | suite: ['json']) | ||
41 | test('test_json_mhd', testjson_mhd, | ||
42 | workdir: meson.current_build_dir(), | ||
43 | suite: ['json']) | ||
44 | |||
diff --git a/src/lib/pq/meson.build b/src/lib/pq/meson.build index 5b4372b70..b94cd012f 100644 --- a/src/lib/pq/meson.build +++ b/src/lib/pq/meson.build | |||
@@ -16,3 +16,17 @@ libgnunetpq = library('gnunetpq', | |||
16 | install: true, | 16 | install: true, |
17 | install_dir: get_option('libdir')) | 17 | install_dir: get_option('libdir')) |
18 | libgnunetpq_dep = declare_dependency(link_with : libgnunetpq) | 18 | libgnunetpq_dep = declare_dependency(link_with : libgnunetpq) |
19 | |||
20 | testpq = executable ('test_pq', | ||
21 | ['test_pq.c'], | ||
22 | dependencies: [libgnunetutil_dep, | ||
23 | pq_dep, | ||
24 | libgnunetpq_dep], | ||
25 | include_directories: [incdir, configuration_inc], | ||
26 | build_by_default: false, | ||
27 | install: false) | ||
28 | test('test_pq', testpq, | ||
29 | workdir: meson.current_build_dir(), | ||
30 | suite: ['pq']) | ||
31 | |||
32 | |||
diff --git a/src/lib/sq/meson.build b/src/lib/sq/meson.build index dffda7872..69d372cac 100644 --- a/src/lib/sq/meson.build +++ b/src/lib/sq/meson.build | |||
@@ -15,4 +15,16 @@ libgnunetsq = library('gnunetsq', | |||
15 | pkg.generate(libgnunetsq, url: 'https://www.gnunet.org', | 15 | pkg.generate(libgnunetsq, url: 'https://www.gnunet.org', |
16 | description : 'Provides API for accessing the SQ service') | 16 | description : 'Provides API for accessing the SQ service') |
17 | libgnunetsq_dep = declare_dependency(link_with : libgnunetsq) | 17 | libgnunetsq_dep = declare_dependency(link_with : libgnunetsq) |
18 | testsq = executable ('test_sq', | ||
19 | ['test_sq.c'], | ||
20 | dependencies: [libgnunetutil_dep, | ||
21 | sqlite_dep, | ||
22 | libgnunetsq_dep], | ||
23 | include_directories: [incdir, configuration_inc], | ||
24 | build_by_default: false, | ||
25 | install: false) | ||
26 | test('test_sq', testsq, | ||
27 | workdir: meson.current_build_dir(), | ||
28 | suite: ['sq']) | ||
29 | |||
18 | 30 | ||