diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-01-24 13:40:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-01-24 13:40:47 +0000 |
commit | f3fd2bc175ff3bee8680106782ab01e8b69c7724 (patch) | |
tree | ca69cbc7a4eb8a7cc982c74120d05db283a90cc8 /src/fs/test_gnunet_fs_rec.py.in | |
parent | 41d967a58fdf9df3b462980a3172ce1cb90cf334 (diff) | |
download | gnunet-f3fd2bc175ff3bee8680106782ab01e8b69c7724.tar.gz gnunet-f3fd2bc175ff3bee8680106782ab01e8b69c7724.zip |
append / to directory names (and remove later...)
Diffstat (limited to 'src/fs/test_gnunet_fs_rec.py.in')
-rwxr-xr-x | src/fs/test_gnunet_fs_rec.py.in | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fs/test_gnunet_fs_rec.py.in b/src/fs/test_gnunet_fs_rec.py.in index a9c2b9c0e..3c990b35b 100755 --- a/src/fs/test_gnunet_fs_rec.py.in +++ b/src/fs/test_gnunet_fs_rec.py.in | |||
@@ -29,19 +29,19 @@ os.system ('tar xfz test_gnunet_fs_rec_data.tgz') | |||
29 | try: | 29 | try: |
30 | pub = pexpect.spawn ('gnunet-publish -c test_gnunet_fs_rec_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/CQI091BQ15LLC2NO5RQM2LP95D8I0ONKDFT912V8CMH3BIPDUSDKG3JL07V9E89JPJ0CG5JE9EAQLC1Q6I0VF9L8M86MO0K3DG7HA2O.NVIUL6B7AT6TIUVOV0JLIQ3LLSS3TRLCVAISDS47V0KVHN22TJ9H9247HQNA8T3KK1J32QJ65312DUQPA2EBQPNII279BU0MKJEB94G.20181'.") | 32 | pub.expect ("URI is `gnunet://fs/chk/M2I80IUI2DM4L6G93KL15AHAO7MIMS5JKP1L3LQFVN50CT7AKRQDSF594BC9TD97JJIT3COF6B5O524CMIOG9EJO8UK1560M54JRI70.GBRE5M4QJ7NA0QIN88FMSC78NNOQMVT5DH8FP37OIR5SGGHFEB9ESDNBRKT9PFE9N2GOI81UN8GGBR6KH9GRTV1T04JFSJURF2U0VE8.20182'.") |
33 | pub.expect (pexpect.EOF) | 33 | pub.expect (pexpect.EOF) |
34 | 34 | ||
35 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_rec_data.conf -R -o rdir.gnd gnunet://fs/chk/CQI091BQ15LLC2NO5RQM2LP95D8I0ONKDFT912V8CMH3BIPDUSDKG3JL07V9E89JPJ0CG5JE9EAQLC1Q6I0VF9L8M86MO0K3DG7HA2O.NVIUL6B7AT6TIUVOV0JLIQ3LLSS3TRLCVAISDS47V0KVHN22TJ9H9247HQNA8T3KK1J32QJ65312DUQPA2EBQPNII279BU0MKJEB94G.20181') | 35 | down = pexpect.spawn ('gnunet-download -c test_gnunet_fs_rec_data.conf -R -o rdir.gnd gnunet://fs/chk/M2I80IUI2DM4L6G93KL15AHAO7MIMS5JKP1L3LQFVN50CT7AKRQDSF594BC9TD97JJIT3COF6B5O524CMIOG9EJO8UK1560M54JRI70.GBRE5M4QJ7NA0QIN88FMSC78NNOQMVT5DH8FP37OIR5SGGHFEB9ESDNBRKT9PFE9N2GOI81UN8GGBR6KH9GRTV1T04JFSJURF2U0VE8.20182') |
36 | down.expect (re.compile ("Downloading `rdir.gnd\' done \(.*\).\r")); | 36 | down.expect (re.compile ("Downloading `rdir.gnd\' done \(.*\).\r")); |
37 | down.expect (pexpect.EOF); | 37 | down.expect (pexpect.EOF); |
38 | 38 | ||
39 | # dir = pexpect.spawn ('gnunet-directory -c test_gnunet_fs_rec_data.conf rdir/a.gnd') | 39 | dir = pexpect.spawn ('gnunet-directory -c test_gnunet_fs_rec_data.conf rdir/a.gnd') |
40 | # dir.expect (re.compile ("Directory `a' summary:")); | 40 | dir.expect (re.compile ("Directory `a/' meta data:")); |
41 | # dir.expect (re.compile (" *mimetype: application/gnunet-directory")); | 41 | dir.expect (re.compile ("Directory `a/' contents:")); |
42 | # dir.expect (re.compile ("COPYING (.*)")); | 42 | dir.expect (re.compile ("COPYING (.*)")); |
43 | # dir.expect (re.compile ("INSTALL (.*)")); | 43 | dir.expect (re.compile ("INSTALL (.*)")); |
44 | # dir.expect (pexpect.EOF) | 44 | dir.expect (pexpect.EOF) |
45 | 45 | ||
46 | os.system ('rm -r rdir/b.gnd rdir/a.gnd') | 46 | os.system ('rm -r rdir/b.gnd rdir/a.gnd') |
47 | if (0 != os.system ("diff -r dir rdir")): | 47 | if (0 != os.system ("diff -r dir rdir")): |