aboutsummaryrefslogtreecommitdiff
path: root/src/testbed
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed')
-rw-r--r--src/testbed/Makefile.am14
-rw-r--r--src/testbed/gnunet-helper-testbed.c4
-rw-r--r--src/testbed/gnunet-testbed-profiler.c4
-rw-r--r--src/testbed/gnunet_testbed_mpi_spawn.c2
-rw-r--r--src/testbed/testbed_api_hosts.c4
-rw-r--r--src/testbed/testbed_api_testbed.c2
6 files changed, 8 insertions, 22 deletions
diff --git a/src/testbed/Makefile.am b/src/testbed/Makefile.am
index f5d3647ae..57ea49a00 100644
--- a/src/testbed/Makefile.am
+++ b/src/testbed/Makefile.am
@@ -9,11 +9,6 @@ if USE_COVERAGE
9 XLIB = -lgcov 9 XLIB = -lgcov
10endif 10endif
11 11
12if ENABLE_LL
13 ll_binaries = \
14 gnunet-testbed-mpi-spawn
15endif
16
17libexecdir= $(pkglibdir)/libexec/ 12libexecdir= $(pkglibdir)/libexec/
18 13
19pkgcfgdir= $(pkgdatadir)/config.d/ 14pkgcfgdir= $(pkgdatadir)/config.d/
@@ -28,7 +23,6 @@ libexec_PROGRAMS = \
28 gnunet-daemon-testbed-blacklist 23 gnunet-daemon-testbed-blacklist
29 24
30bin_PROGRAMS = \ 25bin_PROGRAMS = \
31 $(ll_binaries) \
32 gnunet-testbed-profiler 26 gnunet-testbed-profiler
33 27
34gnunet_service_testbed_SOURCES = \ 28gnunet_service_testbed_SOURCES = \
@@ -93,14 +87,6 @@ gnunet_daemon_testbed_blacklist_DEPENDENCIES = \
93 $(top_builddir)/src/transport/libgnunettransport.la \ 87 $(top_builddir)/src/transport/libgnunettransport.la \
94 $(top_builddir)/src/util/libgnunetutil.la 88 $(top_builddir)/src/util/libgnunetutil.la
95 89
96gnunet_testbed_mpi_spawn_SOURCES = gnunet_testbed_mpi_spawn.c
97gnunet_testbed_mpi_spawn_LDADD = $(XLIB) \
98 $(top_builddir)/src/util/libgnunetutil.la \
99 $(top_builddir)/src/testbed/libgnunettestbed.la
100gnunet_testbed_mpi_spawn_DEPENDENCIES = \
101 $(top_builddir)/src/util/libgnunetutil.la \
102 libgnunettestbed.la
103
104lib_LTLIBRARIES = \ 90lib_LTLIBRARIES = \
105 libgnunettestbed.la \ 91 libgnunettestbed.la \
106 libgnunettestbedlogger.la 92 libgnunettestbedlogger.la
diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c
index f89d8af8f..43040e146 100644
--- a/src/testbed/gnunet-helper-testbed.c
+++ b/src/testbed/gnunet-helper-testbed.c
@@ -166,7 +166,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
166 if (NULL != testbed) 166 if (NULL != testbed)
167 { 167 {
168 LOG_DEBUG ("Killing testbed\n"); 168 LOG_DEBUG ("Killing testbed\n");
169 GNUNET_break (0 == GNUNET_OS_process_kill (testbed, SIGTERM)); 169 GNUNET_break (0 == GNUNET_OS_process_kill (testbed, GNUNET_TERM_SIG));
170 } 170 }
171 if (GNUNET_SCHEDULER_NO_TASK != read_task_id) 171 if (GNUNET_SCHEDULER_NO_TASK != read_task_id)
172 { 172 {
@@ -298,7 +298,7 @@ child_death_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
298 GNUNET_OS_process_destroy (testbed); 298 GNUNET_OS_process_destroy (testbed);
299 testbed = NULL; 299 testbed = NULL;
300 /* Send SIGTERM to our process group */ 300 /* Send SIGTERM to our process group */
301 if (0 != PLIBC_KILL (0, SIGTERM)) 301 if (0 != PLIBC_KILL (0, GNUNET_TERM_SIG))
302 { 302 {
303 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "signal"); 303 GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "signal");
304 shutdown_now (); /* Couldn't send the signal, we shutdown frowning */ 304 shutdown_now (); /* Couldn't send the signal, we shutdown frowning */
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c
index c6c472f92..5e4678590 100644
--- a/src/testbed/gnunet-testbed-profiler.c
+++ b/src/testbed/gnunet-testbed-profiler.c
@@ -225,7 +225,7 @@ test_run (void *cls,
225 result = GNUNET_OK; 225 result = GNUNET_OK;
226 fprintf (stdout, "\n"); 226 fprintf (stdout, "\n");
227 print_overlay_links_summary (); 227 print_overlay_links_summary ();
228#if !ENABLE_LL 228#if !ENABLE_SUPERMUC
229 fprintf (stdout, "Testbed running, waiting for keystroke to shut down\n"); 229 fprintf (stdout, "Testbed running, waiting for keystroke to shut down\n");
230 fflush (stdout); 230 fflush (stdout);
231 (void) getc (stdin); 231 (void) getc (stdin);
@@ -281,7 +281,7 @@ main (int argc, char *const *argv)
281 {'e', "num-errors", "COUNT", 281 {'e', "num-errors", "COUNT",
282 gettext_noop ("tolerate COUNT number of continious timeout failures"), 282 gettext_noop ("tolerate COUNT number of continious timeout failures"),
283 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_cont_fails}, 283 GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_cont_fails},
284#if !ENABLE_LL 284#if !ENABLE_SUPERMUC
285 {'H', "hosts", "FILENAME", 285 {'H', "hosts", "FILENAME",
286 gettext_noop ("name of the file with the login information for the testbed"), 286 gettext_noop ("name of the file with the login information for the testbed"),
287 GNUNET_YES, &GNUNET_GETOPT_set_string, &hosts_file}, 287 GNUNET_YES, &GNUNET_GETOPT_set_string, &hosts_file},
diff --git a/src/testbed/gnunet_testbed_mpi_spawn.c b/src/testbed/gnunet_testbed_mpi_spawn.c
index a7652cfd8..d3a78d3d4 100644
--- a/src/testbed/gnunet_testbed_mpi_spawn.c
+++ b/src/testbed/gnunet_testbed_mpi_spawn.c
@@ -121,7 +121,7 @@ terminate_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
121 } 121 }
122 } 122 }
123 hard_kill++; 123 hard_kill++;
124 GNUNET_break (0 == GNUNET_OS_process_kill (child, SIGTERM)); 124 GNUNET_break (0 == GNUNET_OS_process_kill (child, GNUNET_TERM_SIG));
125 LOG (GNUNET_ERROR_TYPE_INFO, _("Waiting for child to exit.\n")); 125 LOG (GNUNET_ERROR_TYPE_INFO, _("Waiting for child to exit.\n"));
126} 126}
127 127
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c
index 51bd632c7..2b0d20127 100644
--- a/src/testbed/testbed_api_hosts.c
+++ b/src/testbed/testbed_api_hosts.c
@@ -565,7 +565,7 @@ GNUNET_TESTBED_hosts_load_from_loadleveler (const struct
565 GNUNET_CONFIGURATION_Handle *cfg, 565 GNUNET_CONFIGURATION_Handle *cfg,
566 struct GNUNET_TESTBED_Host ***hosts) 566 struct GNUNET_TESTBED_Host ***hosts)
567{ 567{
568#if !ENABLE_LL 568#if !ENABLE_SUPERMUC
569 LOG (GNUNET_ERROR_TYPE_ERROR, 569 LOG (GNUNET_ERROR_TYPE_ERROR,
570 _("The function %s is only available when compiled with (--with-ll)\n"), 570 _("The function %s is only available when compiled with (--with-ll)\n"),
571 __func__); 571 __func__);
@@ -1374,7 +1374,7 @@ GNUNET_TESTBED_is_host_habitable_cancel (struct
1374 *handle) 1374 *handle)
1375{ 1375{
1376 GNUNET_SCHEDULER_cancel (handle->habitability_check_task); 1376 GNUNET_SCHEDULER_cancel (handle->habitability_check_task);
1377 (void) GNUNET_OS_process_kill (handle->auxp, SIGTERM); 1377 (void) GNUNET_OS_process_kill (handle->auxp, GNUNET_TERM_SIG);
1378 (void) GNUNET_OS_process_wait (handle->auxp); 1378 (void) GNUNET_OS_process_wait (handle->auxp);
1379 GNUNET_OS_process_destroy (handle->auxp); 1379 GNUNET_OS_process_destroy (handle->auxp);
1380 free_argv (handle->helper_argv); 1380 free_argv (handle->helper_argv);
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c
index 2d420c3e3..17f50bad6 100644
--- a/src/testbed/testbed_api_testbed.c
+++ b/src/testbed/testbed_api_testbed.c
@@ -1255,7 +1255,7 @@ GNUNET_TESTBED_run (const char *host_filename,
1255 GNUNET_assert (num_peers > 0); 1255 GNUNET_assert (num_peers > 0);
1256 rc = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_RunHandle)); 1256 rc = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_RunHandle));
1257 rc->cfg = GNUNET_CONFIGURATION_dup (cfg); 1257 rc->cfg = GNUNET_CONFIGURATION_dup (cfg);
1258#if ENABLE_LL 1258#if ENABLE_SUPERMUC
1259 rc->num_hosts = GNUNET_TESTBED_hosts_load_from_loadleveler (rc->cfg, 1259 rc->num_hosts = GNUNET_TESTBED_hosts_load_from_loadleveler (rc->cfg,
1260 &rc->hosts); 1260 &rc->hosts);
1261 if (0 == rc->num_hosts) 1261 if (0 == rc->num_hosts)