aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-04-07 10:18:14 +0000
committerNathan S. Evans <evans@in.tum.de>2011-04-07 10:18:14 +0000
commit54268de4e171e77d019a900cc341ed4ffa689476 (patch)
tree84a65db77b8a7a76d448f4c9de0f5577e87b2358 /src/testing
parenta349743440abce61a229583c6088b6936b4af040 (diff)
downloadgnunet-54268de4e171e77d019a900cc341ed4ffa689476.tar.gz
gnunet-54268de4e171e77d019a900cc341ed4ffa689476.zip
add comment about extending this basic testcase
Diffstat (limited to 'src/testing')
-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