aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/test_testbed_api_3peers_3controllers.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-08 14:50:23 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-08 14:50:23 +0000
commita514e1b40566226d87ffdd95a51df47b7613fd95 (patch)
treebeea8a850232016ed3773b0181fb7da844687af2 /src/testbed/test_testbed_api_3peers_3controllers.c
parent71db17488a21f8e45c8a1aa932e7edb983ff2a70 (diff)
downloadgnunet-a514e1b40566226d87ffdd95a51df47b7613fd95.tar.gz
gnunet-a514e1b40566226d87ffdd95a51df47b7613fd95.zip
added get peer config forwarding
Diffstat (limited to 'src/testbed/test_testbed_api_3peers_3controllers.c')
-rw-r--r--src/testbed/test_testbed_api_3peers_3controllers.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/testbed/test_testbed_api_3peers_3controllers.c b/src/testbed/test_testbed_api_3peers_3controllers.c
index 0634bf87e..f69355b3c 100644
--- a/src/testbed/test_testbed_api_3peers_3controllers.c
+++ b/src/testbed/test_testbed_api_3peers_3controllers.c
@@ -688,8 +688,7 @@ status_cb (void *cls, const struct GNUNET_CONFIGURATION_Handle *config, int stat
688 break; 688 break;
689 default: 689 default:
690 GNUNET_assert (0); 690 GNUNET_assert (0);
691 } 691 }
692
693} 692}
694 693
695 694
@@ -709,7 +708,7 @@ run (void *cls, char *const *args, const char *cfgfile,
709 GNUNET_assert (NULL != host); 708 GNUNET_assert (NULL != host);
710 cfg = GNUNET_CONFIGURATION_dup (config); 709 cfg = GNUNET_CONFIGURATION_dup (config);
711 cp1 = GNUNET_TESTBED_controller_start ("127.0.0.1", host, cfg, status_cb, 710 cp1 = GNUNET_TESTBED_controller_start ("127.0.0.1", host, cfg, status_cb,
712 NULL); 711 NULL);
713 abort_task = 712 abort_task =
714 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply 713 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_relative_multiply
715 (GNUNET_TIME_UNIT_MINUTES, 3), &do_abort, 714 (GNUNET_TIME_UNIT_MINUTES, 3), &do_abort,
@@ -718,7 +717,9 @@ run (void *cls, char *const *args, const char *cfgfile,
718 717
719 718
720/** 719/**
721 * Function to check if password-less SSH logins to given ip work 720 * Function to check if
721 * 1. Password-less SSH logins to given ip work
722 * 2. gnunet-helper-testbed is found on the PATH on the remote side
722 * 723 *
723 * @param host_str numeric representation of the host's ip 724 * @param host_str numeric representation of the host's ip
724 * @return GNUNET_YES if password-less SSH login to the given host works; 725 * @return GNUNET_YES if password-less SSH login to the given host works;
@@ -728,8 +729,9 @@ static int
728check_ssh (char *host_str) 729check_ssh (char *host_str)
729{ 730{
730 char *const remote_args[] = { 731 char *const remote_args[] = {
731 "ssh", "-o", "BatchMode=yes", "-o", "CheckHostIP=no", "-q", 732 "ssh", "-o", "BatchMode=yes", "-o", "CheckHostIP=no",
732 host_str, "echo", "SSH", "works", NULL 733 "-o", "NoHostAuthenticationForLocalhost=yes", "-q",
734 host_str, "which", "gnunet-helper-testbed", NULL
733 }; 735 };
734 struct GNUNET_OS_Process *auxp; 736 struct GNUNET_OS_Process *auxp;
735 enum GNUNET_OS_ProcessStatusType type; 737 enum GNUNET_OS_ProcessStatusType type;
@@ -760,8 +762,8 @@ int
760main (int argc, char **argv) 762main (int argc, char **argv)
761{ 763{
762 char *const argv2[] = { "test_testbed_api_3peers_3controllers", 764 char *const argv2[] = { "test_testbed_api_3peers_3controllers",
763 "-c", "test_testbed_api.conf", 765 "-c", "test_testbed_api.conf",
764 NULL 766 NULL
765 }; 767 };
766 struct GNUNET_GETOPT_CommandLineOption options[] = { 768 struct GNUNET_GETOPT_CommandLineOption options[] = {
767 GNUNET_GETOPT_OPTION_END 769 GNUNET_GETOPT_OPTION_END