2 This file is part of GNUnet.
3 (C) 2009 Christian Grothoff (and other contributing authors)
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
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 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
21 * @file gns/test_gns_pseu_shorten.c
22 * @brief base testcase for testing on the fly pseu import and shorten
26 #include "gnunet_testing_lib.h"
27 #include "gnunet_core_service.h"
28 #include "block_gns.h"
29 #include "gnunet_signatures.h"
30 #include "gnunet_namestore_service.h"
31 #include "../namestore/namestore.h"
32 #include "gnunet_dnsparser_lib.h"
33 #include "gnunet_dht_service.h"
34 #include "gnunet_gns_service.h"
37 #define VERBOSE GNUNET_YES
39 /* Timeout for entire testcase */
40 #define TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5)
42 /* If number of peers not in config file, use this number */
43 #define DEFAULT_NUM_PEERS 2
45 /* test records to resolve */
46 #define TEST_DOMAIN "www.alicewonderland.bobbuilder.gnunet"
47 #define TEST_IP "127.0.0.1"
48 #define TEST_RECORD_NAME "www"
50 #define TEST_PRIVATE_ZONE "private"
51 #define TEST_SHORTEN_ZONE "short"
52 #define TEST_AUTHORITY_BOB "bobbuilder"
53 #define TEST_AUTHORITY_ALICE "alicewonderland"
54 #define TEST_PSEU_ALICE "carol"
55 #define TEST_EXPECTED_RESULT "www.carol.short.private.gnunet"
57 #define DHT_OPERATION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
59 #define KEYFILE_BOB "../namestore/zonefiles/HGU0A0VCU334DN7F2I9UIUMVQMM7JMSD142LIMNUGTTV9R0CF4EG.zkey"
60 #define KEYFILE_ALICE "../namestore/zonefiles/N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"
65 * Directory to store temp data in, defined in config file
67 static char *test_directory;
69 static struct GNUNET_TESTING_PeerGroup *pg;
71 /* Task handle to use to schedule test failure */
72 static GNUNET_SCHEDULER_TaskIdentifier die_task;
74 static GNUNET_SCHEDULER_TaskIdentifier disco_task;
76 /* Global return value (0 for success, anything else for failure) */
79 static struct GNUNET_NAMESTORE_Handle *namestore_handle;
81 static struct GNUNET_GNS_Handle *gns_handle;
83 static struct GNUNET_DHT_Handle *dht_handle;
85 const struct GNUNET_CONFIGURATION_Handle *cfg;
87 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded alice_pkey;
88 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded bob_pkey;
89 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded our_pkey;
90 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded priv_pkey;
91 struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded short_pkey;
92 struct GNUNET_CRYPTO_RsaPrivateKey *alice_key;
93 struct GNUNET_CRYPTO_RsaPrivateKey *bob_key;
94 struct GNUNET_CRYPTO_RsaPrivateKey *our_key;
95 struct GNUNET_CRYPTO_RsaPrivateKey *priv_key;
96 struct GNUNET_CRYPTO_RsaPrivateKey *short_key;
97 struct GNUNET_CRYPTO_ShortHashCode alice_hash;
98 struct GNUNET_CRYPTO_ShortHashCode bob_hash;
99 struct GNUNET_CRYPTO_ShortHashCode our_zone;
100 struct GNUNET_CRYPTO_ShortHashCode priv_zone;
101 struct GNUNET_CRYPTO_ShortHashCode short_zone;
104 * Check whether peers successfully shut down.
107 shutdown_callback (void *cls, const char *emsg)
109 if (disco_task != GNUNET_SCHEDULER_NO_TASK)
111 disco_task = GNUNET_SCHEDULER_NO_TASK;
112 GNUNET_SCHEDULER_cancel(disco_task);
113 GNUNET_DHT_disconnect(dht_handle);
119 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Error on shutdown! ret=%d\n", ok);
124 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "done(ret=%d)!\n", ok);
128 disco_dht(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
130 disco_task = GNUNET_SCHEDULER_NO_TASK;
131 GNUNET_DHT_disconnect(dht_handle);
136 * Called when gns shorten finishes
139 process_shorten_result(void* cls, const char* sname)
141 GNUNET_GNS_disconnect(gns_handle);
142 //GNUNET_SCHEDULER_add_now(disco_dht, NULL);
147 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
148 "shorten test failed!\n");
153 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
154 "%s shortened to %s\n", (char*)cls, sname);
155 if (0 != strcmp(sname, TEST_EXPECTED_RESULT))
157 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
158 "shorten test failed! (wanted: %s got: %s\n",
163 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "shorten test succeeded!\n");
166 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Shutting down peer1!\n");
167 GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
171 do_shorten(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
173 GNUNET_GNS_shorten_zone (gns_handle, TEST_DOMAIN,
175 &process_shorten_result,
180 on_lookup_result(void *cls, uint32_t rd_count,
181 const struct GNUNET_NAMESTORE_RecordData *rd)
189 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
190 "Lookup failed, rp_filtering?\n");
196 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "name: %s\n", (char*)cls);
197 for (i=0; i<rd_count; i++)
199 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "type: %d\n", rd[i].record_type);
200 if (rd[i].record_type == GNUNET_GNS_RECORD_TYPE_A)
202 memcpy(&a, rd[i].data, sizeof(a));
204 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "address: %s\n", addr);
205 if (0 == strcmp(addr, TEST_IP))
207 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
208 "%s correctly resolved to %s!\n", TEST_DOMAIN, addr);
214 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No resolution!\n");
219 GNUNET_SCHEDULER_add_delayed (TIMEOUT, &do_shorten, NULL);
224 * Function scheduled to be run on the successful start of services
225 * tries to look up the dns record for TEST_DOMAIN
228 commence_testing (void *cls, int success)
230 GNUNET_SCHEDULER_add_now(disco_dht, NULL);
231 //GNUNET_DHT_disconnect(dht_handle);
233 GNUNET_CRYPTO_rsa_key_free(our_key);
234 GNUNET_CRYPTO_rsa_key_free(bob_key);
235 GNUNET_CRYPTO_rsa_key_free(alice_key);
237 gns_handle = GNUNET_GNS_connect(cfg);
239 if (NULL == gns_handle)
241 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
242 "Failed to connect to GNS!\n");
245 GNUNET_GNS_lookup_zone (gns_handle, TEST_DOMAIN,
247 GNUNET_GNS_RECORD_TYPE_A,
250 &on_lookup_result, TEST_DOMAIN);
254 * Continuation for the GNUNET_DHT_get_stop call, so that we don't shut
255 * down the peers without freeing memory associated with GET request.
258 end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
260 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failing test with error: `%s'!\n",
264 if (disco_task != GNUNET_SCHEDULER_NO_TASK)
266 disco_task = GNUNET_SCHEDULER_NO_TASK;
267 GNUNET_SCHEDULER_cancel(disco_task);
268 GNUNET_DHT_disconnect(dht_handle);
272 GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
273 GNUNET_SCHEDULER_cancel (die_task);
277 put_pseu_dht(void *cls, int success)
279 struct GNSNameRecordBlock *nrb;
280 struct GNUNET_CRYPTO_ShortHashCode name_hash;
281 struct GNUNET_CRYPTO_ShortHashCode zone_hash;
282 struct GNUNET_HashCode xor_hash;
283 struct GNUNET_HashCode name_hash_double;
284 struct GNUNET_HashCode zone_hash_double;
285 uint32_t rd_payload_length;
286 char* nrb_data = NULL;
287 struct GNUNET_CRYPTO_RsaSignature *sig;
288 struct GNUNET_NAMESTORE_RecordData rd;
290 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
291 rd.data_size = strlen(TEST_PSEU_ALICE)+1;
292 rd.data = TEST_PSEU_ALICE;
293 rd.record_type = GNUNET_GNS_RECORD_PSEU;
295 sig = GNUNET_NAMESTORE_create_signature(alice_key,
296 GNUNET_TIME_UNIT_FOREVER_ABS,
299 rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd);
300 nrb = GNUNET_malloc(rd_payload_length + strlen("+") + 1
301 + sizeof(struct GNSNameRecordBlock));
302 nrb->signature = *sig;
303 nrb->public_key = alice_pkey;
304 nrb->rd_count = htonl(1);
305 memset(&nrb[1], 0, strlen("+") + 1);
306 strcpy((char*)&nrb[1], "+");
307 nrb_data = (char*)&nrb[1];
308 nrb_data += strlen("+") + 1;
310 if (-1 == GNUNET_NAMESTORE_records_serialize (1,
315 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Record serialization failed!\n");
317 GNUNET_DHT_disconnect(dht_handle);
320 GNUNET_CRYPTO_rsa_key_free(our_key);
321 GNUNET_CRYPTO_rsa_key_free(bob_key);
322 GNUNET_CRYPTO_rsa_key_free(alice_key);
327 GNUNET_CRYPTO_short_hash("+", strlen("+"), &name_hash);
328 GNUNET_CRYPTO_short_hash(&alice_pkey,
329 sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
332 GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double);
333 GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double);
334 GNUNET_CRYPTO_hash_xor(&zone_hash_double, &name_hash_double, &xor_hash);
336 rd_payload_length += sizeof(struct GNSNameRecordBlock) +
339 GNUNET_DHT_put (dht_handle, &xor_hash,
342 GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
346 DHT_OPERATION_TIMEOUT,
355 put_www_dht(void *cls, int success)
357 struct GNSNameRecordBlock *nrb;
358 struct GNUNET_CRYPTO_ShortHashCode name_hash;
359 struct GNUNET_CRYPTO_ShortHashCode zone_hash;
360 struct GNUNET_HashCode xor_hash;
361 struct GNUNET_HashCode name_hash_double;
362 struct GNUNET_HashCode zone_hash_double;
363 uint32_t rd_payload_length;
364 char* nrb_data = NULL;
365 struct GNUNET_CRYPTO_RsaSignature *sig;
366 struct GNUNET_NAMESTORE_RecordData rd;
368 struct in_addr *web = GNUNET_malloc(sizeof(struct in_addr));
370 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
371 GNUNET_assert(1 == inet_pton (AF_INET, ip, web));
372 rd.data_size = sizeof(struct in_addr);
374 rd.record_type = GNUNET_DNSPARSER_TYPE_A;
376 sig = GNUNET_NAMESTORE_create_signature(alice_key,
377 GNUNET_TIME_UNIT_FOREVER_ABS,
380 rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd);
381 nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_RECORD_NAME) + 1
382 + sizeof(struct GNSNameRecordBlock));
383 nrb->signature = *sig;
384 nrb->public_key = alice_pkey;
385 nrb->rd_count = htonl(1);
386 memset(&nrb[1], 0, strlen(TEST_RECORD_NAME) + 1);
387 strcpy((char*)&nrb[1], TEST_RECORD_NAME);
388 nrb_data = (char*)&nrb[1];
389 nrb_data += strlen(TEST_RECORD_NAME) + 1;
391 if (-1 == GNUNET_NAMESTORE_records_serialize (1,
396 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Record serialization failed!\n");
398 GNUNET_DHT_disconnect(dht_handle);
400 GNUNET_CRYPTO_rsa_key_free(our_key);
401 GNUNET_CRYPTO_rsa_key_free(bob_key);
402 GNUNET_CRYPTO_rsa_key_free(alice_key);
407 GNUNET_CRYPTO_short_hash(TEST_RECORD_NAME, strlen(TEST_RECORD_NAME), &name_hash);
408 GNUNET_CRYPTO_short_hash(&alice_pkey,
409 sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
411 GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double);
412 GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double);
413 GNUNET_CRYPTO_hash_xor(&zone_hash_double, &name_hash_double, &xor_hash);
415 rd_payload_length += sizeof(struct GNSNameRecordBlock) +
416 strlen(TEST_RECORD_NAME) + 1;
418 GNUNET_DHT_put (dht_handle, &xor_hash,
421 GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
425 DHT_OPERATION_TIMEOUT,
435 put_pkey_dht(void *cls, int32_t success, const char *emsg)
437 struct GNSNameRecordBlock *nrb;
438 struct GNUNET_CRYPTO_ShortHashCode name_hash;
439 struct GNUNET_CRYPTO_ShortHashCode zone_hash;
440 struct GNUNET_HashCode xor_hash;
441 struct GNUNET_HashCode name_hash_double;
442 struct GNUNET_HashCode zone_hash_double;
443 uint32_t rd_payload_length;
444 char* nrb_data = NULL;
445 struct GNUNET_CRYPTO_RsaSignature *sig;
446 struct GNUNET_NAMESTORE_RecordData rd;
448 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
449 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
450 rd.data = &alice_hash;
451 rd.record_type = GNUNET_GNS_RECORD_PKEY;
453 sig = GNUNET_NAMESTORE_create_signature(bob_key,
454 GNUNET_TIME_UNIT_FOREVER_ABS,
455 TEST_AUTHORITY_ALICE,
459 rd_payload_length = GNUNET_NAMESTORE_records_get_size (1, &rd);
460 nrb = GNUNET_malloc(rd_payload_length + strlen(TEST_AUTHORITY_ALICE) + 1
461 + sizeof(struct GNSNameRecordBlock));
462 nrb->signature = *sig;
463 nrb->public_key = bob_pkey;
464 nrb->rd_count = htonl(1);
465 memset(&nrb[1], 0, strlen(TEST_AUTHORITY_ALICE) + 1);
466 strcpy((char*)&nrb[1], TEST_AUTHORITY_ALICE);
467 nrb_data = (char*)&nrb[1];
468 nrb_data += strlen(TEST_AUTHORITY_ALICE) + 1;
470 if (-1 == GNUNET_NAMESTORE_records_serialize (1,
475 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Record serialization failed!\n");
478 GNUNET_CRYPTO_rsa_key_free(our_key);
479 GNUNET_CRYPTO_rsa_key_free(bob_key);
480 GNUNET_CRYPTO_rsa_key_free(alice_key);
487 GNUNET_CRYPTO_short_hash(TEST_AUTHORITY_ALICE,
488 strlen(TEST_AUTHORITY_ALICE), &name_hash);
489 GNUNET_CRYPTO_short_hash(&bob_pkey,
490 sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),
492 GNUNET_CRYPTO_short_hash_double(&zone_hash, &zone_hash_double);
493 GNUNET_CRYPTO_short_hash_double(&name_hash, &name_hash_double);
494 GNUNET_CRYPTO_hash_xor(&zone_hash_double, &name_hash_double, &xor_hash);
496 rd_payload_length += sizeof(struct GNSNameRecordBlock) +
497 strlen(TEST_AUTHORITY_ALICE) + 1;
498 GNUNET_DHT_put (dht_handle, &xor_hash,
501 GNUNET_BLOCK_TYPE_GNS_NAMERECORD,
505 DHT_OPERATION_TIMEOUT,
508 GNUNET_NAMESTORE_disconnect(namestore_handle, GNUNET_NO);
513 fin_init_zone (void *cls, int32_t success, const char *emsg)
515 struct GNUNET_NAMESTORE_RecordData rd;
516 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
517 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
519 rd.record_type = GNUNET_GNS_RECORD_PKEY;
521 GNUNET_NAMESTORE_record_create (namestore_handle,
531 cont_init_zone (void *cls, int32_t success, const char *emsg)
534 struct GNUNET_NAMESTORE_RecordData rd;
535 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
536 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
537 rd.data = &short_zone;
538 rd.record_type = GNUNET_GNS_RECORD_PKEY;
540 GNUNET_NAMESTORE_record_create (namestore_handle,
549 do_lookup (void *cls, const struct GNUNET_PeerIdentity *id,
550 const struct GNUNET_CONFIGURATION_Handle *_cfg,
551 struct GNUNET_TESTING_Daemon *d, const char *emsg)
554 char* private_keyfile;
555 char* shorten_keyfile;
560 GNUNET_SCHEDULER_cancel (die_task);
562 /* put records into namestore */
563 namestore_handle = GNUNET_NAMESTORE_connect(cfg);
564 if (NULL == namestore_handle)
566 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Failed to connect to namestore\n");
572 dht_handle = GNUNET_DHT_connect(cfg, 1);
573 if (NULL == dht_handle)
575 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Failed to connect to dht\n");
580 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns",
584 GNUNET_log(GNUNET_ERROR_TYPE_ERROR, "Failed to get key from cfg\n");
589 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns",
593 GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
594 "Failed to get shorten zone key from cfg\n");
599 if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "gns",
603 GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
604 "Failed to get private zone key from cfg\n");
608 our_key = GNUNET_CRYPTO_rsa_key_create_from_file (our_keyfile);
609 priv_key = GNUNET_CRYPTO_rsa_key_create_from_file (private_keyfile);
610 short_key = GNUNET_CRYPTO_rsa_key_create_from_file (shorten_keyfile);
611 bob_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_BOB);
612 alice_key = GNUNET_CRYPTO_rsa_key_create_from_file (KEYFILE_ALICE);
614 GNUNET_free(our_keyfile);
615 GNUNET_free(shorten_keyfile);
616 GNUNET_free(private_keyfile);
618 GNUNET_CRYPTO_rsa_key_get_public (our_key, &our_pkey);
619 GNUNET_CRYPTO_rsa_key_get_public (priv_key, &priv_pkey);
620 GNUNET_CRYPTO_rsa_key_get_public (short_key, &short_pkey);
621 GNUNET_CRYPTO_rsa_key_get_public (bob_key, &bob_pkey);
622 GNUNET_CRYPTO_rsa_key_get_public (alice_key, &alice_pkey);
623 GNUNET_CRYPTO_short_hash(&bob_pkey, sizeof(bob_pkey), &bob_hash);
624 GNUNET_CRYPTO_short_hash(&alice_pkey, sizeof(alice_pkey), &alice_hash);
625 GNUNET_CRYPTO_short_hash(&our_pkey, sizeof(our_pkey), &our_zone);
626 GNUNET_CRYPTO_short_hash(&priv_pkey, sizeof(priv_pkey), &priv_zone);
627 GNUNET_CRYPTO_short_hash(&short_pkey, sizeof(short_pkey), &short_zone);
629 struct GNUNET_NAMESTORE_RecordData rd;
630 rd.expiration = GNUNET_TIME_UNIT_FOREVER_ABS;
631 rd.data_size = sizeof(struct GNUNET_CRYPTO_ShortHashCode);
632 rd.data = &priv_zone;
633 rd.record_type = GNUNET_GNS_RECORD_PKEY;
635 GNUNET_NAMESTORE_record_create (namestore_handle,
648 run (void *cls, char *const *args, const char *cfgfile,
649 const struct GNUNET_CONFIGURATION_Handle *c)
652 /* Get path from configuration file */
654 GNUNET_CONFIGURATION_get_value_string (cfg, "paths", "servicehome",
662 /* Set up a task to end testing if peer start fails */
664 GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly,
665 "didn't start all daemons in reasonable amount of time!!!");
668 //d1 = GNUNET_TESTING_daemon_start(cfg, TIMEOUT, GNUNET_NO, NULL, NULL, 0,
669 // NULL, NULL, NULL, &do_lookup, NULL);
670 pg = GNUNET_TESTING_daemons_start(cfg, 1, 1, 1, TIMEOUT,
671 NULL, NULL, &do_lookup, NULL,
680 /* Arguments for GNUNET_PROGRAM_run */
681 char *const argv[] = { "test-gns-pseu-shorten", /* Name to give running binary */
683 "test_gns_simple_lookup.conf", /* Config file to use */
689 struct GNUNET_GETOPT_CommandLineOption options[] = {
690 GNUNET_GETOPT_OPTION_END
692 /* Run the run function as a new program */
694 GNUNET_PROGRAM_run ((sizeof (argv) / sizeof (char *)) - 1, argv,
695 "test-gns-pseu-shorten", "nohelp", options, &run,
697 if (ret != GNUNET_OK)
699 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
700 "`test-gns-pseu-shorten': Failed with error code %d\n", ret);
706 main (int argc, char *argv[])
710 GNUNET_log_setup ("test-gns-pseu-shorten",
719 * Need to remove base directory, subdirectories taken care
720 * of by the testing framework.
725 /* end of test_gns_twopeer.c */