diff options
22 files changed, 39 insertions, 22 deletions
diff --git a/src/ats-test/test_transport_ats_1addr.conf b/src/ats-test/test_transport_ats_1addr.conf index ab6e9cb5a..e01f743d2 100644 --- a/src/ats-test/test_transport_ats_1addr.conf +++ b/src/ats-test/test_transport_ats_1addr.conf | |||
@@ -4,7 +4,7 @@ SERVICEHOME = /tmp/test-gnunet-testing/ | |||
4 | DEFAULTCONFIG = test_testing_data.conf | 4 | DEFAULTCONFIG = test_testing_data.conf |
5 | 5 | ||
6 | [TESTING] | 6 | [TESTING] |
7 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 7 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
8 | 8 | ||
9 | [nat] | 9 | [nat] |
10 | ALLOW_NAT = NO | 10 | ALLOW_NAT = NO |
diff --git a/src/ats-test/test_transport_ats_2addr.conf b/src/ats-test/test_transport_ats_2addr.conf index 3b5a6a87a..ce7d104ae 100644 --- a/src/ats-test/test_transport_ats_2addr.conf +++ b/src/ats-test/test_transport_ats_2addr.conf | |||
@@ -4,7 +4,7 @@ SERVICEHOME = /tmp/test-gnunet-testing/ | |||
4 | DEFAULTCONFIG = test_testing_data.conf | 4 | DEFAULTCONFIG = test_testing_data.conf |
5 | 5 | ||
6 | [TESTING] | 6 | [TESTING] |
7 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 7 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
8 | 8 | ||
9 | [transport-udp] | 9 | [transport-udp] |
10 | PORT = 2571 | 10 | PORT = 2571 |
diff --git a/src/ats-test/test_transport_ats_4addr.conf b/src/ats-test/test_transport_ats_4addr.conf index 830cd8810..cd224e6b0 100644 --- a/src/ats-test/test_transport_ats_4addr.conf +++ b/src/ats-test/test_transport_ats_4addr.conf | |||
@@ -4,7 +4,7 @@ SERVICEHOME = /tmp/test-gnunet-testing/ | |||
4 | DEFAULTCONFIG = test_testing_data.conf | 4 | DEFAULTCONFIG = test_testing_data.conf |
5 | 5 | ||
6 | [TESTING] | 6 | [TESTING] |
7 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 7 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
8 | 8 | ||
9 | [nat] | 9 | [nat] |
10 | ALLOW_NAT = NO | 10 | ALLOW_NAT = NO |
diff --git a/src/dht/test_dht_2dtorus.conf b/src/dht/test_dht_2dtorus.conf index 459ebf376..33d5a3624 100644 --- a/src/dht/test_dht_2dtorus.conf +++ b/src/dht/test_dht_2dtorus.conf | |||
@@ -66,7 +66,7 @@ F2F = NO | |||
66 | CONNECT_TIMEOUT = 60 s | 66 | CONNECT_TIMEOUT = 60 s |
67 | CONNECT_ATTEMPTS = 3 | 67 | CONNECT_ATTEMPTS = 3 |
68 | DEBUG = YES | 68 | DEBUG = YES |
69 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 69 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
70 | MAX_CONCURRENT_SSH = 20 | 70 | MAX_CONCURRENT_SSH = 20 |
71 | USE_PROGRESSBARS = YES | 71 | USE_PROGRESSBARS = YES |
72 | PEERGROUP_TIMEOUT = 2400 s | 72 | PEERGROUP_TIMEOUT = 2400 s |
diff --git a/src/dht/test_dht_api_data.conf b/src/dht/test_dht_api_data.conf index 06f9e46ef..e68e887c1 100644 --- a/src/dht/test_dht_api_data.conf +++ b/src/dht/test_dht_api_data.conf | |||
@@ -61,7 +61,7 @@ PORT = 2094 | |||
61 | WEAKRANDOM = NO | 61 | WEAKRANDOM = NO |
62 | 62 | ||
63 | [testing_old] | 63 | [testing_old] |
64 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 64 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
65 | 65 | ||
66 | [gnunetd] | 66 | [gnunetd] |
67 | HOSTKEY = $SERVICEHOME/.hostkey | 67 | HOSTKEY = $SERVICEHOME/.hostkey |
diff --git a/src/dht/test_dht_line.conf b/src/dht/test_dht_line.conf index 56c03f61a..884341dc7 100644 --- a/src/dht/test_dht_line.conf +++ b/src/dht/test_dht_line.conf | |||
@@ -66,7 +66,7 @@ F2F = NO | |||
66 | CONNECT_TIMEOUT = 60 s | 66 | CONNECT_TIMEOUT = 60 s |
67 | CONNECT_ATTEMPTS = 3 | 67 | CONNECT_ATTEMPTS = 3 |
68 | DEBUG = YES | 68 | DEBUG = YES |
69 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 69 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
70 | MAX_CONCURRENT_SSH = 10 | 70 | MAX_CONCURRENT_SSH = 10 |
71 | USE_PROGRESSBARS = YES | 71 | USE_PROGRESSBARS = YES |
72 | PEERGROUP_TIMEOUT = 2400 s | 72 | PEERGROUP_TIMEOUT = 2400 s |
diff --git a/src/dht/test_dht_multipeer_data.conf b/src/dht/test_dht_multipeer_data.conf index eae68f948..790421c69 100644 --- a/src/dht/test_dht_multipeer_data.conf +++ b/src/dht/test_dht_multipeer_data.conf | |||
@@ -101,7 +101,7 @@ USE_PROGRESSBARS = YES | |||
101 | #LOGNMODIFIER = .65 | 101 | #LOGNMODIFIER = .65 |
102 | #PERCENTAGE = .75 | 102 | #PERCENTAGE = .75 |
103 | NUM_PEERS = 10 | 103 | NUM_PEERS = 10 |
104 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 104 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
105 | 105 | ||
106 | [gnunetd] | 106 | [gnunetd] |
107 | HOSTKEY = $SERVICEHOME/.hostkey | 107 | HOSTKEY = $SERVICEHOME/.hostkey |
diff --git a/src/dht/test_dht_twopeer_data.conf b/src/dht/test_dht_twopeer_data.conf index cc47c6f36..8ff702047 100644 --- a/src/dht/test_dht_twopeer_data.conf +++ b/src/dht/test_dht_twopeer_data.conf | |||
@@ -48,7 +48,7 @@ WEAKRANDOM = YES | |||
48 | 48 | ||
49 | [testing_old] | 49 | [testing_old] |
50 | NUM_PEERS = 2 | 50 | NUM_PEERS = 2 |
51 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 51 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
52 | 52 | ||
53 | [gnunetd] | 53 | [gnunetd] |
54 | HOSTKEY = $SERVICEHOME/.hostkey | 54 | HOSTKEY = $SERVICEHOME/.hostkey |
diff --git a/src/dv/test_transport_dv_data.conf b/src/dv/test_transport_dv_data.conf index 80eb87329..1078c369f 100644 --- a/src/dv/test_transport_dv_data.conf +++ b/src/dv/test_transport_dv_data.conf | |||
@@ -54,7 +54,7 @@ CONNECT_TOPOLOGY = LINE | |||
54 | BLACKLIST_TOPOLOGY = LINE | 54 | BLACKLIST_TOPOLOGY = LINE |
55 | BLACKLIST_TRANSPORTS = tcp | 55 | BLACKLIST_TRANSPORTS = tcp |
56 | F2F = YES | 56 | F2F = YES |
57 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 57 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
58 | 58 | ||
59 | [fs] | 59 | [fs] |
60 | AUTOSTART = NO | 60 | AUTOSTART = NO |
diff --git a/src/fs/test_fs_defaults.conf b/src/fs/test_fs_defaults.conf index 671a43336..e0e697ec7 100644 --- a/src/fs/test_fs_defaults.conf +++ b/src/fs/test_fs_defaults.conf | |||
@@ -61,7 +61,7 @@ DELAY = YES | |||
61 | WEAKRANDOM = YES | 61 | WEAKRANDOM = YES |
62 | 62 | ||
63 | [testing_old] | 63 | [testing_old] |
64 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 64 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
65 | 65 | ||
66 | [dhtcache] | 66 | [dhtcache] |
67 | QUOTA=65536 | 67 | QUOTA=65536 |
diff --git a/src/gns/test_gns_defaults.conf b/src/gns/test_gns_defaults.conf index 1afd61ed7..f2ce34e2b 100644 --- a/src/gns/test_gns_defaults.conf +++ b/src/gns/test_gns_defaults.conf | |||
@@ -29,7 +29,7 @@ PORT = 2570 | |||
29 | NUM_PEERS = 5 | 29 | NUM_PEERS = 5 |
30 | WEAKRANDOM = YES | 30 | WEAKRANDOM = YES |
31 | F2F = YES | 31 | F2F = YES |
32 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 32 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
33 | 33 | ||
34 | [dht] | 34 | [dht] |
35 | AUTOSTART = NO | 35 | AUTOSTART = NO |
diff --git a/src/gns/test_gns_proxy.conf b/src/gns/test_gns_proxy.conf index 9dd4a472b..8083b4ccc 100644 --- a/src/gns/test_gns_proxy.conf +++ b/src/gns/test_gns_proxy.conf | |||
@@ -12,7 +12,7 @@ ALLOW_SHUTDOWN = YES | |||
12 | 12 | ||
13 | [testing] | 13 | [testing] |
14 | WEAKRANDOM = YES | 14 | WEAKRANDOM = YES |
15 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 15 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
16 | 16 | ||
17 | [gns] | 17 | [gns] |
18 | AUTOSTART = YES | 18 | AUTOSTART = YES |
diff --git a/src/integration-tests/test_connection_stability.conf b/src/integration-tests/test_connection_stability.conf index b3845452a..a0400d819 100644 --- a/src/integration-tests/test_connection_stability.conf +++ b/src/integration-tests/test_connection_stability.conf | |||
@@ -32,7 +32,7 @@ WEAKRANDOM = YES | |||
32 | [testing_old] | 32 | [testing_old] |
33 | NUM_PEERS = 5 | 33 | NUM_PEERS = 5 |
34 | F2F = YES | 34 | F2F = YES |
35 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 35 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
36 | 36 | ||
37 | [dht] | 37 | [dht] |
38 | AUTOSTART = NO | 38 | AUTOSTART = NO |
diff --git a/src/mesh/test_mesh_2dtorus.conf b/src/mesh/test_mesh_2dtorus.conf index 5d91a8b43..e247f9f8c 100644 --- a/src/mesh/test_mesh_2dtorus.conf +++ b/src/mesh/test_mesh_2dtorus.conf | |||
@@ -77,7 +77,7 @@ F2F = NO | |||
77 | CONNECT_TIMEOUT = 600 s | 77 | CONNECT_TIMEOUT = 600 s |
78 | CONNECT_ATTEMPTS = 2 | 78 | CONNECT_ATTEMPTS = 2 |
79 | DEBUG = YES | 79 | DEBUG = YES |
80 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 80 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
81 | MAX_CONCURRENT_SSH = 10 | 81 | MAX_CONCURRENT_SSH = 10 |
82 | USE_PROGRESSBARS = YES | 82 | USE_PROGRESSBARS = YES |
83 | PEERGROUP_TIMEOUT = 2400 s | 83 | PEERGROUP_TIMEOUT = 2400 s |
diff --git a/src/mesh/test_mesh_small.conf b/src/mesh/test_mesh_small.conf index 179264458..5d49443f0 100644 --- a/src/mesh/test_mesh_small.conf +++ b/src/mesh/test_mesh_small.conf | |||
@@ -81,7 +81,7 @@ F2F = NO | |||
81 | CONNECT_TIMEOUT = 660 s | 81 | CONNECT_TIMEOUT = 660 s |
82 | CONNECT_ATTEMPTS = 2 | 82 | CONNECT_ATTEMPTS = 2 |
83 | DEBUG = YES | 83 | DEBUG = YES |
84 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 84 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
85 | MAX_CONCURRENT_SSH = 10 | 85 | MAX_CONCURRENT_SSH = 10 |
86 | USE_PROGRESSBARS = YES | 86 | USE_PROGRESSBARS = YES |
87 | PEERGROUP_TIMEOUT = 2400 s | 87 | PEERGROUP_TIMEOUT = 2400 s |
diff --git a/src/nse/test_nse.conf b/src/nse/test_nse.conf index 4508e9ca7..66075d792 100644 --- a/src/nse/test_nse.conf +++ b/src/nse/test_nse.conf | |||
@@ -69,7 +69,7 @@ F2F = NO | |||
69 | CONNECT_TIMEOUT = 60 s | 69 | CONNECT_TIMEOUT = 60 s |
70 | CONNECT_ATTEMPTS = 3 | 70 | CONNECT_ATTEMPTS = 3 |
71 | #DEBUG = YES | 71 | #DEBUG = YES |
72 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 72 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
73 | MAX_CONCURRENT_SSH = 20 | 73 | MAX_CONCURRENT_SSH = 20 |
74 | USE_PROGRESSBARS = YES | 74 | USE_PROGRESSBARS = YES |
75 | PEERGROUP_TIMEOUT = 1000 s | 75 | PEERGROUP_TIMEOUT = 1000 s |
diff --git a/src/stream/test_stream_local.conf b/src/stream/test_stream_local.conf index 09929ca27..603a87a1c 100644 --- a/src/stream/test_stream_local.conf +++ b/src/stream/test_stream_local.conf | |||
@@ -64,7 +64,7 @@ WEAKRANDOM = YES | |||
64 | [testing_old] | 64 | [testing_old] |
65 | NUM_PEERS = 5 | 65 | NUM_PEERS = 5 |
66 | DEBUG = YES | 66 | DEBUG = YES |
67 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 67 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
68 | MAX_CONCURRENT_SSH = 10 | 68 | MAX_CONCURRENT_SSH = 10 |
69 | USE_PROGRESSBARS = YES | 69 | USE_PROGRESSBARS = YES |
70 | PEERGROUP_TIMEOUT = 2400 s | 70 | PEERGROUP_TIMEOUT = 2400 s |
diff --git a/src/testing/test_testing_defaults.conf b/src/testing/test_testing_defaults.conf index 0705b2d15..80049ba4c 100644 --- a/src/testing/test_testing_defaults.conf +++ b/src/testing/test_testing_defaults.conf | |||
@@ -33,7 +33,7 @@ PORT = 2570 | |||
33 | NUM_PEERS = 5 | 33 | NUM_PEERS = 5 |
34 | WEAKRANDOM = YES | 34 | WEAKRANDOM = YES |
35 | F2F = YES | 35 | F2F = YES |
36 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 36 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
37 | 37 | ||
38 | [dht] | 38 | [dht] |
39 | AUTOSTART = NO | 39 | AUTOSTART = NO |
diff --git a/src/testing_old/test_testing_2dtorus.conf b/src/testing_old/test_testing_2dtorus.conf index d69969f1a..69c59567d 100644 --- a/src/testing_old/test_testing_2dtorus.conf +++ b/src/testing_old/test_testing_2dtorus.conf | |||
@@ -68,7 +68,7 @@ F2F = NO | |||
68 | CONNECT_TIMEOUT = 600 s | 68 | CONNECT_TIMEOUT = 600 s |
69 | CONNECT_ATTEMPTS = 2 | 69 | CONNECT_ATTEMPTS = 2 |
70 | DEBUG = YES | 70 | DEBUG = YES |
71 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 71 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
72 | MAX_CONCURRENT_SSH = 10 | 72 | MAX_CONCURRENT_SSH = 10 |
73 | USE_PROGRESSBARS = YES | 73 | USE_PROGRESSBARS = YES |
74 | PEERGROUP_TIMEOUT = 2400 s | 74 | PEERGROUP_TIMEOUT = 2400 s |
diff --git a/src/testing_old/test_testing_defaults.conf b/src/testing_old/test_testing_defaults.conf index a89064f81..a28baa7be 100644 --- a/src/testing_old/test_testing_defaults.conf +++ b/src/testing_old/test_testing_defaults.conf | |||
@@ -30,7 +30,7 @@ PORT = 2570 | |||
30 | NUM_PEERS = 5 | 30 | NUM_PEERS = 5 |
31 | WEAKRANDOM = YES | 31 | WEAKRANDOM = YES |
32 | F2F = YES | 32 | F2F = YES |
33 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 33 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
34 | 34 | ||
35 | [dht] | 35 | [dht] |
36 | AUTOSTART = NO | 36 | AUTOSTART = NO |
diff --git a/src/testing_old/testing_group.c b/src/testing_old/testing_group.c index 62cc185ce..9191b9fdd 100644 --- a/src/testing_old/testing_group.c +++ b/src/testing_old/testing_group.c | |||
@@ -5940,9 +5940,26 @@ GNUNET_TESTING_daemons_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
5940 | GNUNET_CONFIGURATION_get_value_string (cfg, "TESTING_OLD", "HOSTKEYSFILE", | 5940 | GNUNET_CONFIGURATION_get_value_string (cfg, "TESTING_OLD", "HOSTKEYSFILE", |
5941 | &hostkeys_file)) | 5941 | &hostkeys_file)) |
5942 | { | 5942 | { |
5943 | /* This is a hack to make old testing able to load keys from datadir, | ||
5944 | * just as new testing does. | ||
5945 | * No need to document it, just convert everything to the new testing | ||
5946 | * framework... | ||
5947 | */ | ||
5948 | char *DATADIR = "${DATADIR}"; | ||
5949 | size_t ddl = strlen (DATADIR); | ||
5950 | if (strncmp (hostkeys_file, DATADIR, ddl) == 0) | ||
5951 | { | ||
5952 | char *data_dir; | ||
5953 | char *filename; | ||
5954 | data_dir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_DATADIR); | ||
5955 | GNUNET_asprintf (&filename, "%s%s", data_dir, &hostkeys_file[ddl]); | ||
5956 | GNUNET_free (data_dir); | ||
5957 | GNUNET_free (hostkeys_file); | ||
5958 | hostkeys_file = filename; | ||
5959 | } | ||
5943 | if (GNUNET_YES != GNUNET_DISK_file_test (hostkeys_file)) | 5960 | if (GNUNET_YES != GNUNET_DISK_file_test (hostkeys_file)) |
5944 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 5961 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
5945 | _("Could not read hostkeys file!\n")); | 5962 | _("Could not read hostkeys file `%s'!\n"), hostkeys_file); |
5946 | else | 5963 | else |
5947 | { | 5964 | { |
5948 | /* Check hostkey file size, read entire thing into memory */ | 5965 | /* Check hostkey file size, read entire thing into memory */ |
diff --git a/src/topology/test_gnunet_daemon_topology_data.conf b/src/topology/test_gnunet_daemon_topology_data.conf index d98dc9de7..c4e01aced 100644 --- a/src/topology/test_gnunet_daemon_topology_data.conf +++ b/src/topology/test_gnunet_daemon_topology_data.conf | |||
@@ -53,7 +53,7 @@ AUTOSTART = NO | |||
53 | WEAKRANDOM = YES | 53 | WEAKRANDOM = YES |
54 | 54 | ||
55 | [testing_old] | 55 | [testing_old] |
56 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | 56 | HOSTKEYSFILE = ${DATADIR}/testing_hostkeys.dat |
57 | 57 | ||
58 | [dns] | 58 | [dns] |
59 | AUTOSTART = NO | 59 | AUTOSTART = NO |