diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-23 15:40:33 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-09-23 15:40:33 +0000 |
commit | 8ccd3808e7c7cd1bdcdf1106a1f2d913da217c98 (patch) | |
tree | 1b4100b88feb8f38dfd586cb2576d2023b0ae806 /src/dv | |
parent | f73b28872af8eeecf07c5755815962db68549810 (diff) | |
download | gnunet-8ccd3808e7c7cd1bdcdf1106a1f2d913da217c98.tar.gz gnunet-8ccd3808e7c7cd1bdcdf1106a1f2d913da217c98.zip |
move testbed setup to template
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/template_dv.conf | 14 | ||||
-rw-r--r-- | src/dv/test_transport_blacklist.c | 1 | ||||
-rw-r--r-- | src/dv/test_transport_blacklist_data.conf | 5 | ||||
-rw-r--r-- | src/dv/test_transport_dv.c | 4 | ||||
-rw-r--r-- | src/dv/test_transport_dv_data.conf | 4 |
5 files changed, 13 insertions, 15 deletions
diff --git a/src/dv/template_dv.conf b/src/dv/template_dv.conf index f0567e823..812b6975c 100644 --- a/src/dv/template_dv.conf +++ b/src/dv/template_dv.conf | |||
@@ -9,24 +9,28 @@ | |||
9 | # | 9 | # |
10 | # Allowed connections: | 10 | # Allowed connections: |
11 | # OF84 - M1RG | 11 | # OF84 - M1RG |
12 | # OF84 - 548J | ||
13 | # OF84 - 93AR | 12 | # OF84 - 93AR |
14 | 13 | # M1RG - 93AR | |
15 | # 548J - M1RG | 14 | # 548J - M1RG |
16 | # 548J - 93AR | 15 | # 548J - 93AR |
17 | # | 16 | # |
18 | # Disallowed connections: | 17 | # Disallowed connections: |
19 | # M1RG - 93AR | 18 | # OF84 - 548J |
19 | |||
20 | [testbed] | ||
21 | OVERLAY_TOPOLOGY = CLIQUE | ||
22 | SETUP_TIMEOUT = 1 m | ||
23 | OPERATION_TIMEOUT = 5 s | ||
20 | 24 | ||
21 | [transport-blacklist-OF84RAOAU2B1SOSEHJH6350MA0F7C98U55RI76LGIQOM7O33TFHPNUFB47CDBSCOLIINMVJ2U82445ABOBQRIVREG20L31KVDV5HG60] | 25 | [transport-blacklist-OF84RAOAU2B1SOSEHJH6350MA0F7C98U55RI76LGIQOM7O33TFHPNUFB47CDBSCOLIINMVJ2U82445ABOBQRIVREG20L31KVDV5HG60] |
26 | 548J7M14O4I0F8I84U0UFARVJ97DB6QOT3MCA8O8SNAIT5JJ8TR95LUVAP3N5L7DN33IB49SNMF3Q3C0VPLTGP9ASCULA9S2OIMHHH8 = tcp | ||
22 | 27 | ||
23 | [transport-blacklist-M1RGJB4FQSM17JJ3M9BF7Q0I8MCO8C462NMOHI26RLT7C7A2KE6HCOPRA4ARM5HPL1J9IDDK5G8SFU5GUSHCTBH90ECETK1BFQD76R0] | 28 | [transport-blacklist-M1RGJB4FQSM17JJ3M9BF7Q0I8MCO8C462NMOHI26RLT7C7A2KE6HCOPRA4ARM5HPL1J9IDDK5G8SFU5GUSHCTBH90ECETK1BFQD76R0] |
24 | 93ARIS6Q347RPU9EFPS9LA00VPHQLG3RBLKEKTHV4D6UVGEAC75KIIBFB5U9KK9P9P1RU1CBPV4BSSDUTB2AL2N2LG9KSO9APQNLS0O = tcp | ||
25 | 29 | ||
26 | [transport-blacklist-548J7M14O4I0F8I84U0UFARVJ97DB6QOT3MCA8O8SNAIT5JJ8TR95LUVAP3N5L7DN33IB49SNMF3Q3C0VPLTGP9ASCULA9S2OIMHHH8] | 30 | [transport-blacklist-548J7M14O4I0F8I84U0UFARVJ97DB6QOT3MCA8O8SNAIT5JJ8TR95LUVAP3N5L7DN33IB49SNMF3Q3C0VPLTGP9ASCULA9S2OIMHHH8] |
31 | OF84RAOAU2B1SOSEHJH6350MA0F7C98U55RI76LGIQOM7O33TFHPNUFB47CDBSCOLIINMVJ2U82445ABOBQRIVREG20L31KVDV5HG60 = tcp | ||
27 | 32 | ||
28 | [transport-blacklist-93ARIS6Q347RPU9EFPS9LA00VPHQLG3RBLKEKTHV4D6UVGEAC75KIIBFB5U9KK9P9P1RU1CBPV4BSSDUTB2AL2N2LG9KSO9APQNLS0O] | 33 | [transport-blacklist-93ARIS6Q347RPU9EFPS9LA00VPHQLG3RBLKEKTHV4D6UVGEAC75KIIBFB5U9KK9P9P1RU1CBPV4BSSDUTB2AL2N2LG9KSO9APQNLS0O] |
29 | M1RGJB4FQSM17JJ3M9BF7Q0I8MCO8C462NMOHI26RLT7C7A2KE6HCOPRA4ARM5HPL1J9IDDK5G8SFU5GUSHCTBH90ECETK1BFQD76R0 = tcp | ||
30 | 34 | ||
31 | [PATHS] | 35 | [PATHS] |
32 | SERVICEHOME = /tmp/test-gnunet-dv-testing/ | 36 | SERVICEHOME = /tmp/test-gnunet-dv-testing/ |
diff --git a/src/dv/test_transport_blacklist.c b/src/dv/test_transport_blacklist.c index 4e287a5bd..601544afa 100644 --- a/src/dv/test_transport_blacklist.c +++ b/src/dv/test_transport_blacklist.c | |||
@@ -39,6 +39,7 @@ test_connection (void *cls, | |||
39 | unsigned int links_succeeded, | 39 | unsigned int links_succeeded, |
40 | unsigned int links_failed) | 40 | unsigned int links_failed) |
41 | { | 41 | { |
42 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Links successful %u / %u failed\n", links_succeeded, links_failed); | ||
42 | if ( (4 == num_peers) && (0 == links_failed) ) | 43 | if ( (4 == num_peers) && (0 == links_failed) ) |
43 | { | 44 | { |
44 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 45 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
diff --git a/src/dv/test_transport_blacklist_data.conf b/src/dv/test_transport_blacklist_data.conf index 58bf62b33..534a61849 100644 --- a/src/dv/test_transport_blacklist_data.conf +++ b/src/dv/test_transport_blacklist_data.conf | |||
@@ -3,8 +3,3 @@ | |||
3 | [transport] | 3 | [transport] |
4 | PORT = 2565 | 4 | PORT = 2565 |
5 | PLUGINS = tcp | 5 | PLUGINS = tcp |
6 | |||
7 | [testbed] | ||
8 | OVERLAY_TOPOLOGY = CLIQUE | ||
9 | SETUP_TIMEOUT = 1 m | ||
10 | OPERATION_TIMEOUT = 5 s | ||
diff --git a/src/dv/test_transport_dv.c b/src/dv/test_transport_dv.c index aa208515f..0b021e92e 100644 --- a/src/dv/test_transport_dv.c +++ b/src/dv/test_transport_dv.c | |||
@@ -30,7 +30,6 @@ | |||
30 | */ | 30 | */ |
31 | static int ok; | 31 | static int ok; |
32 | 32 | ||
33 | |||
34 | static void | 33 | static void |
35 | test_connection (void *cls, | 34 | test_connection (void *cls, |
36 | struct GNUNET_TESTBED_RunHandle *h, | 35 | struct GNUNET_TESTBED_RunHandle *h, |
@@ -39,6 +38,9 @@ test_connection (void *cls, | |||
39 | unsigned int links_succeeded, | 38 | unsigned int links_succeeded, |
40 | unsigned int links_failed) | 39 | unsigned int links_failed) |
41 | { | 40 | { |
41 | int c; | ||
42 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Links successful %u / %u failed\n", links_succeeded, links_failed); | ||
43 | |||
42 | if ( (4 != num_peers) || (0 != links_failed) ) | 44 | if ( (4 != num_peers) || (0 != links_failed) ) |
43 | { | 45 | { |
44 | fprintf (stderr, "Testbed failed to connect peers\n"); | 46 | fprintf (stderr, "Testbed failed to connect peers\n"); |
diff --git a/src/dv/test_transport_dv_data.conf b/src/dv/test_transport_dv_data.conf index b80ded243..346677a25 100644 --- a/src/dv/test_transport_dv_data.conf +++ b/src/dv/test_transport_dv_data.conf | |||
@@ -10,7 +10,3 @@ AUTOSTART = YES | |||
10 | 10 | ||
11 | [set] | 11 | [set] |
12 | AUTOSTART = YES | 12 | AUTOSTART = YES |
13 | |||
14 | [testbed] | ||
15 | OVERLAY_TOPOLOGY = CLIQUE | ||
16 | SETUP_TIMEOUT = 30 s | ||