aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-05 10:05:21 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-05 10:05:21 +0000
commitb86e160bf26efd69b4bd2b973ee712a846d83f0f (patch)
tree4ff0ad85277c4b7d4f0055e9681183fae402033f /src/testing/testing.c
parent7781e47b1a6f78f150eb8eab2d5997c099b8971c (diff)
downloadgnunet-b86e160bf26efd69b4bd2b973ee712a846d83f0f.tar.gz
gnunet-b86e160bf26efd69b4bd2b973ee712a846d83f0f.zip
documenting
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r--src/testing/testing.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 4bdad178f..f92dcc782 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -60,37 +60,44 @@
60enum StartPhase 60enum StartPhase
61 { 61 {
62 /** 62 /**
63 * FIXME. 63 * Copy the configuration file to the target system.
64 */ 64 */
65 SP_COPYING, 65 SP_COPYING,
66 66
67 /** 67 /**
68 * FIXME. 68 * Configuration file has been copied, start ARM on target system.
69 */ 69 */
70 SP_COPIED, 70 SP_COPIED,
71 71
72 /** 72 /**
73 * FIXME. 73 * ARM has been started, check that it has properly daemonized and
74 * then try to connect to the CORE service (which should be
75 * auto-started by ARM).
74 */ 76 */
75 SP_START_ARMING, 77 SP_START_ARMING,
76 78
77 /** 79 /**
78 * FIXME. 80 * We're waiting for CORE to start.
79 */ 81 */
80 SP_START_CORE, 82 SP_START_CORE,
81 83
82 /** 84 /**
83 * FIXME. 85 * Core has notified us that we've established a connection to the service.
86 * The main FSM halts here and waits to be moved to UPDATE or CLEANUP.
84 */ 87 */
85 SP_START_DONE, 88 SP_START_DONE,
86 89
87 /** 90 /**
88 * FIXME. 91 * We've been asked to terminate the instance and are now waiting for
92 * the remote command to delete the configuration file to complete.
89 */ 93 */
90 SP_CLEANUP, 94 SP_CLEANUP,
91 95
92 /** 96 /**
93 * FIXME. 97 * We've received a configuration update and are currently waiting for
98 * the copy process for the update to complete. Once it is, we will
99 * return to "SP_START_DONE" (and rely on ARM to restart all affected
100 * services).
94 */ 101 */
95 SP_CONFIG_UPDATE 102 SP_CONFIG_UPDATE
96 }; 103 };
@@ -223,6 +230,7 @@ testing_init (void *cls,
223 struct GNUNET_TESTING_Daemon *d = cls; 230 struct GNUNET_TESTING_Daemon *d = cls;
224 GNUNET_TESTING_NotifyDaemonRunning cb; 231 GNUNET_TESTING_NotifyDaemonRunning cb;
225 232
233 GNUNET_assert (d->phase == SP_START_CORE);
226 d->phase = SP_START_DONE; 234 d->phase = SP_START_DONE;
227 cb = d->cb; 235 cb = d->cb;
228 d->cb = NULL; 236 d->cb = NULL;