]> git.meshlink.io Git - meshlink-tiny/blobdiff - test/blackbox/test_case_optimal_pmtu_01/node_sim_relay.c
Remove the blackbox test suite.
[meshlink-tiny] / test / blackbox / test_case_optimal_pmtu_01 / node_sim_relay.c
diff --git a/test/blackbox/test_case_optimal_pmtu_01/node_sim_relay.c b/test/blackbox/test_case_optimal_pmtu_01/node_sim_relay.c
deleted file mode 100644 (file)
index 7823f4b..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
-    node_sim_relay.c -- Implementation of Node Simulation for Meshlink Testing
-    Copyright (C) 2019  Guus Sliepen <guus@meshlink.io>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License along
-    with this program; if not, write to the Free Software Foundation, Inc.,
-    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-*/
-
-#ifdef NDEBUG
-#undef NDEBUG
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <pthread.h>
-#include <assert.h>
-#include <signal.h>
-#include <time.h>
-#include "../common/common_handlers.h"
-#include "../common/test_step.h"
-#include "../common/network_namespace_framework.h"
-#include "../../utils.h"
-#include "../run_blackbox_tests/test_optimal_pmtu.h"
-
-extern bool test_pmtu_relay_running;
-
-void *node_sim_pmtu_relay_01(void *arg) {
-       mesh_arg_t *mesh_arg = (mesh_arg_t *)arg;
-       struct timeval main_loop_wait = { 5, 0 };
-
-       // Run relay node instance
-
-
-       meshlink_handle_t *mesh;
-       mesh = meshlink_open(mesh_arg->node_name, mesh_arg->confbase, mesh_arg->app_name, mesh_arg->dev_class);
-       assert(mesh);
-
-       //meshlink_set_log_cb(mesh, MESHLINK_DEBUG, meshlink_callback_logger);
-       meshlink_enable_discovery(mesh, false);
-
-       assert(meshlink_start(mesh));
-       //send_event(NODE_STARTED);
-
-       /* All test steps executed - wait for signals to stop/start or close the mesh */
-       while(test_pmtu_relay_running) {
-               select(1, NULL, NULL, NULL, &main_loop_wait);
-       }
-
-       meshlink_close(mesh);
-
-       return 0;
-}