diff options
Diffstat (limited to 'src/testing/testing_cmds.h')
-rw-r--r-- | src/testing/testing_cmds.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/src/testing/testing_cmds.h b/src/testing/testing_cmds.h index a5ea59a3a..9c261aab5 100644 --- a/src/testing/testing_cmds.h +++ b/src/testing/testing_cmds.h | |||
@@ -78,12 +78,17 @@ struct GNUNET_TESTING_CommandAllPeersStarted | |||
78 | struct GNUNET_MessageHeader header; | 78 | struct GNUNET_MessageHeader header; |
79 | }; | 79 | }; |
80 | 80 | ||
81 | struct GNUNET_CMDS_LOCAL_FINISHED | 81 | struct GNUNET_TESTING_CommandLocalFinished |
82 | { | 82 | { |
83 | /** | 83 | /** |
84 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_FINISHED | 84 | * Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_FINISHED |
85 | */ | 85 | */ |
86 | struct GNUNET_MessageHeader header; | 86 | struct GNUNET_MessageHeader header; |
87 | |||
88 | /** | ||
89 | * The exit status local test return with. | ||
90 | */ | ||
91 | enum GNUNET_GenericReturnValue rv; | ||
87 | }; | 92 | }; |
88 | 93 | ||
89 | 94 | ||
@@ -105,5 +110,34 @@ struct GNUNET_TESTING_CommandAllLocalTestsPrepared | |||
105 | 110 | ||
106 | GNUNET_NETWORK_STRUCT_END | 111 | GNUNET_NETWORK_STRUCT_END |
107 | 112 | ||
113 | /** | ||
114 | * Global state of the interpreter, used by a command | ||
115 | * to access information about other commands. | ||
116 | */ | ||
117 | struct GNUNET_TESTING_Interpreter; | ||
118 | |||
119 | |||
120 | /** | ||
121 | * Returns the actual running command. | ||
122 | * | ||
123 | * @param is Global state of the interpreter, used by a command | ||
124 | * to access information about other commands. | ||
125 | * @return The actual running command. | ||
126 | */ | ||
127 | struct GNUNET_TESTING_Command * | ||
128 | GNUNET_TESTING_interpreter_get_current_command ( | ||
129 | struct GNUNET_TESTING_Interpreter *is); | ||
130 | |||
131 | |||
132 | /** | ||
133 | * Adding a helper handle to the interpreter. | ||
134 | * | ||
135 | * @param is The interpreter. | ||
136 | * @param helper The helper handle. | ||
137 | */ | ||
138 | void | ||
139 | GNUNET_TESTING_add_netjail_helper (struct GNUNET_TESTING_Interpreter *is, | ||
140 | const struct GNUNET_HELPER_Handle *helper); | ||
141 | |||
108 | #endif | 142 | #endif |
109 | /* end of testing_cmds.h */ | 143 | /* end of testing_cmds.h */ |