diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-05 17:46:59 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-05 17:46:59 +0900 |
commit | 5abbc294229cca582d0b104b86be534de2be66ea (patch) | |
tree | 87f960b8a17efc1c20e0c238f2be183a5356f95f /src | |
parent | 1d670b15e2367b1e8668f4f4d81d73f540580e2f (diff) | |
download | gnunet-5abbc294229cca582d0b104b86be534de2be66ea.tar.gz gnunet-5abbc294229cca582d0b104b86be534de2be66ea.zip |
-fix test ftbfs
Diffstat (limited to 'src')
42 files changed, 59 insertions, 111 deletions
diff --git a/src/arm/test_gnunet_service_arm.c b/src/arm/test_gnunet_service_arm.c index 90fb8bfa0..df4ad95c2 100644 --- a/src/arm/test_gnunet_service_arm.c +++ b/src/arm/test_gnunet_service_arm.c | |||
@@ -26,8 +26,7 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_arm_service.h" | 27 | #include "gnunet_arm_service.h" |
28 | #include "gnunet_resolver_service.h" | 28 | #include "gnunet_resolver_service.h" |
29 | #include "gnunet_os_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_program_lib.h" | ||
31 | 30 | ||
32 | /** | 31 | /** |
33 | * Timeout for starting services, very short because of the strange way start works | 32 | * Timeout for starting services, very short because of the strange way start works |
diff --git a/src/fs/test_fs_directory.c b/src/fs/test_fs_directory.c index f1f86fbf7..f5121a3e7 100644 --- a/src/fs/test_fs_directory.c +++ b/src/fs/test_fs_directory.c | |||
@@ -53,7 +53,7 @@ processor (void *cls, const char *filename, const struct GNUNET_FS_Uri *uri, | |||
53 | return; /* ignore directory's meta data */ | 53 | return; /* ignore directory's meta data */ |
54 | for (i = 0; i < p->max; i++) | 54 | for (i = 0; i < p->max; i++) |
55 | { | 55 | { |
56 | if (GNUNET_CONTAINER_meta_data_test_equal (p->md[i], md) && | 56 | if (GNUNET_FS_meta_data_test_equal (p->md[i], md) && |
57 | GNUNET_FS_uri_test_equal (p->uri[i], uri)) | 57 | GNUNET_FS_uri_test_equal (p->uri[i], uri)) |
58 | { | 58 | { |
59 | p->pos++; | 59 | p->pos++; |
@@ -86,28 +86,28 @@ testDirectory (unsigned int i) | |||
86 | cls.max = i; | 86 | cls.max = i; |
87 | uris = GNUNET_malloc (sizeof(struct GNUNET_FS_Uri *) * i); | 87 | uris = GNUNET_malloc (sizeof(struct GNUNET_FS_Uri *) * i); |
88 | mds = GNUNET_malloc (sizeof(struct GNUNET_FS_MetaData *) * i); | 88 | mds = GNUNET_malloc (sizeof(struct GNUNET_FS_MetaData *) * i); |
89 | meta = GNUNET_CONTAINER_meta_data_create (); | 89 | meta = GNUNET_FS_meta_data_create (); |
90 | GNUNET_CONTAINER_meta_data_insert (meta, "<test>", EXTRACTOR_METATYPE_TITLE, | 90 | GNUNET_FS_meta_data_insert (meta, "<test>", EXTRACTOR_METATYPE_TITLE, |
91 | EXTRACTOR_METAFORMAT_UTF8, "text/plain", | 91 | EXTRACTOR_METAFORMAT_UTF8, "text/plain", |
92 | "A title", strlen ("A title") + 1); | 92 | "A title", strlen ("A title") + 1); |
93 | GNUNET_CONTAINER_meta_data_insert (meta, "<test>", | 93 | GNUNET_FS_meta_data_insert (meta, "<test>", |
94 | EXTRACTOR_METATYPE_AUTHOR_NAME, | 94 | EXTRACTOR_METATYPE_AUTHOR_NAME, |
95 | EXTRACTOR_METAFORMAT_UTF8, "text/plain", | 95 | EXTRACTOR_METAFORMAT_UTF8, "text/plain", |
96 | "An author", strlen ("An author") + 1); | 96 | "An author", strlen ("An author") + 1); |
97 | for (p = 0; p < i; p++) | 97 | for (p = 0; p < i; p++) |
98 | { | 98 | { |
99 | mds[p] = GNUNET_CONTAINER_meta_data_create (); | 99 | mds[p] = GNUNET_FS_meta_data_create (); |
100 | for (q = 0; q <= p; q++) | 100 | for (q = 0; q <= p; q++) |
101 | { | 101 | { |
102 | GNUNET_snprintf (txt, sizeof(txt), "%u -- %u\n", p, q); | 102 | GNUNET_snprintf (txt, sizeof(txt), "%u -- %u\n", p, q); |
103 | GNUNET_CONTAINER_meta_data_insert (mds[p], "<test>", | 103 | GNUNET_FS_meta_data_insert (mds[p], "<test>", |
104 | #if HAVE_EXTRACTOR_H && HAVE_LIBEXTRACTOR | 104 | #if HAVE_EXTRACTOR_H && HAVE_LIBEXTRACTOR |
105 | q % EXTRACTOR_metatype_get_max (), | 105 | q % EXTRACTOR_metatype_get_max (), |
106 | #else | 106 | #else |
107 | q % 128, | 107 | q % 128, |
108 | #endif | 108 | #endif |
109 | EXTRACTOR_METAFORMAT_UTF8, | 109 | EXTRACTOR_METAFORMAT_UTF8, |
110 | "text/plain", txt, strlen (txt) + 1); | 110 | "text/plain", txt, strlen (txt) + 1); |
111 | } | 111 | } |
112 | GNUNET_snprintf (uri, sizeof(uri), | 112 | GNUNET_snprintf (uri, sizeof(uri), |
113 | "gnunet://fs/chk/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820.RNVVVVOOLCLK065B5D04HTNVNSIB2AI022RG8200HSLK1CO1000ATQ98824DMA2032LIMG50CG0K057NVUVG200000H000004400000.%u", | 113 | "gnunet://fs/chk/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820.RNVVVVOOLCLK065B5D04HTNVNSIB2AI022RG8200HSLK1CO1000ATQ98824DMA2032LIMG50CG0K057NVUVG200000H000004400000.%u", |
@@ -116,16 +116,16 @@ testDirectory (unsigned int i) | |||
116 | uris[p] = GNUNET_FS_uri_parse (uri, &emsg); | 116 | uris[p] = GNUNET_FS_uri_parse (uri, &emsg); |
117 | if (uris[p] == NULL) | 117 | if (uris[p] == NULL) |
118 | { | 118 | { |
119 | GNUNET_CONTAINER_meta_data_destroy (mds[p]); | 119 | GNUNET_FS_meta_data_destroy (mds[p]); |
120 | while (--p > 0) | 120 | while (--p > 0) |
121 | { | 121 | { |
122 | GNUNET_CONTAINER_meta_data_destroy (mds[p]); | 122 | GNUNET_FS_meta_data_destroy (mds[p]); |
123 | GNUNET_FS_uri_destroy (uris[p]); | 123 | GNUNET_FS_uri_destroy (uris[p]); |
124 | } | 124 | } |
125 | GNUNET_free (mds); | 125 | GNUNET_free (mds); |
126 | GNUNET_free (uris); | 126 | GNUNET_free (uris); |
127 | GNUNET_free (emsg); | 127 | GNUNET_free (emsg); |
128 | GNUNET_CONTAINER_meta_data_destroy (meta); | 128 | GNUNET_FS_meta_data_destroy (meta); |
129 | ABORT (); /* error in testcase */ | 129 | ABORT (); /* error in testcase */ |
130 | } | 130 | } |
131 | GNUNET_assert (emsg == NULL); | 131 | GNUNET_assert (emsg == NULL); |
@@ -150,10 +150,10 @@ testDirectory (unsigned int i) | |||
150 | GNUNET_assert (cls.pos == i); | 150 | GNUNET_assert (cls.pos == i); |
151 | } | 151 | } |
152 | GNUNET_free (data); | 152 | GNUNET_free (data); |
153 | GNUNET_CONTAINER_meta_data_destroy (meta); | 153 | GNUNET_FS_meta_data_destroy (meta); |
154 | for (p = 0; p < i; p++) | 154 | for (p = 0; p < i; p++) |
155 | { | 155 | { |
156 | GNUNET_CONTAINER_meta_data_destroy (mds[p]); | 156 | GNUNET_FS_meta_data_destroy (mds[p]); |
157 | GNUNET_FS_uri_destroy (uris[p]); | 157 | GNUNET_FS_uri_destroy (uris[p]); |
158 | } | 158 | } |
159 | GNUNET_free (uris); | 159 | GNUNET_free (uris); |
diff --git a/src/fs/test_fs_download.c b/src/fs/test_fs_download.c index e8011f1e4..fc6b32c0f 100644 --- a/src/fs/test_fs_download.c +++ b/src/fs/test_fs_download.c | |||
@@ -286,7 +286,7 @@ run (void *cls, | |||
286 | buf = GNUNET_malloc (FILESIZE); | 286 | buf = GNUNET_malloc (FILESIZE); |
287 | for (i = 0; i < FILESIZE; i++) | 287 | for (i = 0; i < FILESIZE; i++) |
288 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); | 288 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); |
289 | meta = GNUNET_CONTAINER_meta_data_create (); | 289 | meta = GNUNET_FS_meta_data_create (); |
290 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 290 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
291 | bo.content_priority = 42; | 291 | bo.content_priority = 42; |
292 | bo.anonymity_level = anonymity_level; | 292 | bo.anonymity_level = anonymity_level; |
@@ -322,7 +322,7 @@ run (void *cls, | |||
322 | indexed = GNUNET_NO; | 322 | indexed = GNUNET_NO; |
323 | } | 323 | } |
324 | GNUNET_FS_uri_destroy (kuri); | 324 | GNUNET_FS_uri_destroy (kuri); |
325 | GNUNET_CONTAINER_meta_data_destroy (meta); | 325 | GNUNET_FS_meta_data_destroy (meta); |
326 | GNUNET_assert (NULL != fi); | 326 | GNUNET_assert (NULL != fi); |
327 | timeout_kill = | 327 | timeout_kill = |
328 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &timeout_kill_task, NULL); | 328 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &timeout_kill_task, NULL); |
diff --git a/src/fs/test_fs_download_persistence.c b/src/fs/test_fs_download_persistence.c index c77d9277e..b66fefd6b 100644 --- a/src/fs/test_fs_download_persistence.c +++ b/src/fs/test_fs_download_persistence.c | |||
@@ -315,7 +315,7 @@ run (void *cls, | |||
315 | buf = GNUNET_malloc (FILESIZE); | 315 | buf = GNUNET_malloc (FILESIZE); |
316 | for (i = 0; i < FILESIZE; i++) | 316 | for (i = 0; i < FILESIZE; i++) |
317 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); | 317 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); |
318 | meta = GNUNET_CONTAINER_meta_data_create (); | 318 | meta = GNUNET_FS_meta_data_create (); |
319 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 319 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
320 | bo.content_priority = 42; | 320 | bo.content_priority = 42; |
321 | bo.anonymity_level = 1; | 321 | bo.anonymity_level = 1; |
@@ -325,7 +325,7 @@ run (void *cls, | |||
325 | FILESIZE, buf, kuri, meta, | 325 | FILESIZE, buf, kuri, meta, |
326 | GNUNET_NO, &bo); | 326 | GNUNET_NO, &bo); |
327 | GNUNET_FS_uri_destroy (kuri); | 327 | GNUNET_FS_uri_destroy (kuri); |
328 | GNUNET_CONTAINER_meta_data_destroy (meta); | 328 | GNUNET_FS_meta_data_destroy (meta); |
329 | GNUNET_assert (NULL != fi); | 329 | GNUNET_assert (NULL != fi); |
330 | timeout_kill = | 330 | timeout_kill = |
331 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &timeout_kill_task, NULL); | 331 | GNUNET_SCHEDULER_add_delayed (TIMEOUT, &timeout_kill_task, NULL); |
diff --git a/src/fs/test_fs_file_information.c b/src/fs/test_fs_file_information.c index fb9ddaa3d..15380bfc4 100644 --- a/src/fs/test_fs_file_information.c +++ b/src/fs/test_fs_file_information.c | |||
@@ -100,7 +100,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
100 | | GNUNET_DISK_PERM_USER_WRITE)); | 100 | | GNUNET_DISK_PERM_USER_WRITE)); |
101 | GNUNET_free (buf); | 101 | GNUNET_free (buf); |
102 | 102 | ||
103 | meta = GNUNET_CONTAINER_meta_data_create (); | 103 | meta = GNUNET_FS_meta_data_create (); |
104 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 104 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
105 | bo.content_priority = 42; | 105 | bo.content_priority = 42; |
106 | bo.anonymity_level = 1; | 106 | bo.anonymity_level = 1; |
@@ -125,7 +125,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
125 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); | 125 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); |
126 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); | 126 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); |
127 | GNUNET_FS_uri_destroy (kuri); | 127 | GNUNET_FS_uri_destroy (kuri); |
128 | GNUNET_CONTAINER_meta_data_destroy (meta); | 128 | GNUNET_FS_meta_data_destroy (meta); |
129 | GNUNET_assert (NULL != fidir); | 129 | GNUNET_assert (NULL != fidir); |
130 | /* FIXME: test more of API! */ | 130 | /* FIXME: test more of API! */ |
131 | GNUNET_FS_file_information_destroy (fidir, &mycleaner, NULL); | 131 | GNUNET_FS_file_information_destroy (fidir, &mycleaner, NULL); |
diff --git a/src/fs/test_fs_list_indexed.c b/src/fs/test_fs_list_indexed.c index 2f0c32756..7e06c47f5 100644 --- a/src/fs/test_fs_list_indexed.c +++ b/src/fs/test_fs_list_indexed.c | |||
@@ -216,7 +216,7 @@ run (void *cls, | |||
216 | | GNUNET_DISK_PERM_USER_WRITE)); | 216 | | GNUNET_DISK_PERM_USER_WRITE)); |
217 | GNUNET_free (buf); | 217 | GNUNET_free (buf); |
218 | 218 | ||
219 | meta = GNUNET_CONTAINER_meta_data_create (); | 219 | meta = GNUNET_FS_meta_data_create (); |
220 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 220 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
221 | bo.content_priority = 42; | 221 | bo.content_priority = 42; |
222 | bo.anonymity_level = 1; | 222 | bo.anonymity_level = 1; |
@@ -241,7 +241,7 @@ run (void *cls, | |||
241 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); | 241 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); |
242 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); | 242 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); |
243 | GNUNET_FS_uri_destroy (kuri); | 243 | GNUNET_FS_uri_destroy (kuri); |
244 | GNUNET_CONTAINER_meta_data_destroy (meta); | 244 | GNUNET_FS_meta_data_destroy (meta); |
245 | GNUNET_assert (NULL != fidir); | 245 | GNUNET_assert (NULL != fidir); |
246 | start = GNUNET_TIME_absolute_get (); | 246 | start = GNUNET_TIME_absolute_get (); |
247 | publish = | 247 | publish = |
diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index 3544b825e..85d489598 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c | |||
@@ -218,7 +218,7 @@ sks_cont (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
218 | GNUNET_FS_stop (fs); | 218 | GNUNET_FS_stop (fs); |
219 | return; | 219 | return; |
220 | } | 220 | } |
221 | meta = GNUNET_CONTAINER_meta_data_create (); | 221 | meta = GNUNET_FS_meta_data_create (); |
222 | msg = NULL; | 222 | msg = NULL; |
223 | ksk_uri = GNUNET_FS_uri_parse ("gnunet://fs/ksk/ns-search", &msg); | 223 | ksk_uri = GNUNET_FS_uri_parse ("gnunet://fs/ksk/ns-search", &msg); |
224 | GNUNET_assert (NULL == msg); | 224 | GNUNET_assert (NULL == msg); |
@@ -231,7 +231,7 @@ sks_cont (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
231 | GNUNET_FS_publish_ksk (fs, ksk_uri, meta, uri, &bo, | 231 | GNUNET_FS_publish_ksk (fs, ksk_uri, meta, uri, &bo, |
232 | GNUNET_FS_PUBLISH_OPTION_NONE, &publish_cont, NULL); | 232 | GNUNET_FS_PUBLISH_OPTION_NONE, &publish_cont, NULL); |
233 | GNUNET_FS_uri_destroy (ksk_uri); | 233 | GNUNET_FS_uri_destroy (ksk_uri); |
234 | GNUNET_CONTAINER_meta_data_destroy (meta); | 234 | GNUNET_FS_meta_data_destroy (meta); |
235 | } | 235 | } |
236 | 236 | ||
237 | 237 | ||
@@ -250,7 +250,7 @@ adv_cont (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
250 | return; | 250 | return; |
251 | } | 251 | } |
252 | GNUNET_CRYPTO_ecdsa_key_create (&ns); | 252 | GNUNET_CRYPTO_ecdsa_key_create (&ns); |
253 | meta = GNUNET_CONTAINER_meta_data_create (); | 253 | meta = GNUNET_FS_meta_data_create (); |
254 | sks_expect_uri = GNUNET_FS_uri_dup (uri); | 254 | sks_expect_uri = GNUNET_FS_uri_dup (uri); |
255 | bo.content_priority = 1; | 255 | bo.content_priority = 1; |
256 | bo.anonymity_level = 1; | 256 | bo.anonymity_level = 1; |
@@ -262,7 +262,7 @@ adv_cont (void *cls, const struct GNUNET_FS_Uri *uri, const char *emsg) | |||
262 | GNUNET_FS_publish_sks (fs, | 262 | GNUNET_FS_publish_sks (fs, |
263 | &ns, "this", "next", meta, uri, | 263 | &ns, "this", "next", meta, uri, |
264 | &bo, GNUNET_FS_PUBLISH_OPTION_NONE, &sks_cont, NULL); | 264 | &bo, GNUNET_FS_PUBLISH_OPTION_NONE, &sks_cont, NULL); |
265 | GNUNET_CONTAINER_meta_data_destroy (meta); | 265 | GNUNET_FS_meta_data_destroy (meta); |
266 | } | 266 | } |
267 | 267 | ||
268 | 268 | ||
@@ -274,7 +274,7 @@ testNamespace (void) | |||
274 | struct GNUNET_FS_Uri *ksk_uri; | 274 | struct GNUNET_FS_Uri *ksk_uri; |
275 | struct GNUNET_FS_Uri *sks_uri; | 275 | struct GNUNET_FS_Uri *sks_uri; |
276 | 276 | ||
277 | meta = GNUNET_CONTAINER_meta_data_create (); | 277 | meta = GNUNET_FS_meta_data_create (); |
278 | ksk_uri = GNUNET_FS_uri_parse ("gnunet://fs/ksk/testnsa", NULL); | 278 | ksk_uri = GNUNET_FS_uri_parse ("gnunet://fs/ksk/testnsa", NULL); |
279 | bo.content_priority = 1; | 279 | bo.content_priority = 1; |
280 | bo.anonymity_level = 1; | 280 | bo.anonymity_level = 1; |
@@ -291,7 +291,7 @@ testNamespace (void) | |||
291 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, &do_timeout, | 291 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, &do_timeout, |
292 | NULL); | 292 | NULL); |
293 | GNUNET_FS_uri_destroy (ksk_uri); | 293 | GNUNET_FS_uri_destroy (ksk_uri); |
294 | GNUNET_CONTAINER_meta_data_destroy (meta); | 294 | GNUNET_FS_meta_data_destroy (meta); |
295 | } | 295 | } |
296 | 296 | ||
297 | 297 | ||
diff --git a/src/fs/test_fs_namespace_list_updateable.c b/src/fs/test_fs_namespace_list_updateable.c index 54f6c9a66..d883b7bea 100644 --- a/src/fs/test_fs_namespace_list_updateable.c +++ b/src/fs/test_fs_namespace_list_updateable.c | |||
@@ -59,7 +59,7 @@ do_shutdown () | |||
59 | if (uri_next != NULL) | 59 | if (uri_next != NULL) |
60 | GNUNET_FS_uri_destroy (uri_next); | 60 | GNUNET_FS_uri_destroy (uri_next); |
61 | if (meta != NULL) | 61 | if (meta != NULL) |
62 | GNUNET_CONTAINER_meta_data_destroy (meta); | 62 | GNUNET_FS_meta_data_destroy (meta); |
63 | } | 63 | } |
64 | 64 | ||
65 | 65 | ||
@@ -131,7 +131,7 @@ testNamespace (void) | |||
131 | bo.replication_level = 0; | 131 | bo.replication_level = 0; |
132 | bo.expiration_time = | 132 | bo.expiration_time = |
133 | GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES); | 133 | GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES); |
134 | meta = GNUNET_CONTAINER_meta_data_create (); | 134 | meta = GNUNET_FS_meta_data_create (); |
135 | 135 | ||
136 | uri_this = | 136 | uri_this = |
137 | GNUNET_FS_uri_parse | 137 | GNUNET_FS_uri_parse |
diff --git a/src/fs/test_fs_publish.c b/src/fs/test_fs_publish.c index 687ada0f1..0e379bc29 100644 --- a/src/fs/test_fs_publish.c +++ b/src/fs/test_fs_publish.c | |||
@@ -202,7 +202,7 @@ run (void *cls, | |||
202 | | GNUNET_DISK_PERM_USER_WRITE)); | 202 | | GNUNET_DISK_PERM_USER_WRITE)); |
203 | GNUNET_free (buf); | 203 | GNUNET_free (buf); |
204 | 204 | ||
205 | meta = GNUNET_CONTAINER_meta_data_create (); | 205 | meta = GNUNET_FS_meta_data_create (); |
206 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 206 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
207 | bo.content_priority = 42; | 207 | bo.content_priority = 42; |
208 | bo.anonymity_level = 1; | 208 | bo.anonymity_level = 1; |
@@ -227,7 +227,7 @@ run (void *cls, | |||
227 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); | 227 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); |
228 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); | 228 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); |
229 | GNUNET_FS_uri_destroy (kuri); | 229 | GNUNET_FS_uri_destroy (kuri); |
230 | GNUNET_CONTAINER_meta_data_destroy (meta); | 230 | GNUNET_FS_meta_data_destroy (meta); |
231 | GNUNET_assert (NULL != fidir); | 231 | GNUNET_assert (NULL != fidir); |
232 | start = GNUNET_TIME_absolute_get (); | 232 | start = GNUNET_TIME_absolute_get (); |
233 | publish = | 233 | publish = |
diff --git a/src/fs/test_fs_publish_persistence.c b/src/fs/test_fs_publish_persistence.c index d92006853..e1563f448 100644 --- a/src/fs/test_fs_publish_persistence.c +++ b/src/fs/test_fs_publish_persistence.c | |||
@@ -276,7 +276,7 @@ run (void *cls, | |||
276 | | GNUNET_DISK_PERM_USER_WRITE)); | 276 | | GNUNET_DISK_PERM_USER_WRITE)); |
277 | GNUNET_free (buf); | 277 | GNUNET_free (buf); |
278 | 278 | ||
279 | meta = GNUNET_CONTAINER_meta_data_create (); | 279 | meta = GNUNET_FS_meta_data_create (); |
280 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 280 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
281 | bo.content_priority = 42; | 281 | bo.content_priority = 42; |
282 | bo.anonymity_level = 1; | 282 | bo.anonymity_level = 1; |
@@ -299,7 +299,7 @@ run (void *cls, | |||
299 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); | 299 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi1)); |
300 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); | 300 | GNUNET_assert (GNUNET_OK == GNUNET_FS_file_information_add (fidir, fi2)); |
301 | GNUNET_FS_uri_destroy (kuri); | 301 | GNUNET_FS_uri_destroy (kuri); |
302 | GNUNET_CONTAINER_meta_data_destroy (meta); | 302 | GNUNET_FS_meta_data_destroy (meta); |
303 | GNUNET_assert (NULL != fidir); | 303 | GNUNET_assert (NULL != fidir); |
304 | start = GNUNET_TIME_absolute_get (); | 304 | start = GNUNET_TIME_absolute_get (); |
305 | GNUNET_FS_publish_start (fs, fidir, NULL, NULL, NULL, | 305 | GNUNET_FS_publish_start (fs, fidir, NULL, NULL, NULL, |
diff --git a/src/fs/test_fs_search.c b/src/fs/test_fs_search.c index 252ab3de3..f9266582e 100644 --- a/src/fs/test_fs_search.c +++ b/src/fs/test_fs_search.c | |||
@@ -216,7 +216,7 @@ run (void *cls, | |||
216 | buf = GNUNET_malloc (FILESIZE); | 216 | buf = GNUNET_malloc (FILESIZE); |
217 | for (i = 0; i < FILESIZE; i++) | 217 | for (i = 0; i < FILESIZE; i++) |
218 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); | 218 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); |
219 | meta = GNUNET_CONTAINER_meta_data_create (); | 219 | meta = GNUNET_FS_meta_data_create (); |
220 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 220 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
221 | bo.content_priority = 42; | 221 | bo.content_priority = 42; |
222 | bo.anonymity_level = 1; | 222 | bo.anonymity_level = 1; |
@@ -226,7 +226,7 @@ run (void *cls, | |||
226 | FILESIZE, buf, kuri, meta, | 226 | FILESIZE, buf, kuri, meta, |
227 | GNUNET_NO, &bo); | 227 | GNUNET_NO, &bo); |
228 | GNUNET_FS_uri_destroy (kuri); | 228 | GNUNET_FS_uri_destroy (kuri); |
229 | GNUNET_CONTAINER_meta_data_destroy (meta); | 229 | GNUNET_FS_meta_data_destroy (meta); |
230 | GNUNET_assert (NULL != fi); | 230 | GNUNET_assert (NULL != fi); |
231 | start = GNUNET_TIME_absolute_get (); | 231 | start = GNUNET_TIME_absolute_get (); |
232 | publish = | 232 | publish = |
diff --git a/src/fs/test_fs_search_persistence.c b/src/fs/test_fs_search_persistence.c index cbd87c077..4ddd40e73 100644 --- a/src/fs/test_fs_search_persistence.c +++ b/src/fs/test_fs_search_persistence.c | |||
@@ -282,7 +282,7 @@ run (void *cls, | |||
282 | buf = GNUNET_malloc (FILESIZE); | 282 | buf = GNUNET_malloc (FILESIZE); |
283 | for (i = 0; i < FILESIZE; i++) | 283 | for (i = 0; i < FILESIZE; i++) |
284 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); | 284 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); |
285 | meta = GNUNET_CONTAINER_meta_data_create (); | 285 | meta = GNUNET_FS_meta_data_create (); |
286 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 286 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
287 | bo.content_priority = 42; | 287 | bo.content_priority = 42; |
288 | bo.anonymity_level = 1; | 288 | bo.anonymity_level = 1; |
@@ -292,7 +292,7 @@ run (void *cls, | |||
292 | FILESIZE, buf, kuri, meta, | 292 | FILESIZE, buf, kuri, meta, |
293 | GNUNET_NO, &bo); | 293 | GNUNET_NO, &bo); |
294 | GNUNET_FS_uri_destroy (kuri); | 294 | GNUNET_FS_uri_destroy (kuri); |
295 | GNUNET_CONTAINER_meta_data_destroy (meta); | 295 | GNUNET_FS_meta_data_destroy (meta); |
296 | GNUNET_assert (NULL != fi); | 296 | GNUNET_assert (NULL != fi); |
297 | start = GNUNET_TIME_absolute_get (); | 297 | start = GNUNET_TIME_absolute_get (); |
298 | publish = | 298 | publish = |
diff --git a/src/fs/test_fs_search_probes.c b/src/fs/test_fs_search_probes.c index 510d18e9b..776babaee 100644 --- a/src/fs/test_fs_search_probes.c +++ b/src/fs/test_fs_search_probes.c | |||
@@ -222,7 +222,7 @@ run (void *cls, | |||
222 | buf = GNUNET_malloc (FILESIZE); | 222 | buf = GNUNET_malloc (FILESIZE); |
223 | for (i = 0; i < FILESIZE; i++) | 223 | for (i = 0; i < FILESIZE; i++) |
224 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); | 224 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); |
225 | meta = GNUNET_CONTAINER_meta_data_create (); | 225 | meta = GNUNET_FS_meta_data_create (); |
226 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 226 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
227 | bo.content_priority = 42; | 227 | bo.content_priority = 42; |
228 | bo.anonymity_level = 1; | 228 | bo.anonymity_level = 1; |
@@ -232,7 +232,7 @@ run (void *cls, | |||
232 | FILESIZE, buf, kuri, meta, | 232 | FILESIZE, buf, kuri, meta, |
233 | GNUNET_NO, &bo); | 233 | GNUNET_NO, &bo); |
234 | GNUNET_FS_uri_destroy (kuri); | 234 | GNUNET_FS_uri_destroy (kuri); |
235 | GNUNET_CONTAINER_meta_data_destroy (meta); | 235 | GNUNET_FS_meta_data_destroy (meta); |
236 | GNUNET_assert (NULL != fi); | 236 | GNUNET_assert (NULL != fi); |
237 | start = GNUNET_TIME_absolute_get (); | 237 | start = GNUNET_TIME_absolute_get (); |
238 | publish = | 238 | publish = |
diff --git a/src/fs/test_fs_search_with_and.c b/src/fs/test_fs_search_with_and.c index e0018cec4..9c20936b6 100644 --- a/src/fs/test_fs_search_with_and.c +++ b/src/fs/test_fs_search_with_and.c | |||
@@ -233,7 +233,7 @@ run (void *cls, | |||
233 | buf = GNUNET_malloc (FILESIZE); | 233 | buf = GNUNET_malloc (FILESIZE); |
234 | for (i = 0; i < FILESIZE; i++) | 234 | for (i = 0; i < FILESIZE; i++) |
235 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); | 235 | buf[i] = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, 256); |
236 | meta = GNUNET_CONTAINER_meta_data_create (); | 236 | meta = GNUNET_FS_meta_data_create (); |
237 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 237 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
238 | bo.content_priority = 42; | 238 | bo.content_priority = 42; |
239 | bo.anonymity_level = 1; | 239 | bo.anonymity_level = 1; |
@@ -243,7 +243,7 @@ run (void *cls, | |||
243 | FILESIZE, buf, kuri, meta, | 243 | FILESIZE, buf, kuri, meta, |
244 | GNUNET_NO, &bo); | 244 | GNUNET_NO, &bo); |
245 | GNUNET_FS_uri_destroy (kuri); | 245 | GNUNET_FS_uri_destroy (kuri); |
246 | GNUNET_CONTAINER_meta_data_destroy (meta); | 246 | GNUNET_FS_meta_data_destroy (meta); |
247 | GNUNET_assert (NULL != fi); | 247 | GNUNET_assert (NULL != fi); |
248 | start = GNUNET_TIME_absolute_get (); | 248 | start = GNUNET_TIME_absolute_get (); |
249 | publish = | 249 | publish = |
diff --git a/src/fs/test_fs_unindex.c b/src/fs/test_fs_unindex.c index c72bbce97..dbc33090d 100644 --- a/src/fs/test_fs_unindex.c +++ b/src/fs/test_fs_unindex.c | |||
@@ -203,7 +203,7 @@ run (void *cls, | |||
203 | GNUNET_DISK_PERM_USER_READ | 203 | GNUNET_DISK_PERM_USER_READ |
204 | | GNUNET_DISK_PERM_USER_WRITE)); | 204 | | GNUNET_DISK_PERM_USER_WRITE)); |
205 | GNUNET_free (buf); | 205 | GNUNET_free (buf); |
206 | meta = GNUNET_CONTAINER_meta_data_create (); | 206 | meta = GNUNET_FS_meta_data_create (); |
207 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 207 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
208 | bo.content_priority = 42; | 208 | bo.content_priority = 42; |
209 | bo.anonymity_level = 1; | 209 | bo.anonymity_level = 1; |
@@ -213,7 +213,7 @@ run (void *cls, | |||
213 | kuri, meta, GNUNET_YES, | 213 | kuri, meta, GNUNET_YES, |
214 | &bo); | 214 | &bo); |
215 | GNUNET_FS_uri_destroy (kuri); | 215 | GNUNET_FS_uri_destroy (kuri); |
216 | GNUNET_CONTAINER_meta_data_destroy (meta); | 216 | GNUNET_FS_meta_data_destroy (meta); |
217 | GNUNET_assert (NULL != fi); | 217 | GNUNET_assert (NULL != fi); |
218 | start = GNUNET_TIME_absolute_get (); | 218 | start = GNUNET_TIME_absolute_get (); |
219 | publish = | 219 | publish = |
diff --git a/src/fs/test_fs_unindex_persistence.c b/src/fs/test_fs_unindex_persistence.c index b903d07ee..b81ce64ab 100644 --- a/src/fs/test_fs_unindex_persistence.c +++ b/src/fs/test_fs_unindex_persistence.c | |||
@@ -273,7 +273,7 @@ run (void *cls, | |||
273 | GNUNET_DISK_PERM_USER_READ | 273 | GNUNET_DISK_PERM_USER_READ |
274 | | GNUNET_DISK_PERM_USER_WRITE)); | 274 | | GNUNET_DISK_PERM_USER_WRITE)); |
275 | GNUNET_free (buf); | 275 | GNUNET_free (buf); |
276 | meta = GNUNET_CONTAINER_meta_data_create (); | 276 | meta = GNUNET_FS_meta_data_create (); |
277 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); | 277 | kuri = GNUNET_FS_uri_ksk_create_from_args (2, keywords); |
278 | bo.content_priority = 42; | 278 | bo.content_priority = 42; |
279 | bo.anonymity_level = 1; | 279 | bo.anonymity_level = 1; |
@@ -283,7 +283,7 @@ run (void *cls, | |||
283 | kuri, meta, GNUNET_YES, | 283 | kuri, meta, GNUNET_YES, |
284 | &bo); | 284 | &bo); |
285 | GNUNET_FS_uri_destroy (kuri); | 285 | GNUNET_FS_uri_destroy (kuri); |
286 | GNUNET_CONTAINER_meta_data_destroy (meta); | 286 | GNUNET_FS_meta_data_destroy (meta); |
287 | GNUNET_assert (NULL != fi); | 287 | GNUNET_assert (NULL != fi); |
288 | start = GNUNET_TIME_absolute_get (); | 288 | start = GNUNET_TIME_absolute_get (); |
289 | publish = | 289 | publish = |
diff --git a/src/gnsrecord/test_gnsrecord_block_expiration.c b/src/gnsrecord/test_gnsrecord_block_expiration.c index d14ce3914..69f7f6aa1 100644 --- a/src/gnsrecord/test_gnsrecord_block_expiration.c +++ b/src/gnsrecord/test_gnsrecord_block_expiration.c | |||
@@ -79,7 +79,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
79 | rd[1].record_type = TEST_RECORD_TYPE; | 79 | rd[1].record_type = TEST_RECORD_TYPE; |
80 | rd[1].data_size = TEST_RECORD_DATALEN; | 80 | rd[1].data_size = TEST_RECORD_DATALEN; |
81 | rd[1].data = GNUNET_malloc (TEST_RECORD_DATALEN); | 81 | rd[1].data = GNUNET_malloc (TEST_RECORD_DATALEN); |
82 | rd[1].flags = GNUNET_GNSRECORD_RF_SHADOW_RECORD; | 82 | rd[1].flags = GNUNET_GNSRECORD_RF_SHADOW; |
83 | memset ((char *) rd[1].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); | 83 | memset ((char *) rd[1].data, TEST_RECORD_DATA, TEST_RECORD_DATALEN); |
84 | 84 | ||
85 | GNUNET_assert (expiration_abs_shadow.abs_value_us == | 85 | GNUNET_assert (expiration_abs_shadow.abs_value_us == |
diff --git a/src/gnsrecord/test_gnsrecord_crypto.c b/src/gnsrecord/test_gnsrecord_crypto.c index ad7b62cc8..5b1032f1e 100644 --- a/src/gnsrecord/test_gnsrecord_crypto.c +++ b/src/gnsrecord/test_gnsrecord_crypto.c | |||
@@ -23,7 +23,6 @@ | |||
23 | */ | 23 | */ |
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_util_lib.h" | 25 | #include "gnunet_util_lib.h" |
26 | #include "gnunet_dnsparser_lib.h" | ||
27 | #include "gnunet_gnsrecord_lib.h" | 26 | #include "gnunet_gnsrecord_lib.h" |
28 | 27 | ||
29 | #define RECORDS 5 | 28 | #define RECORDS 5 |
diff --git a/src/gnsrecord/test_gnsrecord_serialization.c b/src/gnsrecord/test_gnsrecord_serialization.c index d268cb7f3..b06b3a0fe 100644 --- a/src/gnsrecord/test_gnsrecord_serialization.c +++ b/src/gnsrecord/test_gnsrecord_serialization.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_util_lib.h" | 25 | #include "gnunet_util_lib.h" |
26 | #include "gnunet_gnsrecord_lib.h" | 26 | #include "gnunet_gnsrecord_lib.h" |
27 | #include "gnunet_dnsparser_lib.h" | ||
28 | 27 | ||
29 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100) | 28 | #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 100) |
30 | 29 | ||
diff --git a/src/my/test_my.c b/src/my/test_my.c index ffb5a5f13..e646c0fd5 100644 --- a/src/my/test_my.c +++ b/src/my/test_my.c | |||
@@ -24,6 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #include <mysql/mysql.h> | 26 | #include <mysql/mysql.h> |
27 | #include "gnunet_mysql_compat.h" | ||
27 | #include "gnunet_my_lib.h" | 28 | #include "gnunet_my_lib.h" |
28 | #include "gnunet_mysql_lib.h" | 29 | #include "gnunet_mysql_lib.h" |
29 | #include "gnunet_util_lib.h" | 30 | #include "gnunet_util_lib.h" |
diff --git a/src/namecache/test_namecache_api_cache_block.c b/src/namecache/test_namecache_api_cache_block.c index 2e8940ba3..d83758e7d 100644 --- a/src/namecache/test_namecache_api_cache_block.c +++ b/src/namecache/test_namecache_api_cache_block.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namecache_service.h" | 25 | #include "gnunet_namecache_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "gnunet_dnsparser_lib.h" | ||
28 | 27 | ||
29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 28 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
30 | 29 | ||
@@ -227,8 +226,8 @@ run (void *cls, | |||
227 | int | 226 | int |
228 | main (int argc, char *argv[]) | 227 | main (int argc, char *argv[]) |
229 | { | 228 | { |
230 | GNUNET_DISK_purge_cfg_dir | 229 | GNUNET_DISK_purge_cfg_dir |
231 | ("test_namecache_api.conf", | 230 | ("test_namecache_api.conf", |
232 | "GNUNET_TEST_HOME"); | 231 | "GNUNET_TEST_HOME"); |
233 | res = 1; | 232 | res = 1; |
234 | if (0 != | 233 | if (0 != |
diff --git a/src/namestore/perf_namestore_api_import.c b/src/namestore/perf_namestore_api_import.c index 4452de16c..cde5eaad5 100644 --- a/src/namestore/perf_namestore_api_import.c +++ b/src/namestore/perf_namestore_api_import.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "gnunet_namestore_service.h" | 26 | #include "gnunet_namestore_service.h" |
27 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
28 | #include "namestore.h" | 28 | #include "namestore.h" |
29 | #include "gnunet_dnsparser_lib.h" | ||
30 | 29 | ||
31 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
32 | 31 | ||
diff --git a/src/namestore/perf_namestore_api_zone_iteration.c b/src/namestore/perf_namestore_api_zone_iteration.c index 33868784f..0e0b6d93b 100644 --- a/src/namestore/perf_namestore_api_zone_iteration.c +++ b/src/namestore/perf_namestore_api_zone_iteration.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "gnunet_namestore_service.h" | 26 | #include "gnunet_namestore_service.h" |
27 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
28 | #include "namestore.h" | 28 | #include "namestore.h" |
29 | #include "gnunet_dnsparser_lib.h" | ||
30 | 29 | ||
31 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
32 | 31 | ||
diff --git a/src/namestore/test_namestore_api_lookup_nick.c b/src/namestore/test_namestore_api_lookup_nick.c index 85a7a4025..8fa001196 100644 --- a/src/namestore/test_namestore_api_lookup_nick.c +++ b/src/namestore/test_namestore_api_lookup_nick.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_gns_service.h" | 26 | #include "gnunet_gns_service.h" |
27 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
28 | #include "gnunet_dnsparser_lib.h" | ||
29 | 28 | ||
30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
31 | 30 | ||
diff --git a/src/namestore/test_namestore_api_monitoring.c b/src/namestore/test_namestore_api_monitoring.c index 018cf89b1..b129c2996 100644 --- a/src/namestore/test_namestore_api_monitoring.c +++ b/src/namestore/test_namestore_api_monitoring.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "namestore.h" | 27 | #include "namestore.h" |
28 | #include "gnunet_dnsparser_lib.h" | ||
29 | 28 | ||
30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
31 | 30 | ||
diff --git a/src/namestore/test_namestore_api_monitoring_existing.c b/src/namestore/test_namestore_api_monitoring_existing.c index 0123613fb..bc03de541 100644 --- a/src/namestore/test_namestore_api_monitoring_existing.c +++ b/src/namestore/test_namestore_api_monitoring_existing.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "namestore.h" | 27 | #include "namestore.h" |
28 | #include "gnunet_dnsparser_lib.h" | ||
29 | 28 | ||
30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
31 | 30 | ||
diff --git a/src/namestore/test_namestore_api_remove.c b/src/namestore/test_namestore_api_remove.c index c6a4549d4..5aab2ebe6 100644 --- a/src/namestore/test_namestore_api_remove.c +++ b/src/namestore/test_namestore_api_remove.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "gnunet_dnsparser_lib.h" | ||
28 | 27 | ||
29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 28 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
30 | 29 | ||
diff --git a/src/namestore/test_namestore_api_store.c b/src/namestore/test_namestore_api_store.c index f4f1e36d3..d291045e5 100644 --- a/src/namestore/test_namestore_api_store.c +++ b/src/namestore/test_namestore_api_store.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "gnunet_dnsparser_lib.h" | ||
28 | 27 | ||
29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 28 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
30 | 29 | ||
diff --git a/src/namestore/test_namestore_api_store_update.c b/src/namestore/test_namestore_api_store_update.c index 8f1f33542..bef19385c 100644 --- a/src/namestore/test_namestore_api_store_update.c +++ b/src/namestore/test_namestore_api_store_update.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_namestore_service.h" | 27 | #include "gnunet_namestore_service.h" |
28 | #include "gnunet_testing_lib.h" | 28 | #include "gnunet_testing_lib.h" |
29 | #include "gnunet_dnsparser_lib.h" | ||
30 | 29 | ||
31 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
32 | 31 | ||
diff --git a/src/namestore/test_namestore_api_tx_rollback.c b/src/namestore/test_namestore_api_tx_rollback.c index 3d0884e24..5b4bc6174 100644 --- a/src/namestore/test_namestore_api_tx_rollback.c +++ b/src/namestore/test_namestore_api_tx_rollback.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include "platform.h" | 24 | #include "platform.h" |
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "gnunet_dnsparser_lib.h" | ||
28 | 27 | ||
29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 28 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
30 | 29 | ||
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c index 6e07f78f2..e072dbef9 100644 --- a/src/namestore/test_namestore_api_zone_iteration.c +++ b/src/namestore/test_namestore_api_zone_iteration.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "namestore.h" | 27 | #include "namestore.h" |
28 | #include "gnunet_dnsparser_lib.h" | ||
29 | 28 | ||
30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
31 | 30 | ||
diff --git a/src/namestore/test_namestore_api_zone_iteration_nick.c b/src/namestore/test_namestore_api_zone_iteration_nick.c index 941d43c28..e371bb312 100644 --- a/src/namestore/test_namestore_api_zone_iteration_nick.c +++ b/src/namestore/test_namestore_api_zone_iteration_nick.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "gnunet_gns_service.h" | 26 | #include "gnunet_gns_service.h" |
27 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
28 | #include "namestore.h" | 28 | #include "namestore.h" |
29 | #include "gnunet_dnsparser_lib.h" | ||
30 | 29 | ||
31 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
32 | 31 | ||
diff --git a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c index daf711c3d..074cd4dbb 100644 --- a/src/namestore/test_namestore_api_zone_iteration_specific_zone.c +++ b/src/namestore/test_namestore_api_zone_iteration_specific_zone.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "gnunet_namestore_service.h" | 26 | #include "gnunet_namestore_service.h" |
27 | #include "gnunet_testing_lib.h" | 27 | #include "gnunet_testing_lib.h" |
28 | #include "namestore.h" | 28 | #include "namestore.h" |
29 | #include "gnunet_dnsparser_lib.h" | ||
30 | 29 | ||
31 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
32 | 31 | ||
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c index c51224d91..7efe59648 100644 --- a/src/namestore/test_namestore_api_zone_iteration_stop.c +++ b/src/namestore/test_namestore_api_zone_iteration_stop.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "namestore.h" | 27 | #include "namestore.h" |
28 | #include "gnunet_dnsparser_lib.h" | ||
29 | 28 | ||
30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
31 | 30 | ||
diff --git a/src/namestore/test_namestore_api_zone_to_name.c b/src/namestore/test_namestore_api_zone_to_name.c index c9d781d39..dfdefa039 100644 --- a/src/namestore/test_namestore_api_zone_to_name.c +++ b/src/namestore/test_namestore_api_zone_to_name.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include "gnunet_namestore_service.h" | 25 | #include "gnunet_namestore_service.h" |
26 | #include "gnunet_testing_lib.h" | 26 | #include "gnunet_testing_lib.h" |
27 | #include "namestore.h" | 27 | #include "namestore.h" |
28 | #include "gnunet_dnsparser_lib.h" | ||
29 | 28 | ||
30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 29 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
31 | 30 | ||
diff --git a/src/namestore/test_plugin_namestore.c b/src/namestore/test_plugin_namestore.c index 24af148bf..b89cc95d0 100644 --- a/src/namestore/test_plugin_namestore.c +++ b/src/namestore/test_plugin_namestore.c | |||
@@ -26,7 +26,6 @@ | |||
26 | #include "gnunet_util_lib.h" | 26 | #include "gnunet_util_lib.h" |
27 | #include "gnunet_namestore_plugin.h" | 27 | #include "gnunet_namestore_plugin.h" |
28 | #include "gnunet_testing_lib.h" | 28 | #include "gnunet_testing_lib.h" |
29 | #include "gnunet_dnsparser_lib.h" | ||
30 | 29 | ||
31 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT | 30 | #define TEST_RECORD_TYPE GNUNET_DNSPARSER_TYPE_TXT |
32 | 31 | ||
diff --git a/src/reclaim/test_reclaim_attribute.c b/src/reclaim/test_reclaim_attribute.c index f8faf8021..0740812eb 100644 --- a/src/reclaim/test_reclaim_attribute.c +++ b/src/reclaim/test_reclaim_attribute.c | |||
@@ -1,7 +1,6 @@ | |||
1 | #include "platform.h" | 1 | #include "platform.h" |
2 | #include "gnunet_common.h" | 2 | #include "gnunet_common.h" |
3 | #include "gnunet_reclaim_lib.h" | 3 | #include "gnunet_reclaim_lib.h" |
4 | #include "gnunet_container_lib.h" | ||
5 | 4 | ||
6 | int | 5 | int |
7 | main (int argc, char *argv[]) | 6 | main (int argc, char *argv[]) |
diff --git a/src/regex/test_regex_integration.c b/src/regex/test_regex_integration.c index 2e6874e4d..1f422e5a3 100644 --- a/src/regex/test_regex_integration.c +++ b/src/regex/test_regex_integration.c | |||
@@ -27,7 +27,6 @@ | |||
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_applications.h" | 28 | #include "gnunet_applications.h" |
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_tun_lib.h" | ||
31 | #include "gnunet_testing_lib.h" | 30 | #include "gnunet_testing_lib.h" |
32 | #include "gnunet_regex_service.h" | 31 | #include "gnunet_regex_service.h" |
33 | 32 | ||
diff --git a/src/util/test_bio.c b/src/util/test_bio.c index f655f8924..0b76bbb43 100644 --- a/src/util/test_bio.c +++ b/src/util/test_bio.c | |||
@@ -46,19 +46,14 @@ test_normal_rw (void) | |||
46 | int64_t wNum = TESTNUMBER64; | 46 | int64_t wNum = TESTNUMBER64; |
47 | int64_t rNum = 0; | 47 | int64_t rNum = 0; |
48 | 48 | ||
49 | mdW = GNUNET_CONTAINER_meta_data_create (); | ||
50 | GNUNET_CONTAINER_meta_data_add_publication_date (mdW); | ||
51 | |||
52 | struct GNUNET_BIO_WriteSpec ws[] = { | 49 | struct GNUNET_BIO_WriteSpec ws[] = { |
53 | GNUNET_BIO_write_spec_string ("test-normal-rw-string", TESTSTRING), | 50 | GNUNET_BIO_write_spec_string ("test-normal-rw-string", TESTSTRING), |
54 | GNUNET_BIO_write_spec_meta_data ("test-normal-rw-metadata", mdW), | ||
55 | GNUNET_BIO_write_spec_int64 ("test-normal-rw-int64", &wNum), | 51 | GNUNET_BIO_write_spec_int64 ("test-normal-rw-int64", &wNum), |
56 | GNUNET_BIO_write_spec_end (), | 52 | GNUNET_BIO_write_spec_end (), |
57 | }; | 53 | }; |
58 | 54 | ||
59 | struct GNUNET_BIO_ReadSpec rs[] = { | 55 | struct GNUNET_BIO_ReadSpec rs[] = { |
60 | GNUNET_BIO_read_spec_string ("test-normal-rw-string", &rString, 200), | 56 | GNUNET_BIO_read_spec_string ("test-normal-rw-string", &rString, 200), |
61 | GNUNET_BIO_read_spec_meta_data ("test-normal-rw-metadata", &mdR), | ||
62 | GNUNET_BIO_read_spec_int64 ("test-normal-rw-int64", &rNum), | 57 | GNUNET_BIO_read_spec_int64 ("test-normal-rw-int64", &rNum), |
63 | GNUNET_BIO_read_spec_end (), | 58 | GNUNET_BIO_read_spec_end (), |
64 | }; | 59 | }; |
@@ -74,11 +69,8 @@ test_normal_rw (void) | |||
74 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_spec_commit (rh, rs)); | 69 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_spec_commit (rh, rs)); |
75 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_close (rh, NULL)); | 70 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_close (rh, NULL)); |
76 | GNUNET_assert (0 == strcmp (TESTSTRING, rString)); | 71 | GNUNET_assert (0 == strcmp (TESTSTRING, rString)); |
77 | GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_meta_data_test_equal (mdR, | ||
78 | mdW)); | ||
79 | GNUNET_assert (wNum == rNum); | 72 | GNUNET_assert (wNum == rNum); |
80 | 73 | ||
81 | GNUNET_CONTAINER_meta_data_destroy (mdR); | ||
82 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_directory_remove (filename)); | 74 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_directory_remove (filename)); |
83 | GNUNET_free (filename); | 75 | GNUNET_free (filename); |
84 | 76 | ||
@@ -98,14 +90,10 @@ test_normal_rw (void) | |||
98 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_spec_commit (rh, rs)); | 90 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_spec_commit (rh, rs)); |
99 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_close (rh, NULL)); | 91 | GNUNET_assert (GNUNET_OK == GNUNET_BIO_read_close (rh, NULL)); |
100 | GNUNET_assert (0 == strcmp (TESTSTRING, rString)); | 92 | GNUNET_assert (0 == strcmp (TESTSTRING, rString)); |
101 | GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_meta_data_test_equal (mdR, | ||
102 | mdW)); | ||
103 | GNUNET_assert (wNum == rNum); | 93 | GNUNET_assert (wNum == rNum); |
104 | 94 | ||
105 | GNUNET_free (buffer); | 95 | GNUNET_free (buffer); |
106 | 96 | ||
107 | GNUNET_CONTAINER_meta_data_destroy (mdW); | ||
108 | GNUNET_CONTAINER_meta_data_destroy (mdR); | ||
109 | return 0; | 97 | return 0; |
110 | } | 98 | } |
111 | 99 | ||
@@ -225,10 +213,6 @@ test_bigmeta_rw (void) | |||
225 | 213 | ||
226 | rh = GNUNET_BIO_read_open_file (filename); | 214 | rh = GNUNET_BIO_read_open_file (filename); |
227 | GNUNET_assert (NULL != rh); | 215 | GNUNET_assert (NULL != rh); |
228 | GNUNET_assert (GNUNET_SYSERR == | ||
229 | GNUNET_BIO_read_meta_data (rh, | ||
230 | "test-bigmeta-rw-metadata", | ||
231 | &mdR)); | ||
232 | GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_close (rh, NULL)); | 216 | GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_close (rh, NULL)); |
233 | 217 | ||
234 | GNUNET_assert (NULL == mdR); | 218 | GNUNET_assert (NULL == mdR); |
@@ -294,17 +278,12 @@ test_fullfile_rw (void) | |||
294 | struct GNUNET_CONTAINER_MetaData *mdW; | 278 | struct GNUNET_CONTAINER_MetaData *mdW; |
295 | struct GNUNET_CONTAINER_MetaData *mdR = NULL; | 279 | struct GNUNET_CONTAINER_MetaData *mdR = NULL; |
296 | 280 | ||
297 | mdW = GNUNET_CONTAINER_meta_data_create (); | ||
298 | GNUNET_CONTAINER_meta_data_add_publication_date (mdW); | ||
299 | |||
300 | struct GNUNET_BIO_WriteSpec ws[] = { | 281 | struct GNUNET_BIO_WriteSpec ws[] = { |
301 | GNUNET_BIO_write_spec_object ("test-fullfile-rw-bytes", | 282 | GNUNET_BIO_write_spec_object ("test-fullfile-rw-bytes", |
302 | TESTSTRING, | 283 | TESTSTRING, |
303 | strlen (TESTSTRING)), | 284 | strlen (TESTSTRING)), |
304 | GNUNET_BIO_write_spec_string ("test-fullfile-rw-string", | 285 | GNUNET_BIO_write_spec_string ("test-fullfile-rw-string", |
305 | TESTSTRING), | 286 | TESTSTRING), |
306 | GNUNET_BIO_write_spec_meta_data ("test-fullfile-rw-metadata", | ||
307 | mdW), | ||
308 | GNUNET_BIO_write_spec_end (), | 287 | GNUNET_BIO_write_spec_end (), |
309 | }; | 288 | }; |
310 | 289 | ||
@@ -315,8 +294,6 @@ test_fullfile_rw (void) | |||
315 | GNUNET_BIO_read_spec_string ("test-fullfile-rw-string", | 294 | GNUNET_BIO_read_spec_string ("test-fullfile-rw-string", |
316 | &rString, | 295 | &rString, |
317 | 200), | 296 | 200), |
318 | GNUNET_BIO_read_spec_meta_data ("test-fullfile-rw-metadata", | ||
319 | &mdR), | ||
320 | GNUNET_BIO_read_spec_end (), | 297 | GNUNET_BIO_read_spec_end (), |
321 | }; | 298 | }; |
322 | 299 | ||
@@ -385,10 +362,6 @@ test_fakemeta_rw (void) | |||
385 | 362 | ||
386 | rh = GNUNET_BIO_read_open_file (filename); | 363 | rh = GNUNET_BIO_read_open_file (filename); |
387 | GNUNET_assert (NULL != rh); | 364 | GNUNET_assert (NULL != rh); |
388 | GNUNET_assert (GNUNET_SYSERR == | ||
389 | GNUNET_BIO_read_meta_data (rh, | ||
390 | "test-fakestring-rw-metadata", | ||
391 | &mdR)); | ||
392 | GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_close (rh, NULL)); | 365 | GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_close (rh, NULL)); |
393 | 366 | ||
394 | GNUNET_assert (NULL == mdR); | 367 | GNUNET_assert (NULL == mdR); |
@@ -417,10 +390,6 @@ test_fakebigmeta_rw (void) | |||
417 | 390 | ||
418 | rh = GNUNET_BIO_read_open_file (filename); | 391 | rh = GNUNET_BIO_read_open_file (filename); |
419 | GNUNET_assert (NULL != rh); | 392 | GNUNET_assert (NULL != rh); |
420 | GNUNET_assert (GNUNET_SYSERR == | ||
421 | GNUNET_BIO_read_meta_data (rh, | ||
422 | "test-fakebigmeta-rw-metadata", | ||
423 | &mdR)); | ||
424 | GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_close (rh, NULL)); | 393 | GNUNET_assert (GNUNET_SYSERR == GNUNET_BIO_read_close (rh, NULL)); |
425 | 394 | ||
426 | GNUNET_assert (NULL == mdR); | 395 | GNUNET_assert (NULL == mdR); |
diff --git a/src/util/test_crypto_hkdf.c b/src/util/test_crypto_hkdf.c index b9742468d..a9a4db7a0 100644 --- a/src/util/test_crypto_hkdf.c +++ b/src/util/test_crypto_hkdf.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <gcrypt.h> | 31 | #include <gcrypt.h> |
32 | 32 | ||
33 | 33 | ||
34 | #include "gnunet_crypto_lib.h" | 34 | #include "gnunet_util_lib.h" |
35 | 35 | ||
36 | void | 36 | void |
37 | tc1 () | 37 | tc1 () |
diff --git a/src/util/test_crypto_kdf.c b/src/util/test_crypto_kdf.c index 583b1bf30..81e4b4451 100644 --- a/src/util/test_crypto_kdf.c +++ b/src/util/test_crypto_kdf.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <gcrypt.h> | 30 | #include <gcrypt.h> |
31 | 31 | ||
32 | 32 | ||
33 | #include "gnunet_crypto_lib.h" | 33 | #include "gnunet_util_lib.h" |
34 | 34 | ||
35 | 35 | ||
36 | int | 36 | int |
diff --git a/src/util/test_hexcoder.c b/src/util/test_hexcoder.c index 7861d3aa0..e04631188 100644 --- a/src/util/test_hexcoder.c +++ b/src/util/test_hexcoder.c | |||
@@ -27,7 +27,6 @@ | |||
27 | 27 | ||
28 | #include "platform.h" | 28 | #include "platform.h" |
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_dnsparser_lib.h" | ||
31 | 30 | ||
32 | #define TESTSTRING "Hello World!" | 31 | #define TESTSTRING "Hello World!" |
33 | 32 | ||