GNUnet  0.20.0
testing_cmds.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet
3  Copyright (C) 2021 GNUnet e.V.
4 
5  GNUnet is free software: you can redistribute it and/or modify it
6  under the terms of the GNU Affero General Public License as published
7  by the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  GNUnet is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Affero General Public License for more details.
14 
15  You should have received a copy of the GNU Affero General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
20 
27 #ifndef TESTING_CMDS_H
28 #define TESTING_CMDS_H
29 
30 #define HELPER_CMDS_BINARY "gnunet-cmds-helper"
31 #include "gnunet_common.h"
32 
34 
39 {
44 
49 
50  /* Followed by plugin name of the plugin running the test case. This is not NULL
51  * terminated */
52 };
53 
58 {
63 };
64 
66 {
71 };
72 
74 {
79 };
80 
82 {
87 
92 };
93 
94 
96 {
101 };
102 
104 {
109 };
110 
112 
118 
119 
127 struct GNUNET_TESTING_Command *
130 
131 
138 void
140  const struct GNUNET_HELPER_Handle *helper);
141 
142 #endif
143 /* end of testing_cmds.h */
struct GNUNET_TESTING_Interpreter * is
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
GNUNET_GenericReturnValue
Named constants for return values.
#define GNUNET_PACKED
gcc-ism to get packed structs.
The handle to a helper process.
Definition: helper.c:79
Header for all communications.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_LOCAL_TESTS_PREPARED.
Definition: testing_cmds.h:108
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_ALL_PEERS_STARTED.
Definition: testing_cmds.h:78
Initialization message for gnunet-cmds-testbed to start cmd binary.
Definition: testing_cmds.h:39
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_INIT.
Definition: testing_cmds.h:43
Reply message from cmds helper process.
Definition: testing_cmds.h:58
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY.
Definition: testing_cmds.h:62
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_FINISHED.
Definition: testing_cmds.h:86
enum GNUNET_GenericReturnValue rv
The exit status local test return with.
Definition: testing_cmds.h:91
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_LOCAL_TEST_PREPARED.
Definition: testing_cmds.h:100
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_CMDS_HELPER_PEER_STARTED.
Definition: testing_cmds.h:70
A command to be run by the interpreter.
Global state of the interpreter, used by a command to access information about other commands.
struct GNUNET_TESTING_Command * GNUNET_TESTING_interpreter_get_current_command(struct GNUNET_TESTING_Interpreter *is)
Returns the actual running command.
void GNUNET_TESTING_add_netjail_helper(struct GNUNET_TESTING_Interpreter *is, const struct GNUNET_HELPER_Handle *helper)
Adding a helper handle to the interpreter.