aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_testing_peergroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/test_testing_peergroup.c')
-rw-r--r--src/testing/test_testing_peergroup.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testing/test_testing_peergroup.c b/src/testing/test_testing_peergroup.c
index 98bd7d869..6359af754 100644
--- a/src/testing/test_testing_peergroup.c
+++ b/src/testing/test_testing_peergroup.c
@@ -80,6 +80,22 @@ my_cb (void *cls,
80 80
81 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 81 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
82 "Peer Group started successfully, ending test!\n"); 82 "Peer Group started successfully, ending test!\n");
83 /**
84 * If something is to actually be DONE with the testcase, it should
85 * be put in here. Usually there will be a struct declared (or global
86 * variables can be used) to keep track of the state, statistics,
87 * handles to peers, etc. The example here is the opaque "TestCaseData"
88 * struct that could be passed into a function "additional_code_for_testing"
89 * which can be used to perform actions on the peers in the peergroup.
90 * Also, the GNUNET_TESTING_daemons_stop call would need to be removed,
91 * and only called once all of the testing is complete.
92 */
93
94 /**
95 * struct TestcaseData *state_closure;
96 * GNUNET_SCHEDULER_add_now(&additional_code_for_testing, state_closure);
97 */
98
83 GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL); 99 GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
84} 100}
85 101