aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests/test_integration_clique.py.in
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-12-08 16:16:24 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-12-08 16:16:24 +0000
commit3ec5e14c7071bfb39ad7af8f98365d6e81cbe026 (patch)
tree65033020d74224fe25ece852c2daf35fec104c26 /src/integration-tests/test_integration_clique.py.in
parentcbd09ba94fde1331cb4fe6ea29f5f164adc8db25 (diff)
downloadgnunet-3ec5e14c7071bfb39ad7af8f98365d6e81cbe026.tar.gz
gnunet-3ec5e14c7071bfb39ad7af8f98365d6e81cbe026.zip
step by step
Diffstat (limited to 'src/integration-tests/test_integration_clique.py.in')
-rwxr-xr-xsrc/integration-tests/test_integration_clique.py.in31
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#
21import sys 21import sys
22import os 22import os
23import subprocess 23import subprocess
24import re 24import re
25import shutil 25import shutil
26 26
27
28testname = "test_integration_clique"
29verbose = True
30
27srcdir = "../.." 31srcdir = "../.."
28gnunet_pyexpect_dir = os.path.join (srcdir, "contrib") 32gnunet_pyexpect_dir = os.path.join (srcdir, "contrib")
29if gnunet_pyexpect_dir not in sys.path: 33if gnunet_pyexpect_dir not in sys.path:
@@ -31,29 +35,24 @@ if gnunet_pyexpect_dir not in sys.path:
31 35
32from gnunet_pyexpect import pexpect 36from gnunet_pyexpect import pexpect
33 37
34exit ()
35
36
37# dummy copied from fs
38
39if os.name == 'posix': 38if 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'
45elif os.name == 'nt': 40elif 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
52if os.name == "nt": 43if 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)
54else: 45else:
55 shutil.rmtree ("/tmp/gnunet-test-fs-py-ns", True) 46 shutil.rmtree ("/tmp/" + testname, True)
56 47
48if verbose == True:
49 print "Running " + testname
50
51
52
53
54exit ()
55# dummy copied from fs
57arm = subprocess.Popen ([gnunetarm, '-sq', '-c', 'test_gnunet_fs_ns_data.conf']) 56arm = subprocess.Popen ([gnunetarm, '-sq', '-c', 'test_gnunet_fs_ns_data.conf'])
58arm.communicate () 57arm.communicate ()
59 58