diff options
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/gns/gnunet-service-gns.c | 6 | ||||
-rw-r--r-- | src/pt/Makefile.am | 66 | ||||
-rw-r--r-- | src/pt/test_gns_vpn.c (renamed from src/vpn/test_gns_vpn.c) | 0 | ||||
-rw-r--r-- | src/pt/test_gns_vpn.conf (renamed from src/vpn/test_gns_vpn.conf) | 0 | ||||
-rw-r--r-- | src/pt/test_gnunet_vpn.c (renamed from src/vpn/test_gnunet_vpn.c) | 0 | ||||
-rw-r--r-- | src/pt/test_gnunet_vpn.conf (renamed from src/vpn/test_gnunet_vpn.conf) | 0 | ||||
-rw-r--r-- | src/vpn/Makefile.am | 65 |
8 files changed, 71 insertions, 68 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index d6eeb732a..1aa952a67 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -8,7 +8,7 @@ endif | |||
8 | 8 | ||
9 | if LINUX | 9 | if LINUX |
10 | # All of these currently only work on GNU/Linux | 10 | # All of these currently only work on GNU/Linux |
11 | LINUX_DIR = dns vpn gns exit pt | 11 | LINUX_DIR = dns exit vpn gns pt |
12 | endif | 12 | endif |
13 | 13 | ||
14 | if HAVE_MYSQL | 14 | if HAVE_MYSQL |
diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 9cbfd2d3a..99738056d 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c | |||
@@ -1081,7 +1081,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1081 | &max_record_put_interval)) | 1081 | &max_record_put_interval)) |
1082 | { | 1082 | { |
1083 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 1083 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
1084 | "Record put interval: %d\n", | 1084 | "Record put interval: %llu\n", |
1085 | max_record_put_interval); | 1085 | max_record_put_interval); |
1086 | } | 1086 | } |
1087 | 1087 | ||
@@ -1091,7 +1091,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1091 | &max_parallel_bg_queries)) | 1091 | &max_parallel_bg_queries)) |
1092 | { | 1092 | { |
1093 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 1093 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
1094 | "Number of allowed parallel background queries: %d\n", | 1094 | "Number of allowed parallel background queries: %llu\n", |
1095 | max_parallel_bg_queries); | 1095 | max_parallel_bg_queries); |
1096 | } | 1096 | } |
1097 | 1097 | ||
@@ -1110,7 +1110,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1110 | &default_lookup_timeout_secs)) | 1110 | &default_lookup_timeout_secs)) |
1111 | { | 1111 | { |
1112 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, | 1112 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
1113 | "Default lookup timeout: %ds\n", default_lookup_timeout_secs); | 1113 | "Default lookup timeout: %llus\n", default_lookup_timeout_secs); |
1114 | default_lookup_timeout = GNUNET_TIME_relative_multiply( | 1114 | default_lookup_timeout = GNUNET_TIME_relative_multiply( |
1115 | GNUNET_TIME_UNIT_SECONDS, | 1115 | GNUNET_TIME_UNIT_SECONDS, |
1116 | default_lookup_timeout_secs); | 1116 | default_lookup_timeout_secs); |
diff --git a/src/pt/Makefile.am b/src/pt/Makefile.am index 385bff672..af2817bf9 100644 --- a/src/pt/Makefile.am +++ b/src/pt/Makefile.am | |||
@@ -29,3 +29,69 @@ gnunet_daemon_pt_LDADD = \ | |||
29 | $(top_builddir)/src/util/libgnunetutil.la \ | 29 | $(top_builddir)/src/util/libgnunetutil.la \ |
30 | $(top_builddir)/src/mesh/libgnunetmesh.la \ | 30 | $(top_builddir)/src/mesh/libgnunetmesh.la \ |
31 | $(GN_LIBINTL) | 31 | $(GN_LIBINTL) |
32 | |||
33 | check_PROGRAMS = $(VPN_TEST) | ||
34 | |||
35 | if ENABLE_TEST_RUN | ||
36 | TESTS = $(check_PROGRAMS) | ||
37 | endif | ||
38 | |||
39 | EXTRA_DIST = \ | ||
40 | test_gnunet_vpn.conf \ | ||
41 | test_gns_vpn.conf | ||
42 | |||
43 | if HAVE_MHD | ||
44 | VPN_TEST = \ | ||
45 | test_gnunet_vpn-4_to_6 \ | ||
46 | test_gnunet_vpn-6_to_4 \ | ||
47 | test_gnunet_vpn-6_over \ | ||
48 | test_gnunet_vpn-4_over \ | ||
49 | test_gns_vpn | ||
50 | endif | ||
51 | |||
52 | |||
53 | test_gns_vpn_SOURCES = \ | ||
54 | test_gns_vpn.c | ||
55 | test_gns_vpn_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
56 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ | ||
57 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
58 | $(top_builddir)/src/util/libgnunetutil.la | ||
59 | test_gnunet_vpn_4_over_CPPFLAGS = \ | ||
60 | @LIBCURL_CPPFLAGS@ | ||
61 | |||
62 | test_gnunet_vpn_4_over_SOURCES = \ | ||
63 | test_gnunet_vpn.c | ||
64 | test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
65 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
66 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
67 | $(top_builddir)/src/util/libgnunetutil.la | ||
68 | test_gnunet_vpn_4_over_CPPFLAGS = \ | ||
69 | @LIBCURL_CPPFLAGS@ | ||
70 | |||
71 | test_gnunet_vpn_6_over_SOURCES = \ | ||
72 | test_gnunet_vpn.c | ||
73 | test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
74 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
75 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
76 | $(top_builddir)/src/util/libgnunetutil.la | ||
77 | test_gnunet_vpn_6_over_CPPFLAGS = \ | ||
78 | @LIBCURL_CPPFLAGS@ | ||
79 | |||
80 | test_gnunet_vpn_4_to_6_SOURCES = \ | ||
81 | test_gnunet_vpn.c | ||
82 | test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
83 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
84 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
85 | $(top_builddir)/src/util/libgnunetutil.la | ||
86 | test_gnunet_vpn_4_to_6_CPPFLAGS = \ | ||
87 | @LIBCURL_CPPFLAGS@ | ||
88 | |||
89 | test_gnunet_vpn_6_to_4_SOURCES = \ | ||
90 | test_gnunet_vpn.c | ||
91 | test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
92 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
93 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
94 | $(top_builddir)/src/util/libgnunetutil.la | ||
95 | test_gnunet_vpn_6_to_4_CPPFLAGS = \ | ||
96 | @LIBCURL_CPPFLAGS@ | ||
97 | |||
diff --git a/src/vpn/test_gns_vpn.c b/src/pt/test_gns_vpn.c index 0c6e42500..0c6e42500 100644 --- a/src/vpn/test_gns_vpn.c +++ b/src/pt/test_gns_vpn.c | |||
diff --git a/src/vpn/test_gns_vpn.conf b/src/pt/test_gns_vpn.conf index 4c1425793..4c1425793 100644 --- a/src/vpn/test_gns_vpn.conf +++ b/src/pt/test_gns_vpn.conf | |||
diff --git a/src/vpn/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c index d2cfc757b..d2cfc757b 100644 --- a/src/vpn/test_gnunet_vpn.c +++ b/src/pt/test_gnunet_vpn.c | |||
diff --git a/src/vpn/test_gnunet_vpn.conf b/src/pt/test_gnunet_vpn.conf index bdac1a5b6..bdac1a5b6 100644 --- a/src/vpn/test_gnunet_vpn.conf +++ b/src/pt/test_gnunet_vpn.conf | |||
diff --git a/src/vpn/Makefile.am b/src/vpn/Makefile.am index c079f3711..efd61d775 100644 --- a/src/vpn/Makefile.am +++ b/src/vpn/Makefile.am | |||
@@ -20,14 +20,6 @@ VPNBIN = gnunet-helper-vpn | |||
20 | install-exec-hook: | 20 | install-exec-hook: |
21 | $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-vpn || true | 21 | $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-vpn || true |
22 | $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-vpn || true | 22 | $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-vpn || true |
23 | if HAVE_MHD | ||
24 | VPN_TEST = \ | ||
25 | test_gnunet_vpn-4_to_6 \ | ||
26 | test_gnunet_vpn-6_to_4 \ | ||
27 | test_gnunet_vpn-6_over \ | ||
28 | test_gnunet_vpn-4_over \ | ||
29 | test_gns_vpn | ||
30 | endif | ||
31 | else | 23 | else |
32 | install-exec-hook: | 24 | install-exec-hook: |
33 | endif | 25 | endif |
@@ -40,18 +32,6 @@ lib_LTLIBRARIES = \ | |||
40 | bin_PROGRAMS = \ | 32 | bin_PROGRAMS = \ |
41 | $(VPNBIN) gnunet-service-vpn gnunet-vpn | 33 | $(VPNBIN) gnunet-service-vpn gnunet-vpn |
42 | 34 | ||
43 | |||
44 | |||
45 | check_PROGRAMS = $(VPN_TEST) | ||
46 | |||
47 | if ENABLE_TEST_RUN | ||
48 | TESTS = $(check_PROGRAMS) | ||
49 | endif | ||
50 | |||
51 | EXTRA_DIST = \ | ||
52 | test_gnunet_vpn.conf \ | ||
53 | test_gns_vpn.conf | ||
54 | |||
55 | gnunet_helper_vpn_SOURCES = \ | 35 | gnunet_helper_vpn_SOURCES = \ |
56 | gnunet-helper-vpn.c | 36 | gnunet-helper-vpn.c |
57 | 37 | ||
@@ -82,47 +62,4 @@ libgnunetvpn_la_LIBADD = \ | |||
82 | libgnunetvpn_la_LDFLAGS = \ | 62 | libgnunetvpn_la_LDFLAGS = \ |
83 | $(GN_LIB_LDFLAGS) | 63 | $(GN_LIB_LDFLAGS) |
84 | 64 | ||
85 | test_gns_vpn_SOURCES = \ | 65 | |
86 | test_gns_vpn.c | ||
87 | test_gns_vpn_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
88 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ | ||
89 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
90 | $(top_builddir)/src/util/libgnunetutil.la | ||
91 | test_gnunet_vpn_4_over_CPPFLAGS = \ | ||
92 | @LIBCURL_CPPFLAGS@ | ||
93 | |||
94 | test_gnunet_vpn_4_over_SOURCES = \ | ||
95 | test_gnunet_vpn.c | ||
96 | test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
97 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
98 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
99 | $(top_builddir)/src/util/libgnunetutil.la | ||
100 | test_gnunet_vpn_4_over_CPPFLAGS = \ | ||
101 | @LIBCURL_CPPFLAGS@ | ||
102 | |||
103 | test_gnunet_vpn_6_over_SOURCES = \ | ||
104 | test_gnunet_vpn.c | ||
105 | test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
106 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
107 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
108 | $(top_builddir)/src/util/libgnunetutil.la | ||
109 | test_gnunet_vpn_6_over_CPPFLAGS = \ | ||
110 | @LIBCURL_CPPFLAGS@ | ||
111 | |||
112 | test_gnunet_vpn_4_to_6_SOURCES = \ | ||
113 | test_gnunet_vpn.c | ||
114 | test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
115 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
116 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
117 | $(top_builddir)/src/util/libgnunetutil.la | ||
118 | test_gnunet_vpn_4_to_6_CPPFLAGS = \ | ||
119 | @LIBCURL_CPPFLAGS@ | ||
120 | |||
121 | test_gnunet_vpn_6_to_4_SOURCES = \ | ||
122 | test_gnunet_vpn.c | ||
123 | test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBCURL@ \ | ||
124 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | ||
125 | $(top_builddir)/src/testing/libgnunettesting.la \ | ||
126 | $(top_builddir)/src/util/libgnunetutil.la | ||
127 | test_gnunet_vpn_6_to_4_CPPFLAGS = \ | ||
128 | @LIBCURL_CPPFLAGS@ | ||