diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-23 12:23:16 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-23 12:23:16 +0000 |
commit | 510ba17ceb93d9f39290154c69e6206985366c7b (patch) | |
tree | 3ebf594f834b2332dd074e75389e99f783fa7b3b /src/testbed | |
parent | 4ef4905497e8b34e907649cbe93568ea5f46c83d (diff) | |
download | gnunet-510ba17ceb93d9f39290154c69e6206985366c7b.tar.gz gnunet-510ba17ceb93d9f39290154c69e6206985366c7b.zip |
test case for scale free routing
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/Makefile.am | 63 | ||||
-rw-r--r-- | src/testbed/test_testbed_api_testbed_run_topologyscalefree.conf | 80 |
2 files changed, 116 insertions, 27 deletions
diff --git a/src/testbed/Makefile.am b/src/testbed/Makefile.am index 93ea4cf45..1fdbc616f 100644 --- a/src/testbed/Makefile.am +++ b/src/testbed/Makefile.am | |||
@@ -80,25 +80,26 @@ libgnunettestbed_la_LDFLAGS = \ | |||
80 | -version-info 0:0:0 | 80 | -version-info 0:0:0 |
81 | 81 | ||
82 | check_PROGRAMS = \ | 82 | check_PROGRAMS = \ |
83 | test_testbed_api_hosts \ | 83 | test_testbed_api_hosts \ |
84 | test_testbed_api_controllerlink \ | 84 | test_testbed_api_controllerlink \ |
85 | test_testbed_api_2peers_1controller \ | 85 | test_testbed_api_2peers_1controller \ |
86 | test_testbed_api_3peers_3controllers \ | 86 | test_testbed_api_3peers_3controllers \ |
87 | test_testbed_api \ | 87 | test_testbed_api \ |
88 | test_testbed_api_operations \ | 88 | test_testbed_api_operations \ |
89 | test_testbed_api_testbed_run \ | 89 | test_testbed_api_testbed_run \ |
90 | test_testbed_api_test \ | 90 | test_testbed_api_test \ |
91 | test_gnunet_helper_testbed \ | 91 | test_gnunet_helper_testbed \ |
92 | test_testbed_api_topology \ | 92 | test_testbed_api_topology \ |
93 | test_testbed_api_topology_clique \ | 93 | test_testbed_api_topology_clique \ |
94 | test_testbed_api_testbed_run_topologyrandom \ | 94 | test_testbed_api_testbed_run_topologyrandom \ |
95 | test_testbed_api_testbed_run_topologyline \ | 95 | test_testbed_api_testbed_run_topologyline \ |
96 | test_testbed_api_testbed_run_topologyclique \ | 96 | test_testbed_api_testbed_run_topologyclique \ |
97 | test_testbed_api_testbed_run_topologyring \ | 97 | test_testbed_api_testbed_run_topologyring \ |
98 | test_testbed_api_testbed_run_topologysmallworldring \ | 98 | test_testbed_api_testbed_run_topologysmallworldring \ |
99 | test_testbed_api_testbed_run_topology2dtorus \ | 99 | test_testbed_api_testbed_run_topology2dtorus \ |
100 | test_testbed_api_testbed_run_topologysmallworld \ | 100 | test_testbed_api_testbed_run_topologysmallworld \ |
101 | test_testbed_api_testbed_run_topologyfromfile | 101 | test_testbed_api_testbed_run_topologyfromfile \ |
102 | test_testbed_api_testbed_run_topologyscalefree | ||
102 | 103 | ||
103 | if ENABLE_TEST_RUN | 104 | if ENABLE_TEST_RUN |
104 | TESTS = \ | 105 | TESTS = \ |
@@ -113,14 +114,15 @@ if ENABLE_TEST_RUN | |||
113 | test_testbed_api_test \ | 114 | test_testbed_api_test \ |
114 | test_testbed_api_topology \ | 115 | test_testbed_api_topology \ |
115 | test_testbed_api_topology_clique \ | 116 | test_testbed_api_topology_clique \ |
116 | test_testbed_api_testbed_run_topologyrandom \ | 117 | test_testbed_api_testbed_run_topologyrandom \ |
117 | test_testbed_api_testbed_run_topologyline \ | 118 | test_testbed_api_testbed_run_topologyline \ |
118 | test_testbed_api_testbed_run_topologyclique \ | 119 | test_testbed_api_testbed_run_topologyclique \ |
119 | test_testbed_api_testbed_run_topologyring \ | 120 | test_testbed_api_testbed_run_topologyring \ |
120 | test_testbed_api_testbed_run_topologysmallworldring \ | 121 | test_testbed_api_testbed_run_topologysmallworldring \ |
121 | test_testbed_api_testbed_run_topology2dtorus \ | 122 | test_testbed_api_testbed_run_topology2dtorus \ |
122 | test_testbed_api_testbed_run_topologysmallworld \ | 123 | test_testbed_api_testbed_run_topologysmallworld \ |
123 | test_testbed_api_testbed_run_topologyfromfile | 124 | test_testbed_api_testbed_run_topologyfromfile \ |
125 | test_testbed_api_testbed_run_topologyscalefree | ||
124 | endif | 126 | endif |
125 | 127 | ||
126 | test_testbed_api_hosts_SOURCES = \ | 128 | test_testbed_api_hosts_SOURCES = \ |
@@ -242,6 +244,12 @@ test_testbed_api_testbed_run_topologyfromfile_LDADD = \ | |||
242 | $(top_builddir)/src/util/libgnunetutil.la \ | 244 | $(top_builddir)/src/util/libgnunetutil.la \ |
243 | libgnunettestbed.la | 245 | libgnunettestbed.la |
244 | 246 | ||
247 | test_testbed_api_testbed_run_topologyscalefree_SOURCES = \ | ||
248 | test_testbed_api_testbed_run.c | ||
249 | test_testbed_api_testbed_run_topologyscalefree_LDADD = \ | ||
250 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
251 | libgnunettestbed.la | ||
252 | |||
245 | EXTRA_DIST = \ | 253 | EXTRA_DIST = \ |
246 | test_testbed_api.conf \ | 254 | test_testbed_api.conf \ |
247 | test_testbed_api_testbed_run_topologyring.conf \ | 255 | test_testbed_api_testbed_run_topologyring.conf \ |
@@ -252,5 +260,6 @@ EXTRA_DIST = \ | |||
252 | test_testbed_api_testbed_run_topology2dtorus.conf \ | 260 | test_testbed_api_testbed_run_topology2dtorus.conf \ |
253 | test_testbed_api_testbed_run_topologysmallworld.conf \ | 261 | test_testbed_api_testbed_run_topologysmallworld.conf \ |
254 | test_testbed_api_testbed_run_topologyfromfile.conf \ | 262 | test_testbed_api_testbed_run_topologyfromfile.conf \ |
263 | test_testbed_api_testbed_run_topologyscalefree.conf \ | ||
255 | overlay_topology.txt \ | 264 | overlay_topology.txt \ |
256 | sample_hosts.txt \ No newline at end of file | 265 | sample_hosts.txt \ No newline at end of file |
diff --git a/src/testbed/test_testbed_api_testbed_run_topologyscalefree.conf b/src/testbed/test_testbed_api_testbed_run_topologyscalefree.conf new file mode 100644 index 000000000..de83ab201 --- /dev/null +++ b/src/testbed/test_testbed_api_testbed_run_topologyscalefree.conf | |||
@@ -0,0 +1,80 @@ | |||
1 | [testbed] | ||
2 | AUTOSTART = NO | ||
3 | PORT = 12113 | ||
4 | ACCEPT_FROM = 127.0.0.1; | ||
5 | HOSTNAME = localhost | ||
6 | NEIGHBOUR_LIMIT = 100 | ||
7 | PARALLEL_OVERLAY_CONNECT_THRESHOLD = 2 | ||
8 | OVERLAY_TOPOLOGY = RING | ||
9 | #PREFIX = xterm -geometry 100x85 -T peer1 -e libtool --mode=execute gdb --args | ||
10 | |||
11 | [fs] | ||
12 | AUTOSTART = NO | ||
13 | |||
14 | [resolver] | ||
15 | AUTOSTART = NO | ||
16 | |||
17 | [mesh] | ||
18 | AUTOSTART = NO | ||
19 | |||
20 | [dht] | ||
21 | AUTOSTART = NO | ||
22 | |||
23 | [block] | ||
24 | plugins = dht test | ||
25 | |||
26 | [dhtcache] | ||
27 | QUOTA = 1 MB | ||
28 | DATABASE = sqlite | ||
29 | |||
30 | [transport] | ||
31 | PLUGINS = tcp | ||
32 | ACCEPT_FROM6 = ::1; | ||
33 | ACCEPT_FROM = 127.0.0.1; | ||
34 | NEIGHBOUR_LIMIT = 50 | ||
35 | PORT = 12365 | ||
36 | |||
37 | [ats] | ||
38 | WAN_QUOTA_OUT = 3932160 | ||
39 | WAN_QUOTA_IN = 3932160 | ||
40 | |||
41 | [core] | ||
42 | PORT = 12092 | ||
43 | AUTOSTART = YES | ||
44 | |||
45 | [arm] | ||
46 | DEFAULTSERVICES = core transport | ||
47 | PORT = 12366 | ||
48 | |||
49 | [transport-tcp] | ||
50 | TIMEOUT = 300 s | ||
51 | PORT = 12368 | ||
52 | |||
53 | [TESTING] | ||
54 | NUM_PEERS = 5 | ||
55 | WEAKRANDOM = YES | ||
56 | HOSTKEYSFILE = ../../contrib/testing_hostkeys.dat | ||
57 | MAX_CONCURRENT_SSH = 10 | ||
58 | USE_PROGRESSBARS = YES | ||
59 | PEERGROUP_TIMEOUT = 2400 s | ||
60 | |||
61 | [gnunetd] | ||
62 | HOSTKEY = $SERVICEHOME/.hostkey | ||
63 | |||
64 | [PATHS] | ||
65 | SERVICEHOME = /tmp/test-testbed/ | ||
66 | |||
67 | [dns] | ||
68 | AUTOSTART = NO | ||
69 | |||
70 | [nse] | ||
71 | AUTOSTART = NO | ||
72 | |||
73 | [vpn] | ||
74 | AUTOSTART = NO | ||
75 | |||
76 | [nat] | ||
77 | RETURN_LOCAL_ADDRESSES = YES | ||
78 | |||
79 | [gns-helper-service-w32] | ||
80 | AUTOSTART = NO \ No newline at end of file | ||