2 * This file is part of GNUnet
3 * Copyright (C) 2013 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., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
21 * @file social/test_social.c
22 * @brief Tests for the Social API.
23 * @author Gabor X Toth
29 #include "gnunet_crypto_lib.h"
30 #include "gnunet_common.h"
31 #include "gnunet_util_lib.h"
32 #include "gnunet_testing_lib.h"
33 #include "gnunet_env_lib.h"
34 #include "gnunet_psyc_util_lib.h"
35 #include "gnunet_social_service.h"
36 #include "gnunet_core_service.h"
37 #include "gnunet_identity_service.h"
39 #define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
41 #define DATA2ARG(data) data, sizeof (data)
44 * Return value from 'main'.
49 * Handle for task for timeout termination.
51 struct GNUNET_SCHEDULER_Task * end_badly_task;
53 const struct GNUNET_CONFIGURATION_Handle *cfg;
55 struct GNUNET_CORE_Handle *core;
56 struct GNUNET_PeerIdentity this_peer;
58 struct GNUNET_IDENTITY_Handle *id;
60 const struct GNUNET_IDENTITY_Ego *host_ego;
61 const struct GNUNET_IDENTITY_Ego *guest_ego;
63 const char *host_name = "Host One";
64 const char *guest_name = "Guest One";
66 struct GNUNET_CRYPTO_EddsaPrivateKey *place_key;
67 struct GNUNET_CRYPTO_EcdsaPrivateKey *guest_key;
69 struct GNUNET_CRYPTO_EddsaPublicKey place_pub_key;
70 struct GNUNET_CRYPTO_EcdsaPublicKey guest_pub_key;
72 struct GNUNET_SOCIAL_Slicer *host_slicer;
73 struct GNUNET_SOCIAL_Slicer *guest_slicer;
75 struct GNUNET_SOCIAL_Host *hst;
76 struct GNUNET_SOCIAL_Guest *gst;
78 struct GNUNET_SOCIAL_Place *hst_plc;
79 struct GNUNET_SOCIAL_Place *gst_plc;
81 struct GuestEnterMessage
83 struct GNUNET_PSYC_Message *msg;
84 const char *method_name;
85 struct GNUNET_ENV_Environment *env;
90 struct TransmitClosure
92 struct GNUNET_SOCIAL_Announcement *host_ann;
93 struct GNUNET_SOCIAL_TalkRequest *guest_talk;
94 struct GNUNET_ENV_Environment *env;
96 uint8_t data_delay[16];
102 uint8_t join_req_count;
103 struct GNUNET_PSYC_Message *join_resp;
110 TEST_HOST_ANSWER_DOOR_REFUSE = 1,
111 TEST_GUEST_RECV_ENTRY_DCSN_REFUSE = 2,
112 TEST_HOST_ANSWER_DOOR_ADMIT = 3,
113 TEST_GUEST_RECV_ENTRY_DCSN_ADMIT = 4,
114 TEST_HOST_ANNOUNCE = 5,
115 TEST_HOST_ANNOUNCE_END = 6,
116 TEST_HOST_ANNOUNCE2 = 7,
117 TEST_HOST_ANNOUNCE2_END = 8,
119 TEST_GUEST_HISTORY_REPLAY = 10,
120 TEST_GUEST_HISTORY_REPLAY_LATEST = 11,
121 TEST_GUEST_LEAVE = 12,
122 TEST_HOST_LEAVE = 13,
139 * Clean up all resources used.
146 GNUNET_CORE_disconnect (core);
152 GNUNET_IDENTITY_disconnect (id);
158 GNUNET_SOCIAL_guest_leave (gst, GNUNET_NO, NULL, NULL);
164 GNUNET_SOCIAL_host_leave (hst, GNUNET_NO, NULL, NULL);
168 GNUNET_SCHEDULER_shutdown ();
173 * Terminate the test case (failure).
176 * @param tc scheduler context
179 end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
183 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Test FAILED.\n");
188 * Terminate the test case (success).
191 * @param tc scheduler context
194 end_normally (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
198 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Test PASSED.\n");
203 * Finish the test case (successfully).
208 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Ending tests.\n");
210 if (end_badly_task != NULL)
212 GNUNET_SCHEDULER_cancel (end_badly_task);
213 end_badly_task = NULL;
215 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MILLISECONDS,
216 &end_normally, NULL);
221 transmit_resume (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
223 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Transmission resumed.\n");
224 struct TransmitClosure *tmit = cls;
225 if (NULL != tmit->host_ann)
226 GNUNET_SOCIAL_host_announce_resume (tmit->host_ann);
228 GNUNET_SOCIAL_guest_talk_resume (tmit->guest_talk);
233 notify_data (void *cls, uint16_t *data_size, void *data)
235 struct TransmitClosure *tmit = cls;
236 if (NULL != tmit->env)
238 GNUNET_ENV_environment_destroy (tmit->env);
241 if (0 == tmit->data_count)
247 uint16_t size = strlen (tmit->data[tmit->n]) + 1;
248 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
249 "Transmit notify data: %u bytes available, "
250 "processing fragment %u/%u (size %u).\n",
251 *data_size, tmit->n + 1, tmit->data_count, size);
252 if (*data_size < size)
256 return GNUNET_SYSERR;
259 if (GNUNET_YES != tmit->paused && 0 < tmit->data_delay[tmit->n])
261 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Transmission paused.\n");
262 tmit->paused = GNUNET_YES;
263 GNUNET_SCHEDULER_add_delayed (
264 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
265 tmit->data_delay[tmit->n]),
266 &transmit_resume, tmit);
270 tmit->paused = GNUNET_NO;
273 memcpy (data, tmit->data[tmit->n], size);
275 return ++tmit->n < tmit->data_count ? GNUNET_NO : GNUNET_YES;
282 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
283 "The host has left the place.\n");
284 GNUNET_SOCIAL_slicer_destroy (host_slicer);
294 schedule_host_leave (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
296 test = TEST_HOST_LEAVE;
297 GNUNET_SOCIAL_host_leave (hst, GNUNET_NO, &host_left, NULL);
302 host_farewell (void *cls,
303 struct GNUNET_SOCIAL_Nym *nym,
304 struct GNUNET_ENV_Environment *env,
305 size_t variable_count,
306 struct GNUNET_ENV_Modifier *variables)
308 // FIXME: this function is not called yet
309 struct GNUNET_CRYPTO_EcdsaPublicKey *nym_key = GNUNET_SOCIAL_nym_get_key (nym);
312 str = GNUNET_CRYPTO_ecdsa_public_key_to_string (nym_key);
313 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
314 "Nym %s has left the place.\n",
317 GNUNET_assert (0 == memcmp (&guest_pub_key, nym_key, sizeof (*nym_key)));
319 GNUNET_SCHEDULER_add_now (&schedule_host_leave, NULL);
324 guest_left (void *cls)
326 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
327 "The guest has left the place.\n");
328 GNUNET_SOCIAL_slicer_destroy (guest_slicer);
333 GNUNET_SCHEDULER_add_now (&schedule_host_leave, NULL);
340 test = TEST_GUEST_LEAVE;
341 /* FIXME test keep_active */
342 GNUNET_SOCIAL_guest_leave (gst, GNUNET_NO, &guest_left, NULL);
347 schedule_guest_leave (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
354 guest_recv_history_replay_latest_result (void *cls, int64_t result,
355 const void *data, uint16_t data_size)
357 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
358 "Test #%u: Guest received latest history replay result: %" PRId64 "\n"
360 test, result, data_size, data);
361 GNUNET_assert (2 == counter); /* message count */
362 GNUNET_assert (7 == result); /* fragment count */
364 GNUNET_SCHEDULER_add_now (&schedule_guest_leave, NULL);
369 guest_history_replay_latest ()
371 test = TEST_GUEST_HISTORY_REPLAY_LATEST;
373 GNUNET_SOCIAL_place_history_replay_latest (gst_plc, 3, "",
374 GNUNET_PSYC_HISTORY_REPLAY_LOCAL,
376 &guest_recv_history_replay_latest_result,
382 guest_recv_history_replay_result (void *cls, int64_t result,
383 const void *data, uint16_t data_size)
385 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
386 "Test #%u: Guest received history replay result: %" PRId64 "\n"
388 test, result, data_size, data);
389 GNUNET_assert (2 == counter); /* message count */
390 GNUNET_assert (7 == result); /* fragment count */
392 guest_history_replay_latest ();
397 guest_history_replay ()
399 test = TEST_GUEST_HISTORY_REPLAY;
401 GNUNET_SOCIAL_place_history_replay (gst_plc, 1, 3, "",
402 GNUNET_PSYC_HISTORY_REPLAY_LOCAL,
404 &guest_recv_history_replay_result,
410 guest_recv_method (void *cls,
411 const struct GNUNET_PSYC_MessageMethod *meth,
414 const struct GNUNET_SOCIAL_Nym *nym,
415 const char *method_name)
417 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
418 "Test #%u: Guest received method for message ID %" PRIu64 ":\n"
420 test, message_id, method_name, flags);
421 /* FIXME: check message */
426 guest_recv_modifier (void *cls,
427 const struct GNUNET_PSYC_MessageModifier *mod,
429 enum GNUNET_ENV_Operator oper,
434 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
435 "Test #%u: Guest received modifier for message ID %" PRIu64 ":\n"
437 test, message_id, oper, name, value_size, value);
442 guest_recv_data (void *cls,
443 const struct GNUNET_MessageHeader *msg,
445 uint64_t data_offset,
449 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
450 "Test #%u: Guest received data for message ID %" PRIu64 ":\n"
452 test, message_id, data_size, data);
457 guest_recv_eom (void *cls,
458 const struct GNUNET_MessageHeader *msg,
462 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
463 "Test #%u: Guest received end of message ID %" PRIu64
465 test, message_id, cancelled);
469 case TEST_HOST_ANNOUNCE:
470 test = TEST_HOST_ANNOUNCE_END;
473 case TEST_HOST_ANNOUNCE_END:
477 case TEST_HOST_ANNOUNCE2:
478 test = TEST_HOST_ANNOUNCE2_END;
481 case TEST_HOST_ANNOUNCE2_END:
485 case TEST_GUEST_HISTORY_REPLAY:
486 case TEST_GUEST_HISTORY_REPLAY_LATEST:
497 host_recv_method (void *cls,
498 const struct GNUNET_PSYC_MessageMethod *meth,
501 const struct GNUNET_SOCIAL_Nym *nym,
502 const char *method_name)
504 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
505 "Test #%u: Host received method for message ID %" PRIu64 ":\n"
507 test, message_id, method_name);
508 /* FIXME: check message */
513 host_recv_modifier (void *cls,
514 const struct GNUNET_PSYC_MessageModifier *mod,
516 enum GNUNET_ENV_Operator oper,
521 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
522 "Test #%u: Host received modifier for message ID %" PRIu64 ":\n"
524 test, message_id, oper, name, value_size, value);
529 host_recv_data (void *cls,
530 const struct GNUNET_MessageHeader *msg,
532 uint64_t data_offset,
536 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
537 "Test #%u: Host received data for message ID %" PRIu64 ":\n"
539 test, message_id, data_size, data);
544 host_recv_eom (void *cls,
545 const struct GNUNET_MessageHeader *msg,
549 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
550 "Test #%u: Host received end of message ID %" PRIu64
552 test, message_id, cancelled);
556 case TEST_HOST_ANNOUNCE:
557 test = TEST_HOST_ANNOUNCE_END;
560 case TEST_HOST_ANNOUNCE_END:
564 case TEST_HOST_ANNOUNCE2:
565 test = TEST_HOST_ANNOUNCE2_END;
568 case TEST_HOST_ANNOUNCE2_END:
572 case TEST_GUEST_TALK:
573 guest_history_replay ();
585 test = TEST_GUEST_TALK;
587 tmit = (struct TransmitClosure) {};
588 tmit.env = GNUNET_ENV_environment_create ();
589 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
590 "_bar_foo", DATA2ARG ("one two three"));
591 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
592 "_bar_baz", DATA2ARG ("four five"));
593 tmit.data[0] = "zzz xxx yyy";
594 tmit.data[1] = "zyx wvu tsr qpo";
595 tmit.data[2] = "testing ten nine eight";
599 = GNUNET_SOCIAL_guest_talk (gst, "_message_guest", tmit.env,
601 GNUNET_SOCIAL_TALK_NONE);
608 test = TEST_HOST_ANNOUNCE;
610 tmit = (struct TransmitClosure) {};
611 tmit.env = GNUNET_ENV_environment_create ();
612 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
613 "_foo", DATA2ARG ("bar baz"));
614 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
615 "_foo_bar", DATA2ARG ("foo bar"));
616 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
617 "_foo_bar_baz", DATA2ARG ("foo bar baz"));
618 tmit.data[0] = "aaa bbb ccc";
619 tmit.data[1] = "abc def ghi jkl";
620 tmit.data[2] = "testing one two three";
621 tmit.data[3] = "four five";
625 = GNUNET_SOCIAL_host_announce (hst, "_message_host", tmit.env,
627 GNUNET_SOCIAL_ANNOUNCE_NONE);
634 test = TEST_HOST_ANNOUNCE2;
636 tmit = (struct TransmitClosure) {};
637 tmit.env = GNUNET_ENV_environment_create ();
638 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
639 "_foo2", DATA2ARG ("BAR BAZ"));
640 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
641 "_foo2_bar", DATA2ARG ("FOO BAR"));
642 GNUNET_ENV_environment_add (tmit.env, GNUNET_ENV_OP_ASSIGN,
643 "_foo2_bar", DATA2ARG ("FOO BAR BAZ"));
644 tmit.data[0] = "AAA BBB CCC";
645 tmit.data[1] = "ABC DEF GHI JKL";
646 tmit.data[2] = "TESTING ONE TWO THREE";
650 = GNUNET_SOCIAL_host_announce (hst, "_message_host_two", tmit.env,
652 GNUNET_SOCIAL_ANNOUNCE_NONE);
657 guest_recv_entry_decision (void *cls,
659 const struct GNUNET_PSYC_Message *entry_resp)
661 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
662 "Guest received entry decision (try %u): %d.\n",
663 join_req_count, is_admitted);
665 if (NULL != entry_resp)
667 struct GNUNET_ENV_Environment *env = GNUNET_ENV_environment_create ();
668 const char *method_name = NULL;
669 const void *data = NULL;
670 uint16_t data_size = 0;
671 GNUNET_PSYC_message_parse (entry_resp, &method_name, env, &data, &data_size);
673 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
675 method_name, data_size, data);
676 /* FIXME: check response message */
681 case TEST_GUEST_RECV_ENTRY_DCSN_REFUSE:
682 GNUNET_assert (GNUNET_NO == is_admitted);
686 case TEST_GUEST_RECV_ENTRY_DCSN_ADMIT:
687 GNUNET_assert (GNUNET_YES == is_admitted);
698 host_answer_door (void *cls,
699 struct GNUNET_SOCIAL_Nym *nym,
700 const char *method_name,
701 struct GNUNET_ENV_Environment *env,
707 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
708 "Host received entry request from guest (try %u).\n",
710 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
712 method_name, data_size, data);
716 case TEST_HOST_ANSWER_DOOR_REFUSE:
717 test = TEST_GUEST_RECV_ENTRY_DCSN_REFUSE;
718 join_resp = GNUNET_PSYC_message_create ("_refuse_nym", env,
719 DATA2ARG ("Go away!"));
720 GNUNET_SOCIAL_host_entry_decision (hst, nym, GNUNET_NO, join_resp);
723 case TEST_HOST_ANSWER_DOOR_ADMIT:
724 test = TEST_GUEST_RECV_ENTRY_DCSN_ADMIT;
725 join_resp = GNUNET_PSYC_message_create ("_admit_nym", env,
726 DATA2ARG ("Welcome, nym!"));
727 GNUNET_SOCIAL_host_entry_decision (hst, nym, GNUNET_YES, join_resp);
737 guest_recv_local_enter (void *cls, int result, uint64_t max_message_id)
739 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Guest entered to local place.\n");
747 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Entering to place as guest.\n");
749 struct GuestEnterMessage *emsg = &guest_enter_msg;
751 emsg->method_name = "_request_enter";
752 emsg->env = GNUNET_ENV_environment_create ();
753 GNUNET_ENV_environment_add (emsg->env, GNUNET_ENV_OP_ASSIGN,
754 "_abc", "abc def", 7);
755 GNUNET_ENV_environment_add (emsg->env, GNUNET_ENV_OP_ASSIGN,
756 "_abc_def", "abc def ghi", 11);
757 emsg->data = "let me in";
758 emsg->data_size = strlen (emsg->data) + 1;
759 emsg->msg = GNUNET_PSYC_message_create (emsg->method_name, emsg->env,
760 emsg->data, emsg->data_size);
762 gst = GNUNET_SOCIAL_guest_enter (cfg, guest_ego, &place_pub_key,
763 &this_peer, 0, NULL, emsg->msg,
764 guest_slicer, &guest_recv_local_enter,
765 &guest_recv_entry_decision, NULL);
766 gst_plc = GNUNET_SOCIAL_guest_get_place (gst);
771 id_guest_ego_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
773 GNUNET_assert (NULL != ego);
776 guest_slicer = GNUNET_SOCIAL_slicer_create ();
777 GNUNET_SOCIAL_slicer_add (guest_slicer, "",
778 &guest_recv_method, &guest_recv_modifier,
779 &guest_recv_data, &guest_recv_eom, NULL);
780 test = TEST_HOST_ANSWER_DOOR_ADMIT;
787 id_guest_created (void *cls, const char *emsg)
791 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
792 "Could not create guest identity: %s\n", emsg);
793 #if ! DEBUG_TEST_SOCIAL
798 GNUNET_IDENTITY_ego_lookup (cfg, guest_name, &id_guest_ego_cb, NULL);
803 host_entered (void *cls, int result, uint64_t max_message_id)
805 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Host entered to place.\n");
807 GNUNET_IDENTITY_create (id, guest_name, &id_guest_created, NULL);
812 id_host_ego_cb (void *cls, const struct GNUNET_IDENTITY_Ego *ego)
814 GNUNET_assert (NULL != ego);
817 host_slicer = GNUNET_SOCIAL_slicer_create ();
818 GNUNET_SOCIAL_slicer_add (host_slicer, "",
819 &host_recv_method, &host_recv_modifier,
820 &host_recv_data, &host_recv_eom, NULL);
822 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Entering to place as host.\n");
823 hst = GNUNET_SOCIAL_host_enter (cfg, host_ego, place_key,
824 GNUNET_PSYC_CHANNEL_PRIVATE, host_slicer,
825 &host_entered, &host_answer_door,
826 &host_farewell, NULL);
827 hst_plc = GNUNET_SOCIAL_host_get_place (hst);
832 id_host_created (void *cls, const char *emsg)
836 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
837 "Could not create host identity: %s\n", emsg);
838 #if ! DEBUG_TEST_SOCIAL
843 GNUNET_IDENTITY_ego_lookup (cfg, host_name, &id_host_ego_cb, NULL);
848 identity_ego_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego,
849 void **ctx, const char *name)
856 core_connected (void *cls, const struct GNUNET_PeerIdentity *my_identity)
858 this_peer = *my_identity;
860 id = GNUNET_IDENTITY_connect (cfg, &identity_ego_cb, NULL);
861 GNUNET_IDENTITY_create (id, host_name, &id_host_created, NULL);
866 * Main function of the test, run from scheduler.
869 * @param cfg configuration we use (also to connect to Social service)
870 * @param peer handle to access more of the peer (not used)
873 #if DEBUG_TEST_SOCIAL
874 run (void *cls, char *const *args, const char *cfgfile,
875 const struct GNUNET_CONFIGURATION_Handle *c)
878 const struct GNUNET_CONFIGURATION_Handle *c,
879 struct GNUNET_TESTING_Peer *peer)
883 end_badly_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, &end_badly, NULL);
885 place_key = GNUNET_CRYPTO_eddsa_key_create ();
886 guest_key = GNUNET_CRYPTO_ecdsa_key_create ();
888 GNUNET_CRYPTO_eddsa_key_get_public (place_key, &place_pub_key);
889 GNUNET_CRYPTO_ecdsa_key_get_public (guest_key, &guest_pub_key);
891 core = GNUNET_CORE_connect (cfg, NULL, &core_connected, NULL, NULL,
892 NULL, GNUNET_NO, NULL, GNUNET_NO, NULL);
897 main (int argc, char *argv[])
900 #if DEBUG_TEST_SOCIAL
901 const struct GNUNET_GETOPT_CommandLineOption opts[] = {
902 GNUNET_GETOPT_OPTION_END
904 if (GNUNET_OK != GNUNET_PROGRAM_run (argc, argv, "test-social",
905 "test-social [options]",
909 if (0 != GNUNET_TESTING_peer_run ("test-social", "test_social.conf", &run, NULL))
915 /* end of test_social.c */