Go to the source code of this file.
Functions | |
static char * | extract_filename (const char *file) |
Removes all directory separators from absolute filename. More... | |
char * | GNUNET_TRANSPORT_TESTING_get_test_name (const char *file) |
Extracts the test filename from an absolute file name and removes the extension. More... | |
char * | GNUNET_TRANSPORT_TESTING_get_test_source_name (const char *file) |
Extracts the filename from an absolute file name and removes the extension. More... | |
char * | GNUNET_TRANSPORT_TESTING_get_test_plugin_name (const char *file, const char *test) |
Extracts the plugin name from an absolute file name and the test name. More... | |
char * | GNUNET_TRANSPORT_TESTING_get_config_name (const char *file, int count) |
This function takes the filename (e.g. More... | |
|
static |
Removes all directory separators from absolute filename.
file | the absolute file name, e.g. as found in argv[0] |
Definition at line 37 of file transport-testing-filenames2.c.
References filename, GNUNET_free, GNUNET_strdup, pch, and res.
Referenced by GNUNET_TRANSPORT_TESTING_get_config_name(), GNUNET_TRANSPORT_TESTING_get_test_name(), GNUNET_TRANSPORT_TESTING_get_test_plugin_name(), and GNUNET_TRANSPORT_TESTING_get_test_source_name().
char * GNUNET_TRANSPORT_TESTING_get_test_name | ( | const char * | file | ) |
Extracts the test filename from an absolute file name and removes the extension.
file | absolute file name |
Definition at line 73 of file transport-testing-filenames2.c.
References extract_filename(), filename, GNUNET_free, GNUNET_strdup, and ret.
Referenced by GNUNET_TRANSPORT_TESTING_main_().
char * GNUNET_TRANSPORT_TESTING_get_test_source_name | ( | const char * | file | ) |
Extracts the filename from an absolute file name and removes the extension.
file | absolute file name |
Definition at line 107 of file transport-testing-filenames2.c.
References extract_filename().
Referenced by GNUNET_TRANSPORT_TESTING_main_().
char * GNUNET_TRANSPORT_TESTING_get_test_plugin_name | ( | const char * | file, |
const char * | test | ||
) |
Extracts the plugin name from an absolute file name and the test name.
file | absolute file name |
test | test name |
Definition at line 127 of file transport-testing-filenames2.c.
References extract_filename(), filename, GNUNET_free, GNUNET_strdup, ret, and t.
Referenced by GNUNET_TRANSPORT_TESTING_main_().
char * GNUNET_TRANSPORT_TESTING_get_config_name | ( | const char * | file, |
int | count | ||
) |
This function takes the filename (e.g.
argv[0), removes a "lt-"-prefix and if existing ".exe"-prefix and adds the peer-number
file | filename of the test, e.g. argv[0] |
count | peer number |
Definition at line 174 of file transport-testing-filenames2.c.
References extract_filename(), filename, GNUNET_asprintf(), GNUNET_free, and ret.
Referenced by GNUNET_TRANSPORT_TESTING_main_().