diff options
-rw-r--r-- | po/POTFILES.in | 1 | ||||
-rw-r--r-- | src/dht/Makefile.am | 24 | ||||
-rw-r--r-- | src/fs/Makefile.am | 43 | ||||
-rw-r--r-- | src/messenger/Makefile.am | 113 | ||||
-rw-r--r-- | src/messenger/test_messenger_adapt.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_async_client.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_async_p2p.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_growth.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_ring.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_server.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_sync_client.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_sync_p2p.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_worst_client.c | 49 | ||||
-rw-r--r-- | src/messenger/test_messenger_worst_p2p.c | 49 |
14 files changed, 2 insertions, 669 deletions
diff --git a/po/POTFILES.in b/po/POTFILES.in index 08315ecce..9c7913e98 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in | |||
@@ -387,7 +387,6 @@ src/testing/testing_api_cmd_system_create.c | |||
387 | src/testing/testing_api_cmd_system_destroy.c | 387 | src/testing/testing_api_cmd_system_destroy.c |
388 | src/testing/testing_api_loop.c | 388 | src/testing/testing_api_loop.c |
389 | src/testing/testing_api_traits.c | 389 | src/testing/testing_api_traits.c |
390 | src/topology/friends.c | ||
391 | src/topology/gnunet-daemon-topology.c | 390 | src/topology/gnunet-daemon-topology.c |
392 | src/transport/gnunet-communicator-quic.c | 391 | src/transport/gnunet-communicator-quic.c |
393 | src/transport/gnunet-communicator-tcp.c | 392 | src/transport/gnunet-communicator-tcp.c |
diff --git a/src/dht/Makefile.am b/src/dht/Makefile.am index f4c7efb3d..62b093c5d 100644 --- a/src/dht/Makefile.am +++ b/src/dht/Makefile.am | |||
@@ -53,9 +53,6 @@ bin_PROGRAMS = \ | |||
53 | gnunet-dht-put \ | 53 | gnunet-dht-put \ |
54 | gnunet-dht-hello | 54 | gnunet-dht-hello |
55 | 55 | ||
56 | #noinst_PROGRAMS = \ | ||
57 | # gnunet-dht-profiler | ||
58 | |||
59 | gnunet_service_dht_SOURCES = \ | 56 | gnunet_service_dht_SOURCES = \ |
60 | gnunet-service-dht.c gnunet-service-dht.h \ | 57 | gnunet-service-dht.c gnunet-service-dht.h \ |
61 | gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \ | 58 | gnunet-service-dht_datacache.c gnunet-service-dht_datacache.h \ |
@@ -108,27 +105,6 @@ gnunet_dht_monitor_LDADD = \ | |||
108 | gnunet_dht_monitor_LDFLAGS = \ | 105 | gnunet_dht_monitor_LDFLAGS = \ |
109 | $(GN_LIBINTL) | 106 | $(GN_LIBINTL) |
110 | 107 | ||
111 | # TNG | ||
112 | #gnunet_dht_profiler_SOURCES = \ | ||
113 | # gnunet_dht_profiler.c | ||
114 | #gnunet_dht_profiler_LDADD = \ | ||
115 | # libgnunetdht.la \ | ||
116 | # $(top_builddir)/src/core/libgnunetcore.la \ | ||
117 | # $(top_builddir)/src/util/libgnunetutil.la \ | ||
118 | # $(top_builddir)/src/testing/libgnunettesting.la \ | ||
119 | # $(top_builddir)/src/testbed/libgnunettestbed.la | ||
120 | #gnunet_dht_profiler_LDFLAGS = \ | ||
121 | # $(GN_LIBINTL) | ||
122 | |||
123 | #noinst_LIBRARIES = libgnunetdhttest.a | ||
124 | # | ||
125 | #libgnunetdhttest_a_SOURCES = \ | ||
126 | # dht_test_lib.c dht_test_lib.h | ||
127 | #libgnunetdhttest_a_LIBADD = \ | ||
128 | # $(top_builddir)/src/util/libgnunetutil.la \ | ||
129 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
130 | # libgnunetdht.la | ||
131 | |||
132 | if ENABLE_TEST_RUN | 108 | if ENABLE_TEST_RUN |
133 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | 109 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; |
134 | endif | 110 | endif |
diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am index 83dd8e1bf..9a7ff0011 100644 --- a/src/fs/Makefile.am +++ b/src/fs/Makefile.am | |||
@@ -21,8 +21,6 @@ lib_LTLIBRARIES = libgnunetfs.la | |||
21 | plugin_LTLIBRARIES = \ | 21 | plugin_LTLIBRARIES = \ |
22 | libgnunet_plugin_block_fs.la | 22 | libgnunet_plugin_block_fs.la |
23 | 23 | ||
24 | # noinst_LIBRARIES = libgnunetfstest.a | ||
25 | |||
26 | libgnunetfs_la_SOURCES = \ | 24 | libgnunetfs_la_SOURCES = \ |
27 | fs_api.c fs_api.h fs.h \ | 25 | fs_api.c fs_api.h fs.h \ |
28 | fs_directory.c \ | 26 | fs_directory.c \ |
@@ -59,13 +57,6 @@ libgnunetfs_la_LDFLAGS = \ | |||
59 | -version-info 3:1:1 | 57 | -version-info 3:1:1 |
60 | 58 | ||
61 | 59 | ||
62 | #libgnunetfstest_a_SOURCES = \ | ||
63 | # fs_test_lib.c fs_test_lib.h | ||
64 | # | ||
65 | #libgnunetfstest_a_LIBADD = \ | ||
66 | # $(top_builddir)/src/testing/libgnunettesting.la \ | ||
67 | # $(top_builddir)/src/testbed/libgnunettestbed.la | ||
68 | |||
69 | libexec_PROGRAMS = \ | 60 | libexec_PROGRAMS = \ |
70 | gnunet-helper-fs-publish \ | 61 | gnunet-helper-fs-publish \ |
71 | gnunet-service-fs | 62 | gnunet-service-fs |
@@ -94,15 +85,6 @@ gnunet_directory_LDADD += \ | |||
94 | -lextractor | 85 | -lextractor |
95 | endif | 86 | endif |
96 | 87 | ||
97 | # TNG | ||
98 | #gnunet_fs_profiler_SOURCES = \ | ||
99 | # gnunet-fs-profiler.c | ||
100 | #gnunet_fs_profiler_LDADD = \ | ||
101 | # $(top_builddir)/src/testing/libgnunettesting.la \ | ||
102 | # $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
103 | # $(top_builddir)/src/util/libgnunetutil.la \ | ||
104 | # $(GN_LIBINTL) | ||
105 | |||
106 | gnunet_fs_SOURCES = \ | 88 | gnunet_fs_SOURCES = \ |
107 | gnunet-fs.c | 89 | gnunet-fs.c |
108 | gnunet_fs_LDADD = \ | 90 | gnunet_fs_LDADD = \ |
@@ -219,14 +201,6 @@ libgnunet_plugin_block_fs_la_LIBADD = \ | |||
219 | libgnunet_plugin_block_fs_la_LDFLAGS = \ | 201 | libgnunet_plugin_block_fs_la_LDFLAGS = \ |
220 | $(GN_PLUGIN_LDFLAGS) | 202 | $(GN_PLUGIN_LDFLAGS) |
221 | 203 | ||
222 | #if HAVE_BENCHMARKS | ||
223 | # FS_BENCHMARKS = \ | ||
224 | # perf_gnunet_service_fs_p2p \ | ||
225 | # perf_gnunet_service_fs_p2p_dht \ | ||
226 | # perf_gnunet_service_fs_p2p_index \ | ||
227 | # perf_gnunet_service_fs_p2p_respect | ||
228 | #endif | ||
229 | |||
230 | check_PROGRAMS = \ | 204 | check_PROGRAMS = \ |
231 | test_plugin_block_fs \ | 205 | test_plugin_block_fs \ |
232 | test_fs_directory \ | 206 | test_fs_directory \ |
@@ -284,22 +258,7 @@ TESTS = test_fs_directory \ | |||
284 | test_fs_search_persistence \ | 258 | test_fs_search_persistence \ |
285 | test_fs_start_stop \ | 259 | test_fs_start_stop \ |
286 | test_fs_uri \ | 260 | test_fs_uri \ |
287 | test_fs_meta_data | 261 | test_fs_meta_data |
288 | # test_fs_download \ | ||
289 | # test_fs_download_indexed \ | ||
290 | # test_fs_download_persistence \ | ||
291 | # test_fs_list_indexed \ | ||
292 | # test_fs_publish \ | ||
293 | # test_fs_publish_persistence \ | ||
294 | # test_fs_unindex \ | ||
295 | # test_fs_unindex_persistence \ | ||
296 | # test_fs_test_lib \ | ||
297 | # test_gnunet_service_fs_migration \ | ||
298 | # test_gnunet_service_fs_p2p \ | ||
299 | # test_gnunet_service_fs_p2p_cadet \ | ||
300 | # perf_gnunet_service_fs_p2p \ | ||
301 | # perf_gnunet_service_fs_p2p_index \ | ||
302 | # perf_gnunet_service_fs_p2p_respect \ | ||
303 | # $(check_SCRIPTS) | 262 | # $(check_SCRIPTS) |
304 | endif | 263 | endif |
305 | 264 | ||
diff --git a/src/messenger/Makefile.am b/src/messenger/Makefile.am index 4a63494bc..656017548 100644 --- a/src/messenger/Makefile.am +++ b/src/messenger/Makefile.am | |||
@@ -97,18 +97,7 @@ gnunet_service_messenger_LDADD = \ | |||
97 | $(top_builddir)/src/identity/libgnunetidentity.la \ | 97 | $(top_builddir)/src/identity/libgnunetidentity.la \ |
98 | $(GN_LIBINTL) | 98 | $(GN_LIBINTL) |
99 | 99 | ||
100 | check_PROGRAMS = test_messenger_anonymous \ | 100 | check_PROGRAMS = test_messenger_anonymous |
101 | # test_messenger_api \ | ||
102 | # test_messenger_sync_client \ | ||
103 | # test_messenger_async_client \ | ||
104 | # test_messenger_worst_client \ | ||
105 | # test_messenger_sync_p2p \ | ||
106 | # test_messenger_async_p2p \ | ||
107 | # test_messenger_worst_p2p \ | ||
108 | # test_messenger_server \ | ||
109 | # test_messenger_growth \ | ||
110 | # test_messenger_ring \ | ||
111 | # test_messenger_adapt | ||
112 | 101 | ||
113 | if ENABLE_TEST_RUN | 102 | if ENABLE_TEST_RUN |
114 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; | 103 | AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; |
@@ -130,105 +119,5 @@ test_messenger_anonymous_LDADD = \ | |||
130 | $(top_builddir)/src/testing/libgnunettesting.la \ | 119 | $(top_builddir)/src/testing/libgnunettesting.la \ |
131 | $(top_builddir)/src/util/libgnunetutil.la | 120 | $(top_builddir)/src/util/libgnunetutil.la |
132 | 121 | ||
133 | test_messenger_sync_client_SOURCES = \ | ||
134 | test_messenger_sync_client.c \ | ||
135 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
136 | testing_messenger_setup.c testing_messenger_setup.h | ||
137 | test_messenger_sync_client_LDADD = \ | ||
138 | libgnunetmessenger.la \ | ||
139 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
140 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
141 | $(top_builddir)/src/util/libgnunetutil.la | ||
142 | |||
143 | test_messenger_async_client_SOURCES = \ | ||
144 | test_messenger_async_client.c \ | ||
145 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
146 | testing_messenger_setup.c testing_messenger_setup.h | ||
147 | test_messenger_async_client_LDADD = \ | ||
148 | libgnunetmessenger.la \ | ||
149 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
150 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
151 | $(top_builddir)/src/util/libgnunetutil.la | ||
152 | |||
153 | test_messenger_worst_client_SOURCES = \ | ||
154 | test_messenger_worst_client.c \ | ||
155 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
156 | testing_messenger_setup.c testing_messenger_setup.h | ||
157 | test_messenger_worst_client_LDADD = \ | ||
158 | libgnunetmessenger.la \ | ||
159 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
160 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
161 | $(top_builddir)/src/util/libgnunetutil.la | ||
162 | |||
163 | test_messenger_sync_p2p_SOURCES = \ | ||
164 | test_messenger_sync_p2p.c \ | ||
165 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
166 | testing_messenger_setup.c testing_messenger_setup.h | ||
167 | test_messenger_sync_p2p_LDADD = \ | ||
168 | libgnunetmessenger.la \ | ||
169 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
170 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
171 | $(top_builddir)/src/util/libgnunetutil.la | ||
172 | |||
173 | test_messenger_async_p2p_SOURCES = \ | ||
174 | test_messenger_async_p2p.c \ | ||
175 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
176 | testing_messenger_setup.c testing_messenger_setup.h | ||
177 | test_messenger_async_p2p_LDADD = \ | ||
178 | libgnunetmessenger.la \ | ||
179 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
180 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
181 | $(top_builddir)/src/util/libgnunetutil.la | ||
182 | |||
183 | test_messenger_worst_p2p_SOURCES = \ | ||
184 | test_messenger_worst_p2p.c \ | ||
185 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
186 | testing_messenger_setup.c testing_messenger_setup.h | ||
187 | test_messenger_worst_p2p_LDADD = \ | ||
188 | libgnunetmessenger.la \ | ||
189 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
190 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
191 | $(top_builddir)/src/util/libgnunetutil.la | ||
192 | |||
193 | test_messenger_server_SOURCES = \ | ||
194 | test_messenger_server.c \ | ||
195 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
196 | testing_messenger_setup.c testing_messenger_setup.h | ||
197 | test_messenger_server_LDADD = \ | ||
198 | libgnunetmessenger.la \ | ||
199 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
200 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
201 | $(top_builddir)/src/util/libgnunetutil.la | ||
202 | |||
203 | test_messenger_growth_SOURCES = \ | ||
204 | test_messenger_growth.c \ | ||
205 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
206 | testing_messenger_setup.c testing_messenger_setup.h | ||
207 | test_messenger_growth_LDADD = \ | ||
208 | libgnunetmessenger.la \ | ||
209 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
210 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
211 | $(top_builddir)/src/util/libgnunetutil.la | ||
212 | |||
213 | test_messenger_ring_SOURCES = \ | ||
214 | test_messenger_ring.c \ | ||
215 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
216 | testing_messenger_setup.c testing_messenger_setup.h | ||
217 | test_messenger_ring_LDADD = \ | ||
218 | libgnunetmessenger.la \ | ||
219 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
220 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
221 | $(top_builddir)/src/util/libgnunetutil.la | ||
222 | |||
223 | test_messenger_adapt_SOURCES = \ | ||
224 | test_messenger_adapt.c \ | ||
225 | testing_messenger_barrier.c testing_messenger_barrier.h \ | ||
226 | testing_messenger_setup.c testing_messenger_setup.h | ||
227 | test_messenger_adapt_LDADD = \ | ||
228 | libgnunetmessenger.la \ | ||
229 | $(top_builddir)/src/testbed/libgnunettestbed.la \ | ||
230 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
231 | $(top_builddir)/src/util/libgnunetutil.la | ||
232 | |||
233 | EXTRA_DIST = \ | 122 | EXTRA_DIST = \ |
234 | test_messenger_api.conf | 123 | test_messenger_api.conf |
diff --git a/src/messenger/test_messenger_adapt.c b/src/messenger/test_messenger_adapt.c deleted file mode 100644 index b19634152..000000000 --- a/src/messenger/test_messenger_adapt.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_adapt.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 5, 1, 2, 3, 6, 7, 8, 4 }; | ||
41 | unsigned int stages [] = { 0x21, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x21 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 8; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_adapt", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_async_client.c b/src/messenger/test_messenger_async_client.c deleted file mode 100644 index 580fc1ecb..000000000 --- a/src/messenger/test_messenger_async_client.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_async_client.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 0, 1 }; | ||
41 | unsigned int stages [] = { 0x10, 0x20 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 2; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_async_client", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_async_p2p.c b/src/messenger/test_messenger_async_p2p.c deleted file mode 100644 index 762be9d49..000000000 --- a/src/messenger/test_messenger_async_p2p.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_async_p2p.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 2, 1 }; | ||
41 | unsigned int stages [] = { 0x30, 0x30 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 2; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_async_p2p", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_growth.c b/src/messenger/test_messenger_growth.c deleted file mode 100644 index 4a73e559d..000000000 --- a/src/messenger/test_messenger_growth.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_growth.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 0, 1, 1, 1, 1, 1, 1, 1 }; | ||
41 | unsigned int stages [] = { 0x01, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 8; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_growth", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_ring.c b/src/messenger/test_messenger_ring.c deleted file mode 100644 index c6b17861e..000000000 --- a/src/messenger/test_messenger_ring.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_ring.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 8, 1, 2, 3, 4, 5, 6, 7 }; | ||
41 | unsigned int stages [] = { 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21, 0x21 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 8; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_ring", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_server.c b/src/messenger/test_messenger_server.c deleted file mode 100644 index fdd9a3684..000000000 --- a/src/messenger/test_messenger_server.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_server.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 0, 1, 1, 1, 1, 1, 1, 1 }; | ||
41 | unsigned int stages [] = { 0x01, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 8; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_server", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_sync_client.c b/src/messenger/test_messenger_sync_client.c deleted file mode 100644 index 74c9548bc..000000000 --- a/src/messenger/test_messenger_sync_client.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_sync_client.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 0, 1 }; | ||
41 | unsigned int stages [] = { 0x01, 0x20 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 2; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_sync_client", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_sync_p2p.c b/src/messenger/test_messenger_sync_p2p.c deleted file mode 100644 index 299d5ff68..000000000 --- a/src/messenger/test_messenger_sync_p2p.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_sync_p2p.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 2, 1 }; | ||
41 | unsigned int stages [] = { 0x21, 0x21 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 2; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_sync_p2p", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_worst_client.c b/src/messenger/test_messenger_worst_client.c deleted file mode 100644 index ab535b876..000000000 --- a/src/messenger/test_messenger_worst_client.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_worst_client.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 0, 1 }; | ||
41 | unsigned int stages [] = { 0x10, 0x02 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 2; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_worst_client", &cfg); | ||
49 | } | ||
diff --git a/src/messenger/test_messenger_worst_p2p.c b/src/messenger/test_messenger_worst_p2p.c deleted file mode 100644 index 0af9489a4..000000000 --- a/src/messenger/test_messenger_worst_p2p.c +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet. | ||
3 | Copyright (C) 2021 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | /** | ||
21 | * @file messenger/test_messenger_worst_p2p.c | ||
22 | * @author Tobias Frisch | ||
23 | * @brief Test for the messenger service using cadet API. | ||
24 | */ | ||
25 | |||
26 | #include "platform.h" | ||
27 | #include "testing_messenger_setup.h" | ||
28 | |||
29 | /** | ||
30 | * The main function. | ||
31 | * | ||
32 | * @param argc number of arguments from the command line | ||
33 | * @param argv command line arguments | ||
34 | * @return 0 ok, 1 on error | ||
35 | */ | ||
36 | int | ||
37 | main (int argc, | ||
38 | char **argv) | ||
39 | { | ||
40 | unsigned int doors [] = { 2, 1 }; | ||
41 | unsigned int stages [] = { 0x12, 0x12 }; | ||
42 | |||
43 | struct test_configuration cfg; | ||
44 | cfg.count = 2; | ||
45 | cfg.doors = doors; | ||
46 | cfg.stages = stages; | ||
47 | |||
48 | return GNUNET_run_messenger_setup ("test_messenger_worst_p2p", &cfg); | ||
49 | } | ||