diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-06 17:59:35 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-06 17:59:35 +0000 |
commit | 98ebd9b7431b176365a8cd7352b43ad306d3e1ad (patch) | |
tree | fa6144bdf0a4c702e808e94abbcc8d2ec6dd4012 /src/testing/testing.c | |
parent | b2e7a0706c2810c62282d6f4c9233da7ab1c283e (diff) | |
download | gnunet-98ebd9b7431b176365a8cd7352b43ad306d3e1ad.tar.gz gnunet-98ebd9b7431b176365a8cd7352b43ad306d3e1ad.zip |
-removing bogus/legacy debug statements, not passing -L DEBUG to arm anymore
Diffstat (limited to 'src/testing/testing.c')
-rw-r--r-- | src/testing/testing.c | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index e2b1e684f..b35f597bf 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -37,10 +37,6 @@ | |||
37 | #include "gnunet_transport_service.h" | 37 | #include "gnunet_transport_service.h" |
38 | #include "gnunet_hello_lib.h" | 38 | #include "gnunet_hello_lib.h" |
39 | 39 | ||
40 | #define DEBUG_TESTING GNUNET_EXTRA_LOGGING | ||
41 | |||
42 | #define DEBUG_TESTING_RECONNECT GNUNET_EXTRA_LOGGING | ||
43 | |||
44 | /** | 40 | /** |
45 | * Hack to deal with initial HELLO's being often devoid of addresses. | 41 | * Hack to deal with initial HELLO's being often devoid of addresses. |
46 | * This hack causes 'process_hello' to ignore HELLOs without addresses. | 42 | * This hack causes 'process_hello' to ignore HELLOs without addresses. |
@@ -268,9 +264,7 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
268 | if (d->ssh_port_str == NULL) | 264 | if (d->ssh_port_str == NULL) |
269 | { | 265 | { |
270 | d->proc_arm_peerinfo = GNUNET_OS_start_process (GNUNET_NO, NULL, d->pipe_stdout, "ssh", "ssh", | 266 | d->proc_arm_peerinfo = GNUNET_OS_start_process (GNUNET_NO, NULL, d->pipe_stdout, "ssh", "ssh", |
271 | #if !DEBUG_TESTING | ||
272 | "-q", | 267 | "-q", |
273 | #endif | ||
274 | dst, "gnunet-peerinfo", "-c", | 268 | dst, "gnunet-peerinfo", "-c", |
275 | d->cfgfile, "-sq", NULL); | 269 | d->cfgfile, "-sq", NULL); |
276 | } | 270 | } |
@@ -279,9 +273,7 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
279 | d->proc_arm_peerinfo = | 273 | d->proc_arm_peerinfo = |
280 | GNUNET_OS_start_process (GNUNET_NO, NULL, d->pipe_stdout, "ssh", "ssh", "-p", | 274 | GNUNET_OS_start_process (GNUNET_NO, NULL, d->pipe_stdout, "ssh", "ssh", "-p", |
281 | d->ssh_port_str, | 275 | d->ssh_port_str, |
282 | #if !DEBUG_TESTING | ||
283 | "-q", | 276 | "-q", |
284 | #endif | ||
285 | dst, "gnunet-peerinfo", "-c", d->cfgfile, | 277 | dst, "gnunet-peerinfo", "-c", d->cfgfile, |
286 | "-sq", NULL); | 278 | "-sq", NULL); |
287 | } | 279 | } |
@@ -444,13 +436,8 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
444 | if (d->ssh_port_str == NULL) | 436 | if (d->ssh_port_str == NULL) |
445 | { | 437 | { |
446 | d->proc_arm_start = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", | 438 | d->proc_arm_start = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", |
447 | #if !DEBUG_TESTING | ||
448 | "-q", | 439 | "-q", |
449 | #endif | ||
450 | dst, "gnunet-arm", | 440 | dst, "gnunet-arm", |
451 | #if DEBUG_TESTING | ||
452 | "-L", "DEBUG", | ||
453 | #endif | ||
454 | "-c", d->cfgfile, "-s", "-q", "-T", | 441 | "-c", d->cfgfile, "-s", "-q", "-T", |
455 | GNUNET_TIME_relative_to_string | 442 | GNUNET_TIME_relative_to_string |
456 | (GNUNET_TIME_absolute_get_remaining | 443 | (GNUNET_TIME_absolute_get_remaining |
@@ -462,13 +449,8 @@ start_fsm (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
462 | d->proc_arm_start = | 449 | d->proc_arm_start = |
463 | GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", "-p", | 450 | GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", "-p", |
464 | d->ssh_port_str, | 451 | d->ssh_port_str, |
465 | #if !DEBUG_TESTING | ||
466 | "-q", | 452 | "-q", |
467 | #endif | ||
468 | dst, "gnunet-arm", | 453 | dst, "gnunet-arm", |
469 | #if DEBUG_TESTING | ||
470 | "-L", "DEBUG", | ||
471 | #endif | ||
472 | "-c", d->cfgfile, "-s", "-q", "-T", | 454 | "-c", d->cfgfile, "-s", "-q", "-T", |
473 | GNUNET_TIME_relative_to_string | 455 | GNUNET_TIME_relative_to_string |
474 | (GNUNET_TIME_absolute_get_remaining | 456 | (GNUNET_TIME_absolute_get_remaining |
@@ -909,13 +891,8 @@ GNUNET_TESTING_daemon_start_stopped_service (struct GNUNET_TESTING_Daemon *d, | |||
909 | arg = GNUNET_strdup (d->hostname); | 891 | arg = GNUNET_strdup (d->hostname); |
910 | 892 | ||
911 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", | 893 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", |
912 | #if !DEBUG_TESTING | ||
913 | "-q", | 894 | "-q", |
914 | #endif | ||
915 | arg, "gnunet-arm", | 895 | arg, "gnunet-arm", |
916 | #if DEBUG_TESTING | ||
917 | "-L", "DEBUG", | ||
918 | #endif | ||
919 | "-c", d->cfgfile, "-i", service, "-q", | 896 | "-c", d->cfgfile, "-i", service, "-q", |
920 | "-T", | 897 | "-T", |
921 | GNUNET_TIME_relative_to_string (timeout), | 898 | GNUNET_TIME_relative_to_string (timeout), |
@@ -930,9 +907,6 @@ GNUNET_TESTING_daemon_start_stopped_service (struct GNUNET_TESTING_Daemon *d, | |||
930 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 907 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
931 | "Starting gnunet-arm with config `%s' locally.\n", d->cfgfile); | 908 | "Starting gnunet-arm with config `%s' locally.\n", d->cfgfile); |
932 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", | 909 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", |
933 | #if DEBUG_TESTING | ||
934 | "-L", "DEBUG", | ||
935 | #endif | ||
936 | "-c", d->cfgfile, "-i", service, "-q", | 910 | "-c", d->cfgfile, "-i", service, "-q", |
937 | "-T", | 911 | "-T", |
938 | GNUNET_TIME_relative_to_string (timeout), | 912 | GNUNET_TIME_relative_to_string (timeout), |
@@ -985,13 +959,8 @@ GNUNET_TESTING_daemon_start_service (struct GNUNET_TESTING_Daemon *d, | |||
985 | arg = GNUNET_strdup (d->hostname); | 959 | arg = GNUNET_strdup (d->hostname); |
986 | 960 | ||
987 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", | 961 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", |
988 | #if !DEBUG_TESTING | ||
989 | "-q", | 962 | "-q", |
990 | #endif | ||
991 | arg, "gnunet-arm", | 963 | arg, "gnunet-arm", |
992 | #if DEBUG_TESTING | ||
993 | "-L", "DEBUG", | ||
994 | #endif | ||
995 | "-c", d->cfgfile, "-i", service, "-q", | 964 | "-c", d->cfgfile, "-i", service, "-q", |
996 | "-T", | 965 | "-T", |
997 | GNUNET_TIME_relative_to_string (timeout), | 966 | GNUNET_TIME_relative_to_string (timeout), |
@@ -1007,9 +976,6 @@ GNUNET_TESTING_daemon_start_service (struct GNUNET_TESTING_Daemon *d, | |||
1007 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 976 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1008 | "Starting gnunet-arm with config `%s' locally.\n", d->cfgfile); | 977 | "Starting gnunet-arm with config `%s' locally.\n", d->cfgfile); |
1009 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", | 978 | d->proc_arm_srv_start = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", |
1010 | #if DEBUG_TESTING | ||
1011 | "-L", "DEBUG", | ||
1012 | #endif | ||
1013 | "-c", d->cfgfile, "-i", service, "-q", | 979 | "-c", d->cfgfile, "-i", service, "-q", |
1014 | "-T", | 980 | "-T", |
1015 | GNUNET_TIME_relative_to_string (timeout), | 981 | GNUNET_TIME_relative_to_string (timeout), |
@@ -1217,9 +1183,7 @@ GNUNET_TESTING_daemon_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1217 | if (ret->ssh_port_str == NULL) | 1183 | if (ret->ssh_port_str == NULL) |
1218 | { | 1184 | { |
1219 | ret->proc_arm_copying = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "scp", "scp", "-r", | 1185 | ret->proc_arm_copying = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "scp", "scp", "-r", |
1220 | #if !DEBUG_TESTING | ||
1221 | "-q", | 1186 | "-q", |
1222 | #endif | ||
1223 | servicehome, arg, NULL); | 1187 | servicehome, arg, NULL); |
1224 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1188 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1225 | "copying directory with command scp -r %s %s\n", | 1189 | "copying directory with command scp -r %s %s\n", |
@@ -1230,9 +1194,7 @@ GNUNET_TESTING_daemon_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
1230 | ret->proc_arm_copying = | 1194 | ret->proc_arm_copying = |
1231 | GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "scp", "scp", "-r", "-P", | 1195 | GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "scp", "scp", "-r", "-P", |
1232 | ret->ssh_port_str, | 1196 | ret->ssh_port_str, |
1233 | #if !DEBUG_TESTING | ||
1234 | "-q", | 1197 | "-q", |
1235 | #endif | ||
1236 | servicehome, arg, NULL); | 1198 | servicehome, arg, NULL); |
1237 | } | 1199 | } |
1238 | GNUNET_free (arg); | 1200 | GNUNET_free (arg); |
@@ -1341,13 +1303,8 @@ GNUNET_TESTING_daemon_restart (struct GNUNET_TESTING_Daemon *d, | |||
1341 | arg = GNUNET_strdup (d->hostname); | 1303 | arg = GNUNET_strdup (d->hostname); |
1342 | 1304 | ||
1343 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", | 1305 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", |
1344 | #if !DEBUG_TESTING | ||
1345 | "-q", | 1306 | "-q", |
1346 | #endif | ||
1347 | arg, "gnunet-arm", | 1307 | arg, "gnunet-arm", |
1348 | #if DEBUG_TESTING | ||
1349 | "-L", "DEBUG", | ||
1350 | #endif | ||
1351 | "-c", d->cfgfile, "-e", "-r", NULL); | 1308 | "-c", d->cfgfile, "-e", "-r", NULL); |
1352 | /* Use -r to restart arm and all services */ | 1309 | /* Use -r to restart arm and all services */ |
1353 | 1310 | ||
@@ -1358,9 +1315,6 @@ GNUNET_TESTING_daemon_restart (struct GNUNET_TESTING_Daemon *d, | |||
1358 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1315 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1359 | "Stopping gnunet-arm with config `%s' locally.\n", d->cfgfile); | 1316 | "Stopping gnunet-arm with config `%s' locally.\n", d->cfgfile); |
1360 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", | 1317 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", |
1361 | #if DEBUG_TESTING | ||
1362 | "-L", "DEBUG", | ||
1363 | #endif | ||
1364 | "-c", d->cfgfile, "-e", "-r", NULL); | 1318 | "-c", d->cfgfile, "-e", "-r", NULL); |
1365 | } | 1319 | } |
1366 | 1320 | ||
@@ -1422,13 +1376,8 @@ GNUNET_TESTING_daemon_stop_service (struct GNUNET_TESTING_Daemon *d, | |||
1422 | arg = GNUNET_strdup (d->hostname); | 1376 | arg = GNUNET_strdup (d->hostname); |
1423 | 1377 | ||
1424 | d->proc_arm_srv_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", | 1378 | d->proc_arm_srv_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", |
1425 | #if !DEBUG_TESTING | ||
1426 | "-q", | 1379 | "-q", |
1427 | #endif | ||
1428 | arg, "gnunet-arm", | 1380 | arg, "gnunet-arm", |
1429 | #if DEBUG_TESTING | ||
1430 | "-L", "DEBUG", | ||
1431 | #endif | ||
1432 | "-c", d->cfgfile, "-k", service, "-q", | 1381 | "-c", d->cfgfile, "-k", service, "-q", |
1433 | "-T", | 1382 | "-T", |
1434 | GNUNET_TIME_relative_to_string (timeout), | 1383 | GNUNET_TIME_relative_to_string (timeout), |
@@ -1443,9 +1392,6 @@ GNUNET_TESTING_daemon_stop_service (struct GNUNET_TESTING_Daemon *d, | |||
1443 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1392 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1444 | "Stopping gnunet-arm with config `%s' locally.\n", d->cfgfile); | 1393 | "Stopping gnunet-arm with config `%s' locally.\n", d->cfgfile); |
1445 | d->proc_arm_srv_stop = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", | 1394 | d->proc_arm_srv_stop = GNUNET_OS_start_process (GNUNET_YES, NULL, NULL, "gnunet-arm", "gnunet-arm", |
1446 | #if DEBUG_TESTING | ||
1447 | "-L", "DEBUG", | ||
1448 | #endif | ||
1449 | "-c", d->cfgfile, "-k", service, "-q", | 1395 | "-c", d->cfgfile, "-k", service, "-q", |
1450 | "-T", | 1396 | "-T", |
1451 | GNUNET_TIME_relative_to_string (timeout), | 1397 | GNUNET_TIME_relative_to_string (timeout), |
@@ -1598,13 +1544,8 @@ GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d, | |||
1598 | arg = GNUNET_strdup (d->hostname); | 1544 | arg = GNUNET_strdup (d->hostname); |
1599 | 1545 | ||
1600 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", | 1546 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "ssh", "ssh", |
1601 | #if !DEBUG_TESTING | ||
1602 | "-q", | 1547 | "-q", |
1603 | #endif | ||
1604 | arg, "gnunet-arm", | 1548 | arg, "gnunet-arm", |
1605 | #if DEBUG_TESTING | ||
1606 | "-L", "DEBUG", | ||
1607 | #endif | ||
1608 | "-c", d->cfgfile, "-e", "-q", "-T", | 1549 | "-c", d->cfgfile, "-e", "-q", "-T", |
1609 | GNUNET_TIME_relative_to_string (timeout), | 1550 | GNUNET_TIME_relative_to_string (timeout), |
1610 | del_arg, NULL); | 1551 | del_arg, NULL); |
@@ -1619,9 +1560,6 @@ GNUNET_TESTING_daemon_stop (struct GNUNET_TESTING_Daemon *d, | |||
1619 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1560 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1620 | "Stopping gnunet-arm with config `%s' locally.\n", d->cfgfile); | 1561 | "Stopping gnunet-arm with config `%s' locally.\n", d->cfgfile); |
1621 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "gnunet-arm", "gnunet-arm", | 1562 | d->proc_arm_stop = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "gnunet-arm", "gnunet-arm", |
1622 | #if DEBUG_TESTING | ||
1623 | "-L", "DEBUG", | ||
1624 | #endif | ||
1625 | "-c", d->cfgfile, "-e", "-q", "-T", | 1563 | "-c", d->cfgfile, "-e", "-q", "-T", |
1626 | GNUNET_TIME_relative_to_string (timeout), | 1564 | GNUNET_TIME_relative_to_string (timeout), |
1627 | del_arg, NULL); | 1565 | del_arg, NULL); |
@@ -1686,9 +1624,7 @@ GNUNET_TESTING_daemon_reconfigure (struct GNUNET_TESTING_Daemon *d, | |||
1686 | else | 1624 | else |
1687 | GNUNET_asprintf (&arg, "%s:%s", d->hostname, d->cfgfile); | 1625 | GNUNET_asprintf (&arg, "%s:%s", d->hostname, d->cfgfile); |
1688 | d->proc_arm_copying = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "scp", "scp", | 1626 | d->proc_arm_copying = GNUNET_OS_start_process (GNUNET_NO, NULL, NULL, "scp", "scp", |
1689 | #if !DEBUG_TESTING | ||
1690 | "-q", | 1627 | "-q", |
1691 | #endif | ||
1692 | d->cfgfile, arg, NULL); | 1628 | d->cfgfile, arg, NULL); |
1693 | GNUNET_free (arg); | 1629 | GNUNET_free (arg); |
1694 | if (NULL == d->proc_arm_copying) | 1630 | if (NULL == d->proc_arm_copying) |