diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-08 16:16:24 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-12-08 16:16:24 +0000 |
commit | 3ec5e14c7071bfb39ad7af8f98365d6e81cbe026 (patch) | |
tree | 65033020d74224fe25ece852c2daf35fec104c26 /src/integration-tests/test_integration_clique.py.in | |
parent | cbd09ba94fde1331cb4fe6ea29f5f164adc8db25 (diff) | |
download | gnunet-3ec5e14c7071bfb39ad7af8f98365d6e81cbe026.tar.gz gnunet-3ec5e14c7071bfb39ad7af8f98365d6e81cbe026.zip |
step by step
Diffstat (limited to 'src/integration-tests/test_integration_clique.py.in')
-rwxr-xr-x | src/integration-tests/test_integration_clique.py.in | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/integration-tests/test_integration_clique.py.in b/src/integration-tests/test_integration_clique.py.in index 1f1cf1f1d..892f80931 100755 --- a/src/integration-tests/test_integration_clique.py.in +++ b/src/integration-tests/test_integration_clique.py.in | |||
@@ -17,13 +17,17 @@ | |||
17 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | # Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | # Boston, MA 02111-1307, USA. | 18 | # Boston, MA 02111-1307, USA. |
19 | # | 19 | # |
20 | # Testcase for file-sharing command-line tools (namespaces) | 20 | # |
21 | import sys | 21 | import sys |
22 | import os | 22 | import os |
23 | import subprocess | 23 | import subprocess |
24 | import re | 24 | import re |
25 | import shutil | 25 | import shutil |
26 | 26 | ||
27 | |||
28 | testname = "test_integration_clique" | ||
29 | verbose = True | ||
30 | |||
27 | srcdir = "../.." | 31 | srcdir = "../.." |
28 | gnunet_pyexpect_dir = os.path.join (srcdir, "contrib") | 32 | gnunet_pyexpect_dir = os.path.join (srcdir, "contrib") |
29 | if gnunet_pyexpect_dir not in sys.path: | 33 | if gnunet_pyexpect_dir not in sys.path: |
@@ -31,29 +35,24 @@ if gnunet_pyexpect_dir not in sys.path: | |||
31 | 35 | ||
32 | from gnunet_pyexpect import pexpect | 36 | from gnunet_pyexpect import pexpect |
33 | 37 | ||
34 | exit () | ||
35 | |||
36 | |||
37 | # dummy copied from fs | ||
38 | |||
39 | if os.name == 'posix': | 38 | if os.name == 'posix': |
40 | pseudonym = 'gnunet-pseudonym' | ||
41 | gnunetarm = 'gnunet-arm' | 39 | gnunetarm = 'gnunet-arm' |
42 | publish = 'gnunet-publish' | ||
43 | unindex = 'gnunet-unindex' | ||
44 | search = 'gnunet-search' | ||
45 | elif os.name == 'nt': | 40 | elif os.name == 'nt': |
46 | pseudonym = 'gnunet-pseudonym.exe' | ||
47 | gnunetarm = 'gnunet-arm.exe' | 41 | gnunetarm = 'gnunet-arm.exe' |
48 | publish = 'gnunet-publish.exe' | ||
49 | unindex = 'gnunet-unindex.exe' | ||
50 | search = 'gnunet-search.exe' | ||
51 | 42 | ||
52 | if os.name == "nt": | 43 | if os.name == "nt": |
53 | shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True) | 44 | shutil.rmtree (os.path.join (os.getenv ("TEMP"), testname), True) |
54 | else: | 45 | else: |
55 | shutil.rmtree ("/tmp/gnunet-test-fs-py-ns", True) | 46 | shutil.rmtree ("/tmp/" + testname, True) |
56 | 47 | ||
48 | if verbose == True: | ||
49 | print "Running " + testname | ||
50 | |||
51 | |||
52 | |||
53 | |||
54 | exit () | ||
55 | # dummy copied from fs | ||
57 | arm = subprocess.Popen ([gnunetarm, '-sq', '-c', 'test_gnunet_fs_ns_data.conf']) | 56 | arm = subprocess.Popen ([gnunetarm, '-sq', '-c', 'test_gnunet_fs_ns_data.conf']) |
58 | arm.communicate () | 57 | arm.communicate () |
59 | 58 | ||