diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-25 07:17:55 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-25 07:17:55 +0000 |
commit | 31c11f6c1934bcef07e12055dc9d0484957bd5d5 (patch) | |
tree | cd08eae7afebfa8fd774ce61282a5c56800fed0b /src/integration-tests | |
parent | bb0b87bf4c34d550f5fa1679fd25279e3921a949 (diff) | |
download | gnunet-31c11f6c1934bcef07e12055dc9d0484957bd5d5.tar.gz gnunet-31c11f6c1934bcef07e12055dc9d0484957bd5d5.zip |
-LRN: fix integration tests
Diffstat (limited to 'src/integration-tests')
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" | |||
51 | verbose = True | 51 | verbose = True |
52 | check_timeout = 180 | 52 | check_timeout = 180 |
53 | 53 | ||
54 | if os.name == "nt": | ||
55 | tmp = os.getenv ("TEMP") | ||
56 | else: | ||
57 | tmp = "/tmp" | ||
54 | 58 | ||
55 | def cleanup (): | 59 | def 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 | ||
63 | def success_cont (check): | 63 | def 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" | |||
51 | verbose = True | 51 | verbose = True |
52 | check_timeout = 180 | 52 | check_timeout = 180 |
53 | 53 | ||
54 | if os.name == "nt": | ||
55 | tmp = os.getenv ("TEMP") | ||
56 | else: | ||
57 | tmp = "/tmp" | ||
54 | 58 | ||
55 | def cleanup (): | 59 | def 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 | ||
63 | def success_server_stop_cont (check): | 63 | def 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" | |||
51 | verbose = True | 51 | verbose = True |
52 | check_timeout = 180 | 52 | check_timeout = 180 |
53 | 53 | ||
54 | if os.name == "nt": | ||
55 | tmp = os.getenv ("TEMP") | ||
56 | else: | ||
57 | tmp = "/tmp" | ||
54 | 58 | ||
55 | def cleanup (): | 59 | def 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 | ||
63 | def success_server_stop_cont (check): | 63 | def 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 | |||
36 | from gnunet_testing import Condition | 36 | from gnunet_testing import Condition |
37 | from gnunet_testing import * | 37 | from gnunet_testing import * |
38 | 38 | ||
39 | if os.name == "nt": | ||
40 | tmp = os.getenv ("TEMP") | ||
41 | else: | ||
42 | tmp = "/tmp" | ||
39 | 43 | ||
40 | #definitions | 44 | #definitions |
41 | 45 | ||
@@ -45,14 +49,9 @@ check_timeout = 180 | |||
45 | 49 | ||
46 | 50 | ||
47 | def cleanup (): | 51 | def 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 | ||
58 | def success_cont (check): | 57 | def 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 | |||
37 | from gnunet_testing import Condition | 37 | from gnunet_testing import Condition |
38 | from gnunet_testing import * | 38 | from gnunet_testing import * |
39 | 39 | ||
40 | if os.name == "nt": | ||
41 | tmp = os.getenv ("TEMP") | ||
42 | else: | ||
43 | tmp = "/tmp" | ||
40 | 44 | ||
41 | #definitions | 45 | #definitions |
42 | testname = "test_integration_clique_nat" | 46 | testname = "test_integration_clique_nat" |
@@ -45,14 +49,9 @@ check_timeout = 180 | |||
45 | 49 | ||
46 | 50 | ||
47 | def cleanup (): | 51 | def 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 | ||
58 | def success_cont (check): | 57 | def 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" | |||
45 | verbose = True | 45 | verbose = True |
46 | check_timeout = 180 | 46 | check_timeout = 180 |
47 | 47 | ||
48 | if os.name == "nt": | ||
49 | tmp = os.getenv ("TEMP") | ||
50 | else: | ||
51 | tmp = "/tmp" | ||
48 | 52 | ||
49 | def cleanup (): | 53 | def 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 | ||
60 | def success_cont (check): | 59 | def 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 | |||
36 | from gnunet_testing import Condition | 36 | from gnunet_testing import Condition |
37 | from gnunet_testing import * | 37 | from gnunet_testing import * |
38 | 38 | ||
39 | if os.name == "nt": | ||
40 | tmp = os.getenv ("TEMP") | ||
41 | else: | ||
42 | tmp = "/tmp" | ||
39 | 43 | ||
40 | #definitions | 44 | #definitions |
41 | 45 | ||
@@ -45,10 +49,7 @@ check_timeout = 180 | |||
45 | 49 | ||
46 | 50 | ||
47 | def cleanup (): | 51 | def 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 | ||
54 | def success_cont (check): | 55 | def 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" | |||
43 | verbose = True | 43 | verbose = True |
44 | check_timeout = 180 | 44 | check_timeout = 180 |
45 | 45 | ||
46 | if os.name == "nt": | ||
47 | tmp = os.getenv ("TEMP") | ||
48 | else: | ||
49 | tmp = "/tmp" | ||
46 | 50 | ||
47 | def cleanup (): | 51 | def 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 | def success_cont (check): | 54 | def 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 | |||
36 | from gnunet_testing import Condition | 36 | from gnunet_testing import Condition |
37 | from gnunet_testing import * | 37 | from gnunet_testing import * |
38 | 38 | ||
39 | if os.name == "nt": | ||
40 | tmp = os.getenv ("TEMP") | ||
41 | else: | ||
42 | tmp = "/tmp" | ||
39 | 43 | ||
40 | #definitions | 44 | #definitions |
41 | 45 | ||
@@ -45,10 +49,7 @@ check_timeout = 180 | |||
45 | 49 | ||
46 | 50 | ||
47 | def cleanup (): | 51 | def 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 | ||
54 | def success_cont (check): | 55 | def 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" | |||
45 | verbose = True | 45 | verbose = True |
46 | check_timeout = 180 | 46 | check_timeout = 180 |
47 | 47 | ||
48 | if os.name == "nt": | ||
49 | tmp = os.getenv ("TEMP") | ||
50 | else: | ||
51 | tmp = "/tmp" | ||
48 | 52 | ||
49 | def cleanup (): | 53 | def 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 | ||
58 | def success_disconnect_cont (check): | 58 | def 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" | |||
46 | verbose = False | 46 | verbose = False |
47 | check_timeout = 180 | 47 | check_timeout = 180 |
48 | 48 | ||
49 | if os.name == "nt": | ||
50 | tmp = os.getenv ("TEMP") | ||
51 | else: | ||
52 | tmp = "/tmp" | ||
49 | 53 | ||
50 | def cleanup (): | 54 | def 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 | ||
59 | def success_restart_cont (check): | 59 | def success_restart_cont (check): |