aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-25 07:17:55 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-25 07:17:55 +0000
commit31c11f6c1934bcef07e12055dc9d0484957bd5d5 (patch)
treecd08eae7afebfa8fd774ce61282a5c56800fed0b /src/integration-tests
parentbb0b87bf4c34d550f5fa1679fd25279e3921a949 (diff)
downloadgnunet-31c11f6c1934bcef07e12055dc9d0484957bd5d5.tar.gz
gnunet-31c11f6c1934bcef07e12055dc9d0484957bd5d5.zip
-LRN: fix integration tests
Diffstat (limited to 'src/integration-tests')
-rwxr-xr-xsrc/integration-tests/test_integration_bootstrap_and_connect.py.in12
-rwxr-xr-xsrc/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in12
-rwxr-xr-xsrc/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in12
-rwxr-xr-xsrc/integration-tests/test_integration_clique.py.in15
-rwxr-xr-xsrc/integration-tests/test_integration_clique_nat.py.in15
-rwxr-xr-xsrc/integration-tests/test_integration_connect_on_restart.py.in15
-rwxr-xr-xsrc/integration-tests/test_integration_connection_values_tcp.py.in9
-rwxr-xr-xsrc/integration-tests/test_integration_connection_values_tcp_udp.py.in10
-rwxr-xr-xsrc/integration-tests/test_integration_connection_values_tcp_udp_http.py.in9
-rwxr-xr-xsrc/integration-tests/test_integration_disconnect.py.in12
-rwxr-xr-xsrc/integration-tests/test_integration_restart.py.in12
11 files changed, 66 insertions, 67 deletions
diff --git a/src/integration-tests/test_integration_bootstrap_and_connect.py.in b/src/integration-tests/test_integration_bootstrap_and_connect.py.in
index 0b29b460d..cd3bdbef8 100755
--- a/src/integration-tests/test_integration_bootstrap_and_connect.py.in
+++ b/src/integration-tests/test_integration_bootstrap_and_connect.py.in
@@ -51,14 +51,14 @@ testname = "test_integration_bootstrap_and_connect"
51verbose = True 51verbose = True
52check_timeout = 180 52check_timeout = 180
53 53
54if os.name == "nt":
55 tmp = os.getenv ("TEMP")
56else:
57 tmp = "/tmp"
54 58
55def cleanup (): 59def cleanup ():
56 if os.name == "nt": 60 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
57 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True) 61 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
58 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
59 else:
60 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
61 shutil.rmtree ("/tmp/c_no_nat_client/", True)
62 62
63def success_cont (check): 63def success_cont (check):
64 global success 64 global success
diff --git a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
index 76e69b7cb..3ca0aea86 100755
--- a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
+++ b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect.py.in
@@ -51,14 +51,14 @@ testname = "test_integration_bootstrap_and_connect"
51verbose = True 51verbose = True
52check_timeout = 180 52check_timeout = 180
53 53
54if os.name == "nt":
55 tmp = os.getenv ("TEMP")
56else:
57 tmp = "/tmp"
54 58
55def cleanup (): 59def cleanup ():
56 if os.name == "nt": 60 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
57 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True) 61 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
58 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
59 else:
60 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
61 shutil.rmtree ("/tmp/c_no_nat_client/", True)
62 62
63def success_server_stop_cont (check): 63def success_server_stop_cont (check):
64 global success 64 global success
diff --git a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
index 3269f4dc4..55982c2e4 100755
--- a/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
+++ b/src/integration-tests/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in
@@ -51,14 +51,14 @@ testname = "test_integration_bootstrap_and_connect"
51verbose = True 51verbose = True
52check_timeout = 180 52check_timeout = 180
53 53
54if os.name == "nt":
55 tmp = os.getenv ("TEMP")
56else:
57 tmp = "/tmp"
54 58
55def cleanup (): 59def cleanup ():
56 if os.name == "nt": 60 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
57 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True) 61 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
58 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
59 else:
60 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
61 shutil.rmtree ("/tmp/c_no_nat_client/", True)
62 62
63def success_server_stop_cont (check): 63def success_server_stop_cont (check):
64 global success 64 global success
diff --git a/src/integration-tests/test_integration_clique.py.in b/src/integration-tests/test_integration_clique.py.in
index 7c3fdd8a9..6c7a5d770 100755
--- a/src/integration-tests/test_integration_clique.py.in
+++ b/src/integration-tests/test_integration_clique.py.in
@@ -36,6 +36,10 @@ from gnunet_testing import Check
36from gnunet_testing import Condition 36from gnunet_testing import Condition
37from gnunet_testing import * 37from gnunet_testing import *
38 38
39if os.name == "nt":
40 tmp = os.getenv ("TEMP")
41else:
42 tmp = "/tmp"
39 43
40#definitions 44#definitions
41 45
@@ -45,14 +49,9 @@ check_timeout = 180
45 49
46 50
47def cleanup (): 51def cleanup ():
48 if os.name == "nt": 52 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
49 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True) 53 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
50 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True) 54 shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), True)
51 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client_2"), True)
52 else:
53 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
54 shutil.rmtree ("/tmp/c_no_nat_client/", True)
55 shutil.rmtree ("/tmp/c_no_nat_client_2/", True)
56 55
57 56
58def success_cont (check): 57def success_cont (check):
diff --git a/src/integration-tests/test_integration_clique_nat.py.in b/src/integration-tests/test_integration_clique_nat.py.in
index 48dfa61cd..a457e8d83 100755
--- a/src/integration-tests/test_integration_clique_nat.py.in
+++ b/src/integration-tests/test_integration_clique_nat.py.in
@@ -37,6 +37,10 @@ from gnunet_testing import Check
37from gnunet_testing import Condition 37from gnunet_testing import Condition
38from gnunet_testing import * 38from gnunet_testing import *
39 39
40if os.name == "nt":
41 tmp = os.getenv ("TEMP")
42else:
43 tmp = "/tmp"
40 44
41#definitions 45#definitions
42testname = "test_integration_clique_nat" 46testname = "test_integration_clique_nat"
@@ -45,14 +49,9 @@ check_timeout = 180
45 49
46 50
47def cleanup (): 51def cleanup ():
48 if os.name == "nt": 52 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
49 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_bootstrap_server"), True) 53 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
50 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True) 54 shutil.rmtree (os.path.join (tmp, "c_nat_client"), True)
51 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_nat_client"), True)
52 else:
53 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
54 shutil.rmtree ("/tmp/c_no_nat_client/", True)
55 shutil.rmtree ("/tmp/c_nat_client/", True)
56 55
57 56
58def success_cont (check): 57def success_cont (check):
diff --git a/src/integration-tests/test_integration_connect_on_restart.py.in b/src/integration-tests/test_integration_connect_on_restart.py.in
index 7215b9bf3..0b23c8fe8 100755
--- a/src/integration-tests/test_integration_connect_on_restart.py.in
+++ b/src/integration-tests/test_integration_connect_on_restart.py.in
@@ -45,16 +45,15 @@ testname = "test_integration_clique"
45verbose = True 45verbose = True
46check_timeout = 180 46check_timeout = 180
47 47
48if os.name == "nt":
49 tmp = os.getenv ("TEMP")
50else:
51 tmp = "/tmp"
48 52
49def cleanup (): 53def cleanup ():
50 if os.name == "nt": 54 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
51 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_bootstrap_server"), True) 55 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
52 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True) 56 shutil.rmtree (os.path.join (tmp, "c_no_nat_client_2"), True)
53 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client_2"), True)
54 else:
55 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
56 shutil.rmtree ("/tmp/c_no_nat_client/", True)
57 shutil.rmtree ("/tmp/c_no_nat_client_2/", True)
58 57
59 58
60def success_cont (check): 59def success_cont (check):
diff --git a/src/integration-tests/test_integration_connection_values_tcp.py.in b/src/integration-tests/test_integration_connection_values_tcp.py.in
index 8c359ff8d..efcf5c7fd 100755
--- a/src/integration-tests/test_integration_connection_values_tcp.py.in
+++ b/src/integration-tests/test_integration_connection_values_tcp.py.in
@@ -36,6 +36,10 @@ from gnunet_testing import Check
36from gnunet_testing import Condition 36from gnunet_testing import Condition
37from gnunet_testing import * 37from gnunet_testing import *
38 38
39if os.name == "nt":
40 tmp = os.getenv ("TEMP")
41else:
42 tmp = "/tmp"
39 43
40#definitions 44#definitions
41 45
@@ -45,10 +49,7 @@ check_timeout = 180
45 49
46 50
47def cleanup (): 51def cleanup ():
48 if os.name == "nt": 52 shutil.rmtree (os.path.join (tmp, "c_normal_client"), True)
49 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_normal_client"), True)
50 else:
51 shutil.rmtree ("/tmp/c_normal_client/", True)
52 53
53 54
54def success_cont (check): 55def success_cont (check):
diff --git a/src/integration-tests/test_integration_connection_values_tcp_udp.py.in b/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
index 4403c9092..cfb10432b 100755
--- a/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
+++ b/src/integration-tests/test_integration_connection_values_tcp_udp.py.in
@@ -43,13 +43,13 @@ testname = "test_integration_connection_value"
43verbose = True 43verbose = True
44check_timeout = 180 44check_timeout = 180
45 45
46if os.name == "nt":
47 tmp = os.getenv ("TEMP")
48else:
49 tmp = "/tmp"
46 50
47def cleanup (): 51def cleanup ():
48 if os.name == "nt": 52 shutil.rmtree (os.path.join (tmp, "c_normal_client"), True)
49 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_normal_client"), True)
50 else:
51 shutil.rmtree ("/tmp/c_normal_client/", True)
52
53 53
54def success_cont (check): 54def success_cont (check):
55 global success 55 global success
diff --git a/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in b/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in
index 6cd061379..4e9e72e4e 100755
--- a/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in
+++ b/src/integration-tests/test_integration_connection_values_tcp_udp_http.py.in
@@ -36,6 +36,10 @@ from gnunet_testing import Check
36from gnunet_testing import Condition 36from gnunet_testing import Condition
37from gnunet_testing import * 37from gnunet_testing import *
38 38
39if os.name == "nt":
40 tmp = os.getenv ("TEMP")
41else:
42 tmp = "/tmp"
39 43
40#definitions 44#definitions
41 45
@@ -45,10 +49,7 @@ check_timeout = 180
45 49
46 50
47def cleanup (): 51def cleanup ():
48 if os.name == "nt": 52 shutil.rmtree (os.path.join (tmp, "c_normal_client"), True)
49 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_normal_client"), True)
50 else:
51 shutil.rmtree ("/tmp/c_normal_client/", True)
52 53
53 54
54def success_cont (check): 55def success_cont (check):
diff --git a/src/integration-tests/test_integration_disconnect.py.in b/src/integration-tests/test_integration_disconnect.py.in
index afeb5a968..2a863f8b2 100755
--- a/src/integration-tests/test_integration_disconnect.py.in
+++ b/src/integration-tests/test_integration_disconnect.py.in
@@ -45,14 +45,14 @@ testname = "test_integration_disconnect"
45verbose = True 45verbose = True
46check_timeout = 180 46check_timeout = 180
47 47
48if os.name == "nt":
49 tmp = os.getenv ("TEMP")
50else:
51 tmp = "/tmp"
48 52
49def cleanup (): 53def cleanup ():
50 if os.name == "nt": 54 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
51 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_bootstrap_server"), True) 55 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
52 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
53 else:
54 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
55 shutil.rmtree ("/tmp/c_no_nat_client/", True)
56 56
57 57
58def success_disconnect_cont (check): 58def success_disconnect_cont (check):
diff --git a/src/integration-tests/test_integration_restart.py.in b/src/integration-tests/test_integration_restart.py.in
index cdf335f51..b3d3ecd18 100755
--- a/src/integration-tests/test_integration_restart.py.in
+++ b/src/integration-tests/test_integration_restart.py.in
@@ -46,14 +46,14 @@ testname = "test_integration_restart"
46verbose = False 46verbose = False
47check_timeout = 180 47check_timeout = 180
48 48
49if os.name == "nt":
50 tmp = os.getenv ("TEMP")
51else:
52 tmp = "/tmp"
49 53
50def cleanup (): 54def cleanup ():
51 if os.name == "nt": 55 shutil.rmtree (os.path.join (tmp, "c_bootstrap_server"), True)
52 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "gnunet-test-fs-py-ns"), True) 56 shutil.rmtree (os.path.join (tmp, "c_no_nat_client"), True)
53 shutil.rmtree (os.path.join (os.getenv ("TEMP"), "c_no_nat_client"), True)
54 else:
55 shutil.rmtree ("/tmp/c_bootstrap_server/", True)
56 shutil.rmtree ("/tmp/c_no_nat_client/", True)
57 57
58 58
59def success_restart_cont (check): 59def success_restart_cont (check):