tool to use testing functionality from cmd line More...
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "gnunet-testbed", __VA_ARGS__) |
Functions | |
static int | create_unique_cfgs (const char *template, const unsigned int no) |
static void | run_no_scheduler (void *cls, char *const *args, const char *cfgfile, const struct GNUNET_CONFIGURATION_Handle *cfg) |
Main function that will be running without scheduler. More... | |
int | main (int argc, char *const *argv) |
The main function. More... | |
Variables | |
static int | ret |
Final status code. More... | |
static unsigned int | create_no |
Number of config files to create. More... | |
static char * | create_cfg_template |
Filename of the config template to be written. More... | |
tool to use testing functionality from cmd line
Definition in file gnunet-testbed.c.
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "gnunet-testbed", __VA_ARGS__) |
Definition at line 31 of file gnunet-testbed.c.
|
static |
Definition at line 51 of file gnunet-testbed.c.
References create_cfg_template, GNUNET_asprintf(), GNUNET_CONFIGURATION_create(), GNUNET_CONFIGURATION_destroy(), GNUNET_CONFIGURATION_dup(), GNUNET_CONFIGURATION_load(), GNUNET_CONFIGURATION_write(), GNUNET_DISK_file_test(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_free, GNUNET_log, GNUNET_NO, GNUNET_OK, GNUNET_TESTBED_configuration_create(), GNUNET_TESTBED_system_create(), GNUNET_TESTBED_system_destroy(), and GNUNET_YES.
Referenced by run_no_scheduler().
|
static |
Main function that will be running without scheduler.
cls | closure |
args | remaining command-line arguments |
cfgfile | name of the configuration file used (for saving, can be NULL!) |
cfg | configuration |
Definition at line 158 of file gnunet-testbed.c.
References create_cfg_template, create_no, create_unique_cfgs(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, and ret.
Referenced by main().
int main | ( | int | argc, |
char *const * | argv | ||
) |
The main function.
argc | number of arguments from the command line |
argv | command line arguments |
Definition at line 189 of file gnunet-testbed.c.
References create_cfg_template, create_no, gettext_noop, GNUNET_GETOPT_OPTION_END, GNUNET_GETOPT_option_string(), GNUNET_GETOPT_option_uint(), GNUNET_OK, GNUNET_PROGRAM_run2(), GNUNET_YES, options, ret, and run_no_scheduler().
|
static |
Final status code.
Definition at line 37 of file gnunet-testbed.c.
Referenced by main(), and run_no_scheduler().
|
static |
Number of config files to create.
Definition at line 42 of file gnunet-testbed.c.
Referenced by main(), and run_no_scheduler().
|
static |
Filename of the config template to be written.
Definition at line 47 of file gnunet-testbed.c.
Referenced by create_unique_cfgs(), main(), and run_no_scheduler().