diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-16 20:17:46 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-10-16 20:17:46 +0200 |
commit | 4edae62ab10dddf8aec302ba96e4a2815bbc41d4 (patch) | |
tree | 41248f1cbbf2ecf54242ec25ffbdda27f9955a35 | |
parent | ba84cc9cf542b63e72d7ed2c9bd8354f88ae5f3a (diff) | |
download | gnunet-4edae62ab10dddf8aec302ba96e4a2815bbc41d4.tar.gz gnunet-4edae62ab10dddf8aec302ba96e4a2815bbc41d4.zip |
meson: add dht(u) tests
-rw-r--r-- | src/dht/meson.build | 15 | ||||
-rw-r--r-- | src/dhtu/meson.build | 11 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/dht/meson.build b/src/dht/meson.build index 02c3cb8f8..ad5b183fa 100644 --- a/src/dht/meson.build +++ b/src/dht/meson.build | |||
@@ -89,3 +89,18 @@ executable ('gnunet-service-dht', | |||
89 | install: true, | 89 | install: true, |
90 | install_dir: get_option('libdir')/'gnunet'/'libexec') | 90 | install_dir: get_option('libdir')/'gnunet'/'libexec') |
91 | 91 | ||
92 | configure_file(input : 'test_dht_api_data.conf', | ||
93 | output : 'test_dht_api_data.conf', | ||
94 | copy: true) | ||
95 | |||
96 | testdht_api = executable ('test_dht_api', | ||
97 | ['test_dht_api.c'], | ||
98 | dependencies: [libgnunetdht_dep, | ||
99 | libgnunetutil_dep, | ||
100 | libgnunettesting_dep, | ||
101 | libgnunethello_dep], | ||
102 | include_directories: [incdir, configuration_inc], | ||
103 | install: false) | ||
104 | |||
105 | test('test_dht_api', testdht_api, suite: 'dht', | ||
106 | workdir: meson.current_build_dir()) | ||
diff --git a/src/dhtu/meson.build b/src/dhtu/meson.build index b024332dd..b2525e782 100644 --- a/src/dhtu/meson.build +++ b/src/dhtu/meson.build | |||
@@ -48,3 +48,14 @@ shared_module('gnunet_plugin_dhtu_gnunet', | |||
48 | install: true, | 48 | install: true, |
49 | install_dir: get_option('libdir')/'gnunet') | 49 | install_dir: get_option('libdir')/'gnunet') |
50 | 50 | ||
51 | testdhtu_ip = executable('test_dhtu_ip', | ||
52 | ['test_dhtu_ip.c'], | ||
53 | dependencies: [libgnunetutil_dep, | ||
54 | libgnunettesting_dep], | ||
55 | include_directories: [incdir, configuration_inc], | ||
56 | install: false) | ||
57 | |||
58 | test('test_dhtu_ip', testdhtu_ip, suite: 'dhtu', | ||
59 | workdir: meson.current_build_dir()) | ||
60 | |||
61 | |||