static bool localnode = false;
static int setup_test(void **state) {
+ (void)state;
+
netns_create_topology(test_random_port_bindings_state);
fprintf(stderr, "\nCreated topology\n");
}
static int teardown_test(void **state) {
+ (void)state;
+
meshlink_destroy("nut");
meshlink_destroy("peer");
meshlink_destroy("relay");
}
static void execute_test(test_step_func_t step_func, void **state) {
+ (void)state;
+
fprintf(stderr, "\n\x1b[32mRunning Test\x1b[0m\n");
bool test_result = step_func();
}
static void message_log(meshlink_handle_t *mesh, meshlink_log_level_t level, const char *text) {
+ (void)level;
+
char *levelstr = "\x1b[32mRELAY";
if(strcmp(mesh->name, "peer") == 0) {