aboutsummaryrefslogtreecommitdiff
path: root/src/integration-tests/Makefile.am
blob: 72a2fa9df5b8ff3c856cb2f4b4f54153edc8f393 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
INCLUDES = -I$(top_srcdir)/src/include

if MINGW
 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
endif

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

#bin_PROGRAMS = \
# connection_watchdog

noinst_PROGRAMS = connection_watchdog

noinst_SCRIPTS = \
 gnunet_testing.py \
 gnunet_pyexpect.py \
 test_integration_connection_values_tcp.py \
 test_integration_connection_values_tcp_udp.py \
 test_integration_connection_values_tcp_udp_http.py

if HAVE_PYTHON
check_SCRIPTS = \
 test_integration_bootstrap_and_connect.py \
 test_integration_bootstrap_and_connect_and_disconnect.py \
 test_integration_bootstrap_and_connect_and_disconnect_nat.py \
 test_integration_restart.py \
 test_integration_clique.py \
 test_integration_clique_nat.py \
 test_integration_connect_on_restart.py
endif
# test_integration_disconnect.py 

if HAVE_MHD
if ENABLE_TEST_RUN
TESTS = \
 $(check_SCRIPTS)  
endif
endif

connection_watchdog_SOURCE = \
 connection_watchdog.c      
connection_watchdog_LDADD = \
  $(top_builddir)/src/statistics/libgnunetstatistics.la \
  $(top_builddir)/src/core/libgnunetcore.la \
  $(top_builddir)/src/transport/libgnunettransport.la \
  $(top_builddir)/src/util/libgnunetutil.la

do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'

%.py: %.py.in Makefile
	$(do_subst) < $(srcdir)/$< > $@
	chmod +x $@

gnunet_testing.py: gnunet_testing.py.in Makefile
	$(do_subst) < $(srcdir)/gnunet_testing.py.in > gnunet_testing.py
	chmod +x gnunet_testing.py	

gnunet_pyexpect.py: gnunet_pyexpect.py.in Makefile
	$(do_subst) < $(srcdir)/gnunet_pyexpect.py.in > gnunet_pyexpect.py
	chmod +x gnunet_pyexpect.py	

test_integration_bootstrap_and_connect.py: test_integration_bootstrap_and_connect.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect.py.in > test_integration_bootstrap_and_connect.py
	chmod +x test_integration_bootstrap_and_connect.py

test_integration_bootstrap_and_connect_and_disconnect.py: test_integration_bootstrap_and_connect_and_disconnect.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect.py.in > test_integration_bootstrap_and_connect_and_disconnect.py
	chmod +x test_integration_bootstrap_and_connect_and_disconnect.py

test_integration_bootstrap_and_connect_and_disconnect_nat.py: test_integration_bootstrap_and_connect_and_disconnect_nat.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_bootstrap_and_connect_and_disconnect_nat.py.in > test_integration_bootstrap_and_connect_and_disconnect_nat.py
	chmod +x test_integration_bootstrap_and_connect_and_disconnect_nat.py


test_integration_disconnect.py: test_integration_disconnect.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_disconnect.py.in > test_integration_disconnect.py
	chmod +x test_integration_disconnect.py

#test_integration_disconnect_nat.py: test_integration_disconnect_nat.py.in Makefile
#	$(do_subst) < $(srcdir)/test_integration_disconnect_nat.py.in > test_integration_disconnect_nat.py
#	chmod +x test_integration_disconnect_nat.py

test_integration_restart.py: test_integration_restart.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_restart.py.in > test_integration_restart.py
	chmod +x test_integration_restart.py	

test_integration_clique.py: test_integration_clique.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_clique.py.in > test_integration_clique.py
	chmod +x test_integration_clique.py	

test_integration_clique_nat.py: test_integration_clique_nat.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_clique_nat.py.in > test_integration_clique_nat.py
	chmod +x test_integration_clique_nat.py	

test_integration_connect_on_restart.py: test_integration_connect_on_restart.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_connect_on_restart.py.in > test_integration_connect_on_restart.py
	chmod +x test_integration_connect_on_restart.py		

test_integration_connection_values_tcp.py: test_integration_connection_values_tcp.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_connection_values_tcp.py.in > test_integration_connection_values_tcp.py
	chmod +x test_integration_connection_values_tcp.py		

test_integration_connection_values_tcp_udp.py: test_integration_connection_values_tcp_udp.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp.py.in > test_integration_connection_values_tcp_udp.py
	chmod +x test_integration_connection_values_tcp_udp.py		

test_integration_connection_values_tcp_udp_http.py: test_integration_connection_values_tcp_udp_http.py.in Makefile
	$(do_subst) < $(srcdir)/test_integration_connection_values_tcp_udp_http.py.in > test_integration_connection_values_tcp_udp_http.py
	chmod +x test_integration_connection_values_tcp_udp_http.py		


EXTRA_DIST = \
   gnunet_testing.py.in \
   gnunet_pyexpect.py.in \
   test_integration_connection_values_tcp.py.in \
   test_integration_connection_values_tcp_udp.py.in \
   test_integration_connection_values_tcp_udp_http.py.in \
   test_integration_bootstrap_and_connect.py.in \
   test_integration_bootstrap_and_connect_and_disconnect.py.in \
   test_integration_bootstrap_and_connect_and_disconnect_nat.py.in \
   test_integration_connect_on_restart.py.in \
   test_integration_disconnect.py.in \
   test_integration_restart.py.in \
   test_integration_clique.py.in \
   test_integration_clique_nat.py.in \
   confs/c_bootstrap_server.conf \
   confs/c_bootstrap_server_w_massif.conf \
   confs/c_nat_client.conf \
   confs/c_no_nat_client_2.conf \
   confs/c_no_nat_client.conf \
   confs/c_normal_client_tcp.conf \
   confs/c_normal_client_tcp_udp.conf \
   confs/c_normal_client_tcp_udp_http.conf \
   confs/c_no_nat_client_http.conf \
   confs/c_no_nat_client_http_2.conf\
   confs/c_no_nat_client_http.conf \
   confs/c_no_nat_client_http_2.conf \
   confs/c_no_nat_client_unix.conf \
   confs/c_no_nat_client_unix_2.conf \
   hostkeys/c_bootstrap_server \
   hostkeys/c_no_nat_client \
   hostkeys/c_nat_client \
   hostkeys/0003-hostkey \
   hostkeys/0004-hostkey \
   hostkeys/0005-hostkey \
   hostkeys/0006-hostkey \
   hostkeys/0007-hostkey \
   hostkeys/0008-hostkey \
   hostkeys/0009-hostkey 
#   test_integration_disconnect_nat.py 

CLEANFILES = \
	$(check_SCRIPTS) \
	gnunet_testing.py