diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-05 21:40:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-05 21:40:14 +0000 |
commit | f23c614fbe850cef6e0dcd99618c0bd321f6af9c (patch) | |
tree | f717b38e238b1306fb3d59c88c73eb26d46277b0 /src/fs | |
parent | 2b35a08fcb4a73dcfcdbcc1a89324c30ab793236 (diff) | |
download | gnunet-f23c614fbe850cef6e0dcd99618c0bd321f6af9c.tar.gz gnunet-f23c614fbe850cef6e0dcd99618c0bd321f6af9c.zip |
config per script:
Diffstat (limited to 'src/fs')
-rwxr-xr-x | src/fs/test_gnunet_fs_idx.py | 12 | ||||
-rw-r--r-- | src/fs/test_gnunet_fs_idx_data.conf | 44 | ||||
-rwxr-xr-x | src/fs/test_gnunet_fs_ns.py | 16 | ||||
-rw-r--r-- | src/fs/test_gnunet_fs_ns_data.conf (renamed from src/fs/test_gnunet_fs_data.conf) | 4 | ||||
-rwxr-xr-x | src/fs/test_gnunet_fs_psd.py | 12 | ||||
-rw-r--r-- | src/fs/test_gnunet_fs_psd_data.conf | 44 | ||||
-rwxr-xr-x | src/fs/test_gnunet_fs_rec.py | 10 | ||||
-rw-r--r-- | src/fs/test_gnunet_fs_rec_data.conf | 44 |
8 files changed, 159 insertions, 27 deletions
diff --git a/src/fs/test_gnunet_fs_idx.py b/src/fs/test_gnunet_fs_idx.py index 277a397cc..402216e92 100755 --- a/src/fs/test_gnunet_fs_idx.py +++ b/src/fs/test_gnunet_fs_idx.py | |||
@@ -23,22 +23,22 @@ import os | |||
23 | import signal | 23 | import signal |
24 | import re | 24 | import re |
25 | 25 | ||
26 | os.system ('rm -rf /tmp/gnunet-test-fs-py/') | 26 | os.system ('rm -rf /tmp/gnunet-test-fs-py-idx/') |
27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_data.conf') | 27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_idx_data.conf') |
28 | try: | 28 | try: |
29 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_data.conf -m "description:The GNU Public License" -k gpl ../../COPYING') | 29 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_idx_data.conf -m "description:The GNU Public License" -k gpl ../../COPYING') |
30 | pub.expect ('Publishing `../../COPYING\' done.\r') | 30 | pub.expect ('Publishing `../../COPYING\' done.\r') |
31 | pub.expect ("URI is `gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147'.\r") | 31 | pub.expect ("URI is `gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147'.\r") |
32 | pub.expect (pexpect.EOF) | 32 | pub.expect (pexpect.EOF) |
33 | 33 | ||
34 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_data.conf -o \"COPYING\" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147') | 34 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_idx_data.conf -o \"COPYING\" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147') |
35 | down.expect (re.compile ("Downloading `COPYING\' done \(.*\).\r")); | 35 | down.expect (re.compile ("Downloading `COPYING\' done \(.*\).\r")); |
36 | down.expect (pexpect.EOF); | 36 | down.expect (pexpect.EOF); |
37 | os.system ('rm COPYING'); | 37 | os.system ('rm COPYING'); |
38 | 38 | ||
39 | unindex = pexpect.spawn ('gnunet-unindex -c test_gnunet_fs_data.conf ../../COPYING') | 39 | unindex = pexpect.spawn ('gnunet-unindex -c test_gnunet_fs_idx_data.conf ../../COPYING') |
40 | unindex.expect ('Unindexing done.\r') | 40 | unindex.expect ('Unindexing done.\r') |
41 | unindex.expect (pexpect.EOF) | 41 | unindex.expect (pexpect.EOF) |
42 | 42 | ||
43 | finally: | 43 | finally: |
44 | os.system ('gnunet-arm -c test_gnunet_fs_data.conf -eq') | 44 | os.system ('gnunet-arm -c test_gnunet_fs_idx_data.conf -eq') |
diff --git a/src/fs/test_gnunet_fs_idx_data.conf b/src/fs/test_gnunet_fs_idx_data.conf new file mode 100644 index 000000000..9a03e60de --- /dev/null +++ b/src/fs/test_gnunet_fs_idx_data.conf | |||
@@ -0,0 +1,44 @@ | |||
1 | [PATHS] | ||
2 | SERVICEHOME = /tmp/gnunet-test-fs-py-idx/ | ||
3 | DEFAULTCONFIG = test_gnunet_fs_idx_data.conf | ||
4 | |||
5 | [gnunetd] | ||
6 | HOSTKEY = $SERVICEHOME/.hostkey | ||
7 | |||
8 | [resolver] | ||
9 | PORT = 44464 | ||
10 | HOSTNAME = localhost | ||
11 | |||
12 | [transport] | ||
13 | PORT = 44465 | ||
14 | PLUGINS = | ||
15 | |||
16 | [arm] | ||
17 | PORT = 44466 | ||
18 | HOSTNAME = localhost | ||
19 | DEFAULTSERVICES = resolver datastore transport core statistics fs | ||
20 | |||
21 | [datastore] | ||
22 | # DEBUG = YES | ||
23 | |||
24 | [statistics] | ||
25 | PORT = 44467 | ||
26 | HOSTNAME = localhost | ||
27 | |||
28 | [peerinfo] | ||
29 | PORT = 44469 | ||
30 | HOSTNAME = localhost | ||
31 | |||
32 | [core] | ||
33 | PORT = 44470 | ||
34 | HOSTNAME = localhost | ||
35 | |||
36 | [fs] | ||
37 | PORT = 44471 | ||
38 | HOSTNAME = localhost | ||
39 | #DEBUG = YES | ||
40 | #PREFIX = valgrind --tool=memcheck --leak-check=yes | ||
41 | #BINARY = /home/grothoff/bin/gnunet-service-fs | ||
42 | |||
43 | [testing] | ||
44 | WEAKRANDOM = YES | ||
diff --git a/src/fs/test_gnunet_fs_ns.py b/src/fs/test_gnunet_fs_ns.py index a9b0b18bd..94043beaf 100755 --- a/src/fs/test_gnunet_fs_ns.py +++ b/src/fs/test_gnunet_fs_ns.py | |||
@@ -23,27 +23,27 @@ import os | |||
23 | import signal | 23 | import signal |
24 | import re | 24 | import re |
25 | 25 | ||
26 | os.system ('rm -rf /tmp/gnunet-test-fs-py/') | 26 | os.system ('rm -rf /tmp/gnunet-test-fs-py-ns/') |
27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_data.conf') | 27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_ns_data.conf') |
28 | try: | 28 | try: |
29 | pseu = pexpect.spawn ('gnunet-pseudonym -c test_gnunet_fs_data.conf -C licenses -k gplad -m "description:Free Software Licenses" -r myroot') | 29 | pseu = pexpect.spawn ('gnunet-pseudonym -c test_gnunet_fs_ns_data.conf -C licenses -k gplad -m "description:Free Software Licenses" -r myroot') |
30 | pseu.expect (pexpect.EOF) | 30 | pseu.expect (pexpect.EOF) |
31 | pseu = pexpect.spawn ('gnunet-pseudonym -c test_gnunet_fs_data.conf -o') | 31 | pseu = pexpect.spawn ('gnunet-pseudonym -c test_gnunet_fs_ns_data.conf -o') |
32 | pseu.expect (re.compile("licenses \(.*\)\r")) | 32 | pseu.expect (re.compile("licenses \(.*\)\r")) |
33 | pseu.expect (pexpect.EOF) | 33 | pseu.expect (pexpect.EOF) |
34 | 34 | ||
35 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_data.conf -k licenses -P licenses -u gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147 -t gpl -N gpl3') | 35 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_ns_data.conf -k licenses -P licenses -u gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147 -t gpl -N gpl3') |
36 | pub.expect (pexpect.EOF) | 36 | pub.expect (pexpect.EOF) |
37 | 37 | ||
38 | search = pexpect.spawn ('gnunet-search -V -c test_gnunet_fs_data.conf gplad') | 38 | search = pexpect.spawn ('gnunet-search -V -c test_gnunet_fs_ns_data.conf gplad') |
39 | search.expect (re.compile ("gnunet-download gnunet://fs/sks/.*/myroot\r")) | 39 | search.expect (re.compile ("gnunet-download gnunet://fs/sks/.*/myroot\r")) |
40 | search.expect (re.compile (" *description: Free Software Licenses\r")) | 40 | search.expect (re.compile (" *description: Free Software Licenses\r")) |
41 | search.kill (signal.SIGTERM) | 41 | search.kill (signal.SIGTERM) |
42 | search.expect (pexpect.EOF) | 42 | search.expect (pexpect.EOF) |
43 | 43 | ||
44 | pseu = pexpect.spawn ('gnunet-pseudonym -c test_gnunet_fs_data.conf') | 44 | pseu = pexpect.spawn ('gnunet-pseudonym -c test_gnunet_fs_ns_data.conf') |
45 | pseu.expect (re.compile ("Free Software Licenses.*:\r")) | 45 | pseu.expect (re.compile ("Free Software Licenses.*:\r")) |
46 | pseu.expect (pexpect.EOF) | 46 | pseu.expect (pexpect.EOF) |
47 | 47 | ||
48 | finally: | 48 | finally: |
49 | os.system ('gnunet-arm -c test_gnunet_fs_data.conf -eq') | 49 | os.system ('gnunet-arm -c test_gnunet_fs_ns_data.conf -eq') |
diff --git a/src/fs/test_gnunet_fs_data.conf b/src/fs/test_gnunet_fs_ns_data.conf index 45cb9ae23..37e776a1c 100644 --- a/src/fs/test_gnunet_fs_data.conf +++ b/src/fs/test_gnunet_fs_ns_data.conf | |||
@@ -1,6 +1,6 @@ | |||
1 | [PATHS] | 1 | [PATHS] |
2 | SERVICEHOME = /tmp/gnunet-test-fs-py/ | 2 | SERVICEHOME = /tmp/gnunet-test-fs-py-ns/ |
3 | DEFAULTCONFIG = test_gnunet_fs_data.conf | 3 | DEFAULTCONFIG = test_gnunet_fs_ns_data.conf |
4 | 4 | ||
5 | [gnunetd] | 5 | [gnunetd] |
6 | HOSTKEY = $SERVICEHOME/.hostkey | 6 | HOSTKEY = $SERVICEHOME/.hostkey |
diff --git a/src/fs/test_gnunet_fs_psd.py b/src/fs/test_gnunet_fs_psd.py index 631fca8c8..75665178c 100755 --- a/src/fs/test_gnunet_fs_psd.py +++ b/src/fs/test_gnunet_fs_psd.py | |||
@@ -23,25 +23,25 @@ import os | |||
23 | import signal | 23 | import signal |
24 | import re | 24 | import re |
25 | 25 | ||
26 | os.system ('rm -rf /tmp/gnunet-test-fs-py/') | 26 | os.system ('rm -rf /tmp/gnunet-test-fs-py-psd/') |
27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_data.conf') | 27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_psd_data.conf') |
28 | try: | 28 | try: |
29 | # first, basic publish-search-download run | 29 | # first, basic publish-search-download run |
30 | pub = pexpect.spawn ('gnunet-publish -n -c test_gnunet_fs_data.conf -m "description:The GNU Public License" -k gpl ../../COPYING') | 30 | pub = pexpect.spawn ('gnunet-publish -n -c test_gnunet_fs_psd_data.conf -m "description:The GNU Public License" -k gpl ../../COPYING') |
31 | pub.expect ('Publishing `../../COPYING\' done.\r') | 31 | pub.expect ('Publishing `../../COPYING\' done.\r') |
32 | pub.expect ("URI is `gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147'.\r") | 32 | pub.expect ("URI is `gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147'.\r") |
33 | pub.expect (pexpect.EOF) | 33 | pub.expect (pexpect.EOF) |
34 | 34 | ||
35 | search = pexpect.spawn ('gnunet-search -V -c test_gnunet_fs_data.conf gpl') | 35 | search = pexpect.spawn ('gnunet-search -V -c test_gnunet_fs_psd_data.conf gpl') |
36 | search.expect ("gnunet-download -o \"COPYING\" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147\r") | 36 | search.expect ("gnunet-download -o \"COPYING\" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147\r") |
37 | search.expect (re.compile (" *description: The GNU Public License\r")); | 37 | search.expect (re.compile (" *description: The GNU Public License\r")); |
38 | search.kill (signal.SIGTERM) | 38 | search.kill (signal.SIGTERM) |
39 | search.expect (pexpect.EOF) | 39 | search.expect (pexpect.EOF) |
40 | 40 | ||
41 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_data.conf -o \"COPYING\" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147') | 41 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_psd_data.conf -o \"COPYING\" gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147') |
42 | down.expect (re.compile ("Downloading `COPYING\' done \(.*\).\r")); | 42 | down.expect (re.compile ("Downloading `COPYING\' done \(.*\).\r")); |
43 | down.expect (pexpect.EOF); | 43 | down.expect (pexpect.EOF); |
44 | os.system ('rm COPYING'); | 44 | os.system ('rm COPYING'); |
45 | 45 | ||
46 | finally: | 46 | finally: |
47 | os.system ('gnunet-arm -c test_gnunet_fs_data.conf -eq') | 47 | os.system ('gnunet-arm -c test_gnunet_fs_psd_data.conf -eq') |
diff --git a/src/fs/test_gnunet_fs_psd_data.conf b/src/fs/test_gnunet_fs_psd_data.conf new file mode 100644 index 000000000..3a76849af --- /dev/null +++ b/src/fs/test_gnunet_fs_psd_data.conf | |||
@@ -0,0 +1,44 @@ | |||
1 | [PATHS] | ||
2 | SERVICEHOME = /tmp/gnunet-test-fs-py-psd/ | ||
3 | DEFAULTCONFIG = test_gnunet_fs_psd_data.conf | ||
4 | |||
5 | [gnunetd] | ||
6 | HOSTKEY = $SERVICEHOME/.hostkey | ||
7 | |||
8 | [resolver] | ||
9 | PORT = 44464 | ||
10 | HOSTNAME = localhost | ||
11 | |||
12 | [transport] | ||
13 | PORT = 44465 | ||
14 | PLUGINS = | ||
15 | |||
16 | [arm] | ||
17 | PORT = 44466 | ||
18 | HOSTNAME = localhost | ||
19 | DEFAULTSERVICES = resolver datastore transport core statistics fs | ||
20 | |||
21 | [datastore] | ||
22 | # DEBUG = YES | ||
23 | |||
24 | [statistics] | ||
25 | PORT = 44467 | ||
26 | HOSTNAME = localhost | ||
27 | |||
28 | [peerinfo] | ||
29 | PORT = 44469 | ||
30 | HOSTNAME = localhost | ||
31 | |||
32 | [core] | ||
33 | PORT = 44470 | ||
34 | HOSTNAME = localhost | ||
35 | |||
36 | [fs] | ||
37 | PORT = 44471 | ||
38 | HOSTNAME = localhost | ||
39 | #DEBUG = YES | ||
40 | #PREFIX = valgrind --tool=memcheck --leak-check=yes | ||
41 | #BINARY = /home/grothoff/bin/gnunet-service-fs | ||
42 | |||
43 | [testing] | ||
44 | WEAKRANDOM = YES | ||
diff --git a/src/fs/test_gnunet_fs_rec.py b/src/fs/test_gnunet_fs_rec.py index a68ba13d6..cfc9eaa4c 100755 --- a/src/fs/test_gnunet_fs_rec.py +++ b/src/fs/test_gnunet_fs_rec.py | |||
@@ -23,16 +23,16 @@ import os | |||
23 | import signal | 23 | import signal |
24 | import re | 24 | import re |
25 | 25 | ||
26 | os.system ('rm -rf /tmp/gnunet-test-fs-py/') | 26 | os.system ('rm -rf /tmp/gnunet-test-fs-py-rec/') |
27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_data.conf') | 27 | os.system ('gnunet-arm -sq -c test_gnunet_fs_rec_data.conf') |
28 | os.system ('tar xfz test_gnunet_fs_rec_data.tgz') | 28 | os.system ('tar xfz test_gnunet_fs_rec_data.tgz') |
29 | try: | 29 | try: |
30 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_data.conf -d -k testdir dir/') | 30 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_rec_data.conf -d -k testdir dir/') |
31 | pub.expect ('Publishing `dir/\' done.\r') | 31 | pub.expect ('Publishing `dir/\' done.\r') |
32 | pub.expect ("URI is `gnunet://fs/chk/P5BPKNHH7CECDQA1A917G5EB67PPVG99NVO5QMJ8AJP2C02NM8O1ALNGOJPLLO0RMST0FNM0ATJV95PDAGATHDGH7AGIK2N3O0OOC70.OSG2JS3JDSI0AV8LMOL9MKPJ70DNG2RBL2CBTUCHK563VEM7L00RN8I2K0VPB459JRVBFOIKJG72LIQPDP9RFCVEVI37BUD76RJ3KK0.20169\'.") | 32 | pub.expect ("URI is `gnunet://fs/chk/P5BPKNHH7CECDQA1A917G5EB67PPVG99NVO5QMJ8AJP2C02NM8O1ALNGOJPLLO0RMST0FNM0ATJV95PDAGATHDGH7AGIK2N3O0OOC70.OSG2JS3JDSI0AV8LMOL9MKPJ70DNG2RBL2CBTUCHK563VEM7L00RN8I2K0VPB459JRVBFOIKJG72LIQPDP9RFCVEVI37BUD76RJ3KK0.20169\'.") |
33 | pub.expect (pexpect.EOF) | 33 | pub.expect (pexpect.EOF) |
34 | 34 | ||
35 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_data.conf -R -o rdir.gnd gnunet://fs/chk/P5BPKNHH7CECDQA1A917G5EB67PPVG99NVO5QMJ8AJP2C02NM8O1ALNGOJPLLO0RMST0FNM0ATJV95PDAGATHDGH7AGIK2N3O0OOC70.OSG2JS3JDSI0AV8LMOL9MKPJ70DNG2RBL2CBTUCHK563VEM7L00RN8I2K0VPB459JRVBFOIKJG72LIQPDP9RFCVEVI37BUD76RJ3KK0.20169\'.') | 35 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_rec_data.conf -R -o rdir.gnd gnunet://fs/chk/P5BPKNHH7CECDQA1A917G5EB67PPVG99NVO5QMJ8AJP2C02NM8O1ALNGOJPLLO0RMST0FNM0ATJV95PDAGATHDGH7AGIK2N3O0OOC70.OSG2JS3JDSI0AV8LMOL9MKPJ70DNG2RBL2CBTUCHK563VEM7L00RN8I2K0VPB459JRVBFOIKJG72LIQPDP9RFCVEVI37BUD76RJ3KK0.20169\'.') |
36 | 36 | ||
37 | down.expect (re.compile ("Downloading `rdir.gnd\' done \(.*\).\r")); | 37 | down.expect (re.compile ("Downloading `rdir.gnd\' done \(.*\).\r")); |
38 | down.expect (pexpect.EOF); | 38 | down.expect (pexpect.EOF); |
@@ -47,5 +47,5 @@ try: | |||
47 | raise Exception ("Unexpected difference between source directory and downloaded result") | 47 | raise Exception ("Unexpected difference between source directory and downloaded result") |
48 | 48 | ||
49 | finally: | 49 | finally: |
50 | os.system ('gnunet-arm -c test_gnunet_fs_data.conf -eq') | 50 | os.system ('gnunet-arm -c test_gnunet_fs_rec_data.conf -eq') |
51 | os.system ('rm -r dir rdir rdir.gnd') | 51 | os.system ('rm -r dir rdir rdir.gnd') |
diff --git a/src/fs/test_gnunet_fs_rec_data.conf b/src/fs/test_gnunet_fs_rec_data.conf new file mode 100644 index 000000000..93c5cffbc --- /dev/null +++ b/src/fs/test_gnunet_fs_rec_data.conf | |||
@@ -0,0 +1,44 @@ | |||
1 | [PATHS] | ||
2 | SERVICEHOME = /tmp/gnunet-test-fs-py-rec/ | ||
3 | DEFAULTCONFIG = test_gnunet_fs_rec_data.conf | ||
4 | |||
5 | [gnunetd] | ||
6 | HOSTKEY = $SERVICEHOME/.hostkey | ||
7 | |||
8 | [resolver] | ||
9 | PORT = 44464 | ||
10 | HOSTNAME = localhost | ||
11 | |||
12 | [transport] | ||
13 | PORT = 44465 | ||
14 | PLUGINS = | ||
15 | |||
16 | [arm] | ||
17 | PORT = 44466 | ||
18 | HOSTNAME = localhost | ||
19 | DEFAULTSERVICES = resolver datastore transport core statistics fs | ||
20 | |||
21 | [datastore] | ||
22 | # DEBUG = YES | ||
23 | |||
24 | [statistics] | ||
25 | PORT = 44467 | ||
26 | HOSTNAME = localhost | ||
27 | |||
28 | [peerinfo] | ||
29 | PORT = 44469 | ||
30 | HOSTNAME = localhost | ||
31 | |||
32 | [core] | ||
33 | PORT = 44470 | ||
34 | HOSTNAME = localhost | ||
35 | |||
36 | [fs] | ||
37 | PORT = 44471 | ||
38 | HOSTNAME = localhost | ||
39 | #DEBUG = YES | ||
40 | #PREFIX = valgrind --tool=memcheck --leak-check=yes | ||
41 | #BINARY = /home/grothoff/bin/gnunet-service-fs | ||
42 | |||
43 | [testing] | ||
44 | WEAKRANDOM = YES | ||