add TODO
[oweals/gnunet.git] / src / testing / test_testing_peergroup.c
index 98bd7d8695c84311737f5e3bea4a7d986f528ee4..6359af7545fdc5b54be88f826c288eb1396c077a 100644 (file)
@@ -80,6 +80,22 @@ my_cb (void *cls,
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Peer Group started successfully, ending test!\n");
+  /**
+   * If something is to actually be DONE with the testcase, it should
+   * be put in here.  Usually there will be a struct declared (or global
+   * variables can be used) to keep track of the state, statistics,
+   * handles to peers, etc.  The example here is the opaque "TestCaseData"
+   * struct that could be passed into a function "additional_code_for_testing"
+   * which can be used to perform actions on the peers in the peergroup.
+   * Also, the GNUNET_TESTING_daemons_stop call would need to be removed,
+   * and only called once all of the testing is complete.
+   */
+
+  /**
+   * struct TestcaseData *state_closure;
+   * GNUNET_SCHEDULER_add_now(&additional_code_for_testing, state_closure);
+   */
+
   GNUNET_TESTING_daemons_stop (pg, TIMEOUT, &shutdown_callback, NULL);
 }