aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am2
-rw-r--r--src/gns/gnunet-service-gns.c6
-rw-r--r--src/pt/Makefile.am66
-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.am65
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
9if LINUX 9if 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
12endif 12endif
13 13
14if HAVE_MYSQL 14if 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
33check_PROGRAMS = $(VPN_TEST)
34
35if ENABLE_TEST_RUN
36TESTS = $(check_PROGRAMS)
37endif
38
39EXTRA_DIST = \
40 test_gnunet_vpn.conf \
41 test_gns_vpn.conf
42
43if 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
50endif
51
52
53test_gns_vpn_SOURCES = \
54 test_gns_vpn.c
55test_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
59test_gnunet_vpn_4_over_CPPFLAGS = \
60 @LIBCURL_CPPFLAGS@
61
62test_gnunet_vpn_4_over_SOURCES = \
63 test_gnunet_vpn.c
64test_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
68test_gnunet_vpn_4_over_CPPFLAGS = \
69 @LIBCURL_CPPFLAGS@
70
71test_gnunet_vpn_6_over_SOURCES = \
72 test_gnunet_vpn.c
73test_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
77test_gnunet_vpn_6_over_CPPFLAGS = \
78 @LIBCURL_CPPFLAGS@
79
80test_gnunet_vpn_4_to_6_SOURCES = \
81 test_gnunet_vpn.c
82test_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
86test_gnunet_vpn_4_to_6_CPPFLAGS = \
87 @LIBCURL_CPPFLAGS@
88
89test_gnunet_vpn_6_to_4_SOURCES = \
90 test_gnunet_vpn.c
91test_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
95test_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
20install-exec-hook: 20install-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
23if 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
30endif
31else 23else
32install-exec-hook: 24install-exec-hook:
33endif 25endif
@@ -40,18 +32,6 @@ lib_LTLIBRARIES = \
40bin_PROGRAMS = \ 32bin_PROGRAMS = \
41 $(VPNBIN) gnunet-service-vpn gnunet-vpn 33 $(VPNBIN) gnunet-service-vpn gnunet-vpn
42 34
43
44
45check_PROGRAMS = $(VPN_TEST)
46
47if ENABLE_TEST_RUN
48TESTS = $(check_PROGRAMS)
49endif
50
51EXTRA_DIST = \
52 test_gnunet_vpn.conf \
53 test_gns_vpn.conf
54
55gnunet_helper_vpn_SOURCES = \ 35gnunet_helper_vpn_SOURCES = \
56 gnunet-helper-vpn.c 36 gnunet-helper-vpn.c
57 37
@@ -82,47 +62,4 @@ libgnunetvpn_la_LIBADD = \
82libgnunetvpn_la_LDFLAGS = \ 62libgnunetvpn_la_LDFLAGS = \
83 $(GN_LIB_LDFLAGS) 63 $(GN_LIB_LDFLAGS)
84 64
85test_gns_vpn_SOURCES = \ 65
86 test_gns_vpn.c
87test_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
91test_gnunet_vpn_4_over_CPPFLAGS = \
92 @LIBCURL_CPPFLAGS@
93
94test_gnunet_vpn_4_over_SOURCES = \
95 test_gnunet_vpn.c
96test_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
100test_gnunet_vpn_4_over_CPPFLAGS = \
101 @LIBCURL_CPPFLAGS@
102
103test_gnunet_vpn_6_over_SOURCES = \
104 test_gnunet_vpn.c
105test_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
109test_gnunet_vpn_6_over_CPPFLAGS = \
110 @LIBCURL_CPPFLAGS@
111
112test_gnunet_vpn_4_to_6_SOURCES = \
113 test_gnunet_vpn.c
114test_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
118test_gnunet_vpn_4_to_6_CPPFLAGS = \
119 @LIBCURL_CPPFLAGS@
120
121test_gnunet_vpn_6_to_4_SOURCES = \
122 test_gnunet_vpn.c
123test_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
127test_gnunet_vpn_6_to_4_CPPFLAGS = \
128 @LIBCURL_CPPFLAGS@