[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22815 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22815 - gnunet/src/fs |
Date: |
Sun, 22 Jul 2012 15:46:52 +0200 |
Author: LRN
Date: 2012-07-22 15:46:52 +0200 (Sun, 22 Jul 2012)
New Revision: 22815
Modified:
gnunet/src/fs/test_gnunet_fs_idx.py.in
gnunet/src/fs/test_gnunet_fs_psd.py.in
Log:
Use test tgz instead of COPYING for FS tests
Modified: gnunet/src/fs/test_gnunet_fs_idx.py.in
===================================================================
--- gnunet/src/fs/test_gnunet_fs_idx.py.in 2012-07-22 09:38:54 UTC (rev
22814)
+++ gnunet/src/fs/test_gnunet_fs_idx.py.in 2012-07-22 13:46:52 UTC (rev
22815)
@@ -52,16 +52,17 @@
try:
pub = pexpect ()
- pub.spawn (None, [publish, '-c', 'test_gnunet_fs_idx_data.conf', '-m',
"description:The GNU Public License", '-k', 'gpl', '../../COPYING'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- pub.expect ("stdout", re.compile (r"URI is
`gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O\.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG\.35147'\.\r?\n"))
+ pub.spawn (None, [publish, '-c', 'test_gnunet_fs_idx_data.conf', '-m',
"description:Test archive", '-k', 'tst', 'test_gnunet_fs_rec_data.tgz'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ pub.expect ("stdout", re.compile (r"URI is
`gnunet://fs/chk/2VKHJMR74CB6GB1GFJNOO95BTINA2PEO25FL48GAS7SPBMA0GDEK5U74R1VIHK0LA6919QRS376BHQFDOE3OUP0JOU92K1NIRJMHFCO\.FPEBEAL6HCABM5LMFNNJOPPLKAF5TLUC86A11EIS1HLMIUBP8VEUTU7FT50OLF9ESKP7GTBUE7GDN392J2VKL6JKM1VT1KB4C7Q1U48\.17822'\.\r?\n"))
+
down = pexpect ()
- down.spawn (None, [download, '-c', 'test_gnunet_fs_idx_data.conf', '-o',
'COPYING',
'gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- down.expect ("stdout", re.compile (r"Downloading `COPYING' done (.*).\r?\n"))
- os.remove ("COPYING")
+ down.spawn (None, [download, '-c', 'test_gnunet_fs_idx_data.conf', '-o',
'test_gnunet_fs_rec_data.tar.gz',
'gnunet://fs/chk/2VKHJMR74CB6GB1GFJNOO95BTINA2PEO25FL48GAS7SPBMA0GDEK5U74R1VIHK0LA6919QRS376BHQFDOE3OUP0JOU92K1NIRJMHFCO.FPEBEAL6HCABM5LMFNNJOPPLKAF5TLUC86A11EIS1HLMIUBP8VEUTU7FT50OLF9ESKP7GTBUE7GDN392J2VKL6JKM1VT1KB4C7Q1U48.17822'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ down.expect ("stdout", re.compile (r"Downloading
`test_gnunet_fs_rec_data.tar.gz' done (.*).\r?\n"))
+ os.remove ("test_gnunet_fs_rec_data.tar.gz")
un = pexpect ()
- un.spawn (None, [unindex, '-c', 'test_gnunet_fs_idx_data.conf',
'../../COPYING'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ un.spawn (None, [unindex, '-c', 'test_gnunet_fs_idx_data.conf',
'test_gnunet_fs_rec_data.tgz'], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
un.expect ("stdout", re.compile (r'Unindexing done\.\r?\n'))
finally:
Modified: gnunet/src/fs/test_gnunet_fs_psd.py.in
===================================================================
--- gnunet/src/fs/test_gnunet_fs_psd.py.in 2012-07-22 09:38:54 UTC (rev
22814)
+++ gnunet/src/fs/test_gnunet_fs_psd.py.in 2012-07-22 13:46:52 UTC (rev
22815)
@@ -55,20 +55,20 @@
# first, basic publish-search-download run
try:
pub = pexpect ()
- pub.spawn (None, [publish, '-c', 'test_gnunet_fs_psd_data.conf', '-n', '-m',
"description:The GNU Public License", '-k', 'gpl', '../../COPYING'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- pub.expect ("stdout", re.compile (r"Publishing
`.+[\\/]..[\\/]..[\\/]COPYING' done\.\r?\n"))
- pub.expect ("stdout", re.compile (r"URI is
`gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O\.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG\.35147'\.\r?\n"))
+ pub.spawn (None, [publish, '-c', 'test_gnunet_fs_idx_data.conf', '-n', '-m',
"description:Test archive", '-k', 'tst', 'test_gnunet_fs_rec_data.tgz'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ pub.expect ("stdout", re.compile (r"Publishing
`.+test_gnunet_fs_rec_data.tgz' done\.\r?\n"))
+ pub.expect ("stdout", re.compile (r"URI is
`gnunet://fs/chk/2VKHJMR74CB6GB1GFJNOO95BTINA2PEO25FL48GAS7SPBMA0GDEK5U74R1VIHK0LA6919QRS376BHQFDOE3OUP0JOU92K1NIRJMHFCO\.FPEBEAL6HCABM5LMFNNJOPPLKAF5TLUC86A11EIS1HLMIUBP8VEUTU7FT50OLF9ESKP7GTBUE7GDN392J2VKL6JKM1VT1KB4C7Q1U48\.17822'\.\r?\n"))
s = pexpect ()
- s.spawn (None, [search, '-V', '-t', '1000', '-N', '1', '-c',
'test_gnunet_fs_psd_data.conf', 'gpl'], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
+ s.spawn (None, [search, '-V', '-t', '1000', '-N', '1', '-c',
'test_gnunet_fs_psd_data.conf', 'tst'], stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
s.expect ("stdout", re.compile (r'#0:\r?\n'))
- s.expect ("stdout", re.compile (r'gnunet-download -o "COPYING"
gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O\.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG\.35147\r?\n'))
- s.expect ("stdout", re.compile (r"\s*description: The GNU Public
License\r?\n"))
+ s.expect ("stdout", re.compile (r'gnunet-download -o
"test_gnunet_fs_rec_data.tgz"
gnunet://fs/chk/2VKHJMR74CB6GB1GFJNOO95BTINA2PEO25FL48GAS7SPBMA0GDEK5U74R1VIHK0LA6919QRS376BHQFDOE3OUP0JOU92K1NIRJMHFCO\.FPEBEAL6HCABM5LMFNNJOPPLKAF5TLUC86A11EIS1HLMIUBP8VEUTU7FT50OLF9ESKP7GTBUE7GDN392J2VKL6JKM1VT1KB4C7Q1U48\.17822\r?\n'))
+ s.expect ("stdout", re.compile (r"\s*description: Test archive\r?\n"))
down = pexpect ()
- down.spawn (None, [download, '-c', 'test_gnunet_fs_psd_data.conf', '-o',
'COPYING',
'gnunet://fs/chk/PC0M19QMQC0BPSHR6BGA228PP6INER1D610MGEMOMEM87222FN8HVUO7PQGO0O9HD2GVLHF2N5IDHEQUNK6LKE428FPO96SKQEA486O.PG7K85JGQ6N599MD5HEP3CHEVFPKQD9JB6NPSLVA3T1SKDS66CFI499VS6MGQ88B0QUAVT1282TCRD4GGFVUKDLGI8F0SPIANA3J2LG.35147'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- down.expect ("stdout", re.compile (r"Downloading `COPYING' done (.*).\r?\n"))
- os.remove ("COPYING")
+ down.spawn (None, [download, '-c', 'test_gnunet_fs_psd_data.conf', '-o',
'test_gnunet_fs_rec_data.tar.gz',
'gnunet://fs/chk/2VKHJMR74CB6GB1GFJNOO95BTINA2PEO25FL48GAS7SPBMA0GDEK5U74R1VIHK0LA6919QRS376BHQFDOE3OUP0JOU92K1NIRJMHFCO.FPEBEAL6HCABM5LMFNNJOPPLKAF5TLUC86A11EIS1HLMIUBP8VEUTU7FT50OLF9ESKP7GTBUE7GDN392J2VKL6JKM1VT1KB4C7Q1U48.17822'],
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ down.expect ("stdout", re.compile (r"Downloading
`test_gnunet_fs_rec_data.tar.gz' done (.*).\r?\n"))
+ os.remove ("test_gnunet_fs_rec_data.tar.gz")
finally:
arm = subprocess.Popen ([gnunetarm, '-eq', '-c',
'test_gnunet_fs_psd_data.conf'])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22815 - gnunet/src/fs,
gnunet <=