GNUnet  0.11.x
testing.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 
25 #include "gnunet_util_lib.h"
26 
31 // SUGGESTION: consider making this struct opaque (only known inside of libgnunettesting,
32 // say main loop and a few select commands, like next/fail/batch); + helper
33 // function to access 'cfg'?
35 {
36 
41 
46 
51 
56 
61 
67  int ip;
68 
72  int result;
73 
74 };
const struct GNUNET_CONFIGURATION_Handle * cfg
Our configuration.
Definition: testing.h:55
A command to be run by the interpreter.
Global state of the interpreter, used by a command to access information about other commands...
Definition: testing.h:34
struct GNUNET_SCHEDULER_Task * finish_task
Finish task of a blocking call to a commands finish method.
Definition: testing.h:50
struct GNUNET_TESTING_Command * commands
Commands the interpreter will run.
Definition: testing.h:40
int ip
Instruction pointer.
Definition: testing.h:67
struct GNUNET_SCHEDULER_Task * task
Interpreter task (if one is scheduled).
Definition: testing.h:45
configuration data
Definition: configuration.c:84
Entry in list of pending tasks.
Definition: scheduler.c:134
int result
Result of the testcases, GNUNET_OK on success.
Definition: testing.h:72
struct GNUNET_SCHEDULER_Task * timeout_task
Task run on timeout.
Definition: testing.h:60